[Messaging][Tizen] update tests
authorTomasz Paciorek <t.paciorek@samsung.com>
Mon, 21 Oct 2013 09:45:58 +0000 (11:45 +0200)
committerTomasz Paciorek <t.paciorek@samsung.com>
Mon, 21 Oct 2013 09:45:58 +0000 (11:45 +0200)
Change-Id: Ife48c32eaae56047794bc962f65e4144b857213a

tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html
tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html
tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html
tct-tizen-tizen-tests/tizen/AttributeFilter_matchFlag_attribute.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_latitude_attribute.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_longitude_attribute.html

index 879ddd76f43a92d30dd064edb802c81148f6f4ec..dcac48dec6adefc499baf8dd30f55a35240e3451 100644 (file)
@@ -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");
index be6484ee32fe6ccb56366a29c0db2059f1d51097..65e5f2ff8e1014db85ec04f23284aee0632d889b 100644 (file)
@@ -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) {
index 0f9da8d1734ef8d3920c39849e0d09874ae91468..3da10af4ed645e89902bed04c79e02e0efbb3f2b 100644 (file)
@@ -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) {
index b5df5067ba873110eb9e1dae66ca7fbec4ca47df..c492650561aa39cfc2b3009319f2fe18b2266ed0 100644 (file)
@@ -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");
index fa05f6112f8183a2440cb510add4e0d977d12876..d4bca888b7b7d869e04482b9b4c8b2c69ac2047d 100644 (file)
@@ -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");
index 2ede739966f435fbd43bce2034d103b94ff3246f..2824728e7f62992bbf4e1acee58a436dd5943c70 100644 (file)
@@ -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");