From: Tomasz Paciorek Date: Mon, 21 Oct 2013 09:45:58 +0000 (+0200) Subject: [Messaging][Tizen] update tests X-Git-Tag: 2.2.1_release~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c93e231a8f2d1fe2911ea45a10b751ef641ecce;p=test%2Ftct%2Fweb%2Fapi.git [Messaging][Tizen] update tests Change-Id: Ife48c32eaae56047794bc962f65e4144b857213a --- diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html index 879ddd76f..dcac48dec 100644 --- a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html +++ b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html @@ -47,7 +47,6 @@ 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"); diff --git a/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html b/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html index be6484ee3..65e5f2ff8 100644 --- a/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html +++ b/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html @@ -82,7 +82,7 @@ t.step(function () { endDate.setHours(endDate.getHours() + 1); message = new tizen.Message("messaging.mms", mmsMessageInitDict); - sendMessage(t, service, message, sendSuccess, sendError); + sendMessage(t, service, message, sendSuccess, sendError); }); serviceError = t.step_func(function (error) { diff --git a/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html b/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html index 0f9da8d17..3da10af4e 100644 --- a/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html +++ b/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html @@ -88,7 +88,7 @@ t.step(function () { messageService = services[0]; newMessage = new tizen.Message(messageService.type, initDict); - sendMessage(t, messageService, newMessage, sendSuccess, sendError); + sendMessage(t, messageService, newMessage, sendSuccess, sendError); }); serviceError = t.step_func(function (error) { diff --git a/tct-tizen-tizen-tests/tizen/AttributeFilter_matchFlag_attribute.html b/tct-tizen-tizen-tests/tizen/AttributeFilter_matchFlag_attribute.html index b5df5067b..c49265056 100644 --- a/tct-tizen-tizen-tests/tizen/AttributeFilter_matchFlag_attribute.html +++ b/tct-tizen-tizen-tests/tizen/AttributeFilter_matchFlag_attribute.html @@ -49,7 +49,7 @@ Authors: //==== TEST_CRITERIA AE AT ASG AN ADV test(function () { var filter, i, - FILTER_MATCH_FLAGS = ["EXACTLY", "FULLSTRING", "CONTAINS", "STARTSWITH", "ENDSWITH", "EXISTS"]; + filterMatchFlags = ["EXACTLY", "FULLSTRING", "CONTAINS", "STARTSWITH", "ENDSWITH", "EXISTS"]; filter = new tizen.AttributeFilter("name.firstName", "CONTAINS", "Chris"); @@ -57,16 +57,16 @@ test(function () { assert_equals(filter.matchFlag, "CONTAINS", "Check if matchFlag equals to the value that is set when create AttributeFilter"); assert_type(filter.matchFlag, "string", "matchFlag should be a string"); - for (i = FILTER_MATCH_FLAGS.length - 1; i >= 0; i--) { - filter.matchFlag = FILTER_MATCH_FLAGS[i]; - assert_equals(filter.matchFlag, FILTER_MATCH_FLAGS[i], "filter.matchFlag after assigning " + FILTER_MATCH_FLAGS[i]); + for (i = filterMatchFlags.length - 1; i >= 0; i--) { + filter.matchFlag = filterMatchFlags[i]; + assert_equals(filter.matchFlag, filterMatchFlags[i], "filter.matchFlag after assigning " + filterMatchFlags[i]); } filter.matchFlag = "x"; - assert_equals(filter.matchFlag, FILTER_MATCH_FLAGS[0], "incorrect value should be ignored"); + assert_equals(filter.matchFlag, filterMatchFlags[0], "incorrect value should be ignored"); filter.matchFlag = null; - assert_equals(filter.matchFlag, FILTER_MATCH_FLAGS[0], "null should not be accepted"); + assert_equals(filter.matchFlag, filterMatchFlags[0], "null should not be accepted"); filter = new tizen.AttributeFilter("name.firstName"); assert_equals(filter.matchFlag, "EXACTLY", "matchFlag default value"); diff --git a/tct-tizen-tizen-tests/tizen/SimpleCoordinates_latitude_attribute.html b/tct-tizen-tizen-tests/tizen/SimpleCoordinates_latitude_attribute.html index fa05f6112..d4bca888b 100644 --- a/tct-tizen-tizen-tests/tizen/SimpleCoordinates_latitude_attribute.html +++ b/tct-tizen-tizen-tests/tizen/SimpleCoordinates_latitude_attribute.html @@ -56,7 +56,7 @@ test(function () { assert_true("latitude" in coordinates, "coordinates should have latitude attribute"); assert_equals(coordinates.latitude, latitude, "Check if latitude equals to the value that is set when create SimpleCoordinates"); - assert_type(coordinates.latitude, "number", "latitude attribute should be a number"); + assert_type(coordinates.latitude, "double", "latitude attribute should be a double"); coordinates.latitude = -latitude; assert_equals(coordinates.latitude, -latitude, "coordinates.latitude after change"); diff --git a/tct-tizen-tizen-tests/tizen/SimpleCoordinates_longitude_attribute.html b/tct-tizen-tizen-tests/tizen/SimpleCoordinates_longitude_attribute.html index 2ede73996..2824728e7 100644 --- a/tct-tizen-tizen-tests/tizen/SimpleCoordinates_longitude_attribute.html +++ b/tct-tizen-tizen-tests/tizen/SimpleCoordinates_longitude_attribute.html @@ -56,7 +56,7 @@ test(function () { assert_true("longitude" in coordinates, "coordinates should have longitude attribute"); assert_equals(coordinates.longitude, longitude, "Check if longitude equals to the value that is set when create SimpleCoordinates"); - assert_type(coordinates.longitude, "number", "longitude attribute should be a number"); + assert_type(coordinates.longitude, "double", "longitude attribute should be a double"); coordinates.longitude = -longitude; assert_equals(coordinates.longitude, -longitude, "coordinates.longitude after change");