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");
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) {
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) {
//==== 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");
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");
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");
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");