From 878584561b5fd33bd067aa650b80c1abe192aa48 Mon Sep 17 00:00:00 2001 From: Witold Choinkowski Date: Thu, 26 Sep 2013 18:27:11 +0200 Subject: [PATCH] [messaging email] method_returns_undefined Change-Id: I49af46d1f77503f328c5d3d5449f34ea958f4bf6 --- .../MessageService_email_loadMessageAttachment.html | 2 +- ...e_email_loadMessageAttachment_without_errorCallback.html | 2 +- .../messaging/MessageService_email_loadMessageBody.html | 3 ++- ...ageService_email_loadMessageBody_with_errorCallback.html | 3 ++- .../messaging/MessageService_email_sendMessage.html | 2 +- ...sageService_email_sendMessage_without_errorCallback.html | 2 +- ...geService_email_sendMessage_without_successCallback.html | 2 +- .../MessageService_sendMessage_email_without_callbacks.html | 2 +- .../messaging/MessageService_syncFolder.html | 2 +- .../messaging/MessageService_syncFolder_with_limit.html | 2 +- .../MessageStorage_addConversationsChangeListener.html | 2 +- .../messaging/MessageStorage_email_addDraftMessage.html | 2 +- ...Storage_email_addDraftMessage_without_errorCallback.html | 2 +- ...orage_email_addDraftMessage_without_successCallback.html | 2 +- .../messaging/MessageStorage_email_updateMessages.html | 2 +- ...eStorage_email_updateMessages_without_errorCallback.html | 2 +- .../messaging/MessageStorage_findFolders.html | 2 +- ...essageStorage_findMessage_emailFilterWithoutErrorCb.html | 6 ++++-- .../messaging/MessageStorage_removeChangeListener.html | 2 +- .../messaging/MessageStorage_removeConversations.html | 2 +- ...ssageStorage_removeConversations_with_errorCallback.html | 2 +- ...ageStorage_removeConversations_with_successCallback.html | 2 +- .../messaging/Messaging_email_getMessageServices.html | 2 +- ...ssaging_email_getMessageServices_with_errorCallback.html | 2 +- 24 files changed, 29 insertions(+), 25 deletions(-) diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html index 3113eab4e..e3dea8ffe 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html @@ -39,7 +39,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageService_email_loadMessageAttachment", {timeout:180000}), - service, inboxFolder, message, attachment, returnedValue, + service, inboxFolder, message, attachment, returnedValue = null, serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError, findSuccess, findError, foundMessage, loadAttachmentSuccess, loadAttachmentError, loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError; diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html index b5370ba51..d1476ef2e 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html @@ -41,7 +41,7 @@ setup({timeout: 180000}); var t = async_test("MessageService_email_loadMessageAttachment_without_errorCallback", {timeout: 180000}), service, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError, - message, attachment, syncSuccess, syncError, returnedValue, findSuccess, findError, foundMessage, + message, attachment, syncSuccess, syncError, returnedValue = null, findSuccess, findError, foundMessage, loadAttachmentSuccess, loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError; t.step(function () { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html index f7efd7e3b..23d373811 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html @@ -106,6 +106,8 @@ t.step(function () { 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(); }); @@ -113,7 +115,6 @@ t.step(function () { assert_draft_message_equals(t, messages, message); myMessage = messages[0]; returnedValue = service.loadMessageBody(myMessage, loadMessageBodySuccess); - assert_equals(returnedValue, undefined, "Incorrect returned value"); }); findMessagesError = t.step_func(function (error) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html index 1c3c79937..967dfafc6 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html @@ -104,6 +104,8 @@ t.step(function () { 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(); }); @@ -115,7 +117,6 @@ t.step(function () { assert_draft_message_equals(t, messages, message); myMessage = messages[0]; returnedValue = service.loadMessageBody(messages[0], loadMessageBodySuccess, loadMessageBodyError); - assert_equals(returnedValue, undefined, "Incorrect returned value"); }); findMessagesError = t.step_func(function (error) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html index eebf242b6..843a1fe06 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html @@ -55,7 +55,7 @@ Authors: setup({ timeout: 180000 }); var t = async_test("MessageService_email_sendMessage", { timeout: 180000 }), - message, loadedMessage, resend=0, requestSending, sendMessageReturnValue, i, service, inboxFolder, + message, loadedMessage, resend=0, requestSending, sendMessageReturnValue = null, i, service, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError, folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError, attachmentSuccess, attachmentError; diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html index 32883acd4..850a0a94b 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html @@ -39,7 +39,7 @@ Authors: //==== TEST_CRITERIA MR MOA setup({ timeout: 180000 }); var t = async_test("MessageService_email_sendMessage_without_errorCallback", { timeout: 180000 }), - message, returnedValue, serviceSuccess, sendSuccess, serviceError; + message, returnedValue = null, serviceSuccess, sendSuccess, serviceError; t.step(function () { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html index 8a15a5868..a22f45f14 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html @@ -39,7 +39,7 @@ Authors: //==== TEST_CRITERIA MR MMINA setup({ timeout: 180000 }); var t = async_test("MessageService_email_sendMessage_without_successCallback", { timeout: 180000 }), - message, returnedValue, serviceSuccess, serviceError; + message, returnedValue = null, serviceSuccess, serviceError; t.step(function () { serviceSuccess = t.step_func(function (service) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html b/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html index 53ba5ad71..08795561f 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html @@ -43,7 +43,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageService_sendMessage_email_without_callbacks", {timeout: 180000}), - serviceSuccess, serviceError, message, returnedValue; + serviceSuccess, serviceError, message, returnedValue = null; t.step(function () { serviceSuccess = t.step_func(function (service) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html b/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html index 49aad5e49..66d3b6a7b 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html @@ -41,7 +41,7 @@ setup({timeout: 180000}); var t = async_test("MessageService_syncFolder", {timeout: 180000}), servicesSuccess, servicesError, service, filter, findFoldersError, findFoldersSuccess, i, inboxFolder, - findFoldersSuccess, returnedValue; + findFoldersSuccess, returnedValue = null; t.step(function () { findSuccess = t.step_func(function (folders) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html b/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html index 27b74d15d..4da4f08b7 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html @@ -41,7 +41,7 @@ setup({timeout: 180000}); var t = async_test("MessageService_syncFolder_with_limit", {timeout: 180000}), serviceSuccess, serviceError, service, findFoldersSuccess, findFoldersError, - inboxFolder, syncId, syncFolderSuccess, syncFolderError; + inboxFolder, syncId = null, syncFolderSuccess, syncFolderError; t.step(function () { syncFolderSuccess = t.step_func(function () { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html index 3e2e27075..4f9464dff 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html @@ -52,7 +52,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_addConversationsChangeListener", {timeout: 180000}), - serviceSuccess, serviceError, messageService, message, addDraftError, conversationChangeCB, returnedValue; + serviceSuccess, serviceError, messageService, message, addDraftError, conversationChangeCB, returnedValue = null; t.step(function () { add_result_callback(function () { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html index 5003ae80d..e1197b3f9 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_email_addDraftMessage", {timeout:180000}), serviceSuccess, serviceError, service, message, - addDraftSuccess, addDraftError, returnedValue, filter, findMessagesSuccess, findMessagesError; + addDraftSuccess, addDraftError, returnedValue = null, filter, findMessagesSuccess, findMessagesError; t.step(function () { findMessagesSuccess = t.step_func(function (messages) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html index 3c5f25db4..128727f84 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_email_addDraftMessage_without_errorCallback", {timeout:180000}), - serviceSuccess, serviceError, service, message, returnedValue, + serviceSuccess, serviceError, service, message, returnedValue = null, addDraftSuccess, filter, findMessagesSuccess, findMessagesError; t.step(function () { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html index c92285747..e69845d40 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_email_addDraftMessage_without_successCallback", {timeout:180000}), - serviceSuccess, serviceError, message, returnedValue; + serviceSuccess, serviceError, message, returnedValue = null; t.step(function () { serviceSuccess = t.step_func(function (service) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html index e95c9e178..2de399684 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html @@ -44,7 +44,7 @@ var t = async_test("MessageStorage_email_updateMessages", {timeout:180000}), mutableMessage, constMessage, plainBodyToSetForMutableMesage = MESSAGE_BODY_PLAIN + "_mutable", plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const", - addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue, + addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null, updateSuccess, updateError, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST", diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html index 850f83ccf..8fe3f78e8 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html @@ -45,7 +45,7 @@ t.step(function () { mutableMessage, constMessage, plainBodyToSetForMutableMesage = MESSAGE_BODY_PLAIN + "_mutable", plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const", - addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue, + addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null, updateSuccess, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST", diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html index 200d21302..12d8c8d39 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html @@ -41,7 +41,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_findFolders", {timeout: 180000}), - serviceError, serviceSuccess, filter, foldersSuccess, returnedValue; + serviceError, serviceSuccess, filter, foldersSuccess, returnedValue = null; t.step(function () { foldersSuccess = t.step_func(function () { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html index 3939f6218..d9e7e0210 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html @@ -52,18 +52,20 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_findMessage_emailFilterWithoutErrorCb", {timeout: 180000}), - serviceError, serviceSuccess, service, message, + 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); - service.messageStorage.findMessages(filter, findSuccess); + returnedValue = service.messageStorage.findMessages(filter, findSuccess); }); addDraftError = t.step_func(function (error) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html index 3206a3634..feb21a2d6 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html @@ -41,7 +41,7 @@ setup({timeout: 180000}); var t = async_test("MessageStorage_removeChangeListener", {timeout: 180000}), serviceSuccess, serviceError, service, message1, message2, listenerId, - addDraftSuccess, addDraftError, messageChangeCallback; + addDraftSuccess, addDraftError, messageChangeCallback, returnedValue = null; t.step(function () { //cleanup after TC diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html index e7e7a4b92..4e6edf785 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html @@ -39,7 +39,7 @@ Authors: //==== TEST_CRITERIA MMINA MR setup({timeout: 180000}); -var t = async_test("MessageStorage_removeConversations", {timeout: 180000}), returnedValue; +var t = async_test("MessageStorage_removeConversations", {timeout: 180000}), returnedValue = null; message_conversation_test(t, function (service, message, conversation) { returnedValue = service.messageStorage.removeConversations([conversation]); diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html index fc7b911e5..5ec3f50da 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_removeConversations_with_errorCallback", {timeout: 180000}), - removeSuccess, removeError, returnedValue, findFilter, findSuccessAfterRemove, findErrorAfterRemove; + removeSuccess, removeError, returnedValue = null, findFilter, findSuccessAfterRemove, findErrorAfterRemove; message_conversation_test(t, function (service, message, conversation) { diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html index 5c5c1afc0..1f477ecee 100755 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("MessageStorage_removeConversations_with_successCallback", {timeout: 180000}), - removeSuccess, returnedValue; + removeSuccess, returnedValue = null; message_conversation_test(t, function (service, message, conversation) { diff --git a/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html b/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html index 3c5534c7a..6d45eb44e 100755 --- a/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html +++ b/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("Messaging_email_getMessageServices", {timeout:180000}), - serviceSuccess, i, returnedValue; + serviceSuccess, i, returnedValue = null; t.step(function () { serviceSuccess = t.step_func(function (services) { diff --git a/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html index 504c331f1..3974bae25 100755 --- a/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html @@ -40,7 +40,7 @@ Authors: setup({timeout: 180000}); var t = async_test("Messaging_email_getMessageServices_with_errorCallback", {timeout:180000}); t.step(function () { - var serviceSuccess, serviceError, i, returnedValue; + var serviceSuccess, serviceError, i, returnedValue = null; serviceSuccess = t.step_func(function (services) { assert_equals(returnedValue, undefined, "Incorrect returned value."); -- 2.34.1