[content] update tests
authorTomasz Paciorek <t.paciorek@samsung.com>
Fri, 11 Oct 2013 14:02:31 +0000 (16:02 +0200)
committerTomasz Paciorek <t.paciorek@samsung.com>
Fri, 11 Oct 2013 14:02:31 +0000 (16:02 +0200)
Change-Id: I3e8d70e3c2804c238e9ad5d5c0e16cced894cc06

tct-content-tizen-tests/content/ContentManager_updateBatch.html
tct-content-tizen-tests/content/ContentManager_updateBatch_image_geolocation.html
tct-content-tizen-tests/content/ContentManager_updateBatch_image_orientation.html
tct-content-tizen-tests/content/ContentManager_updateBatch_name.html
tct-content-tizen-tests/content/ImageContent_orientation_attribute.html

index d04e52554c70b70424d40b63d735d2039c942300..b166e81d6cec757dbf3c1872a0ef2e720641c922 100644 (file)
@@ -94,7 +94,7 @@ setup_contents(t, t.step_func(function () {
         returnedValue = tizen.content.updateBatch(updated, function () {
             filter = new tizen.CompositeFilter("UNION", [
                 new tizen.AttributeFilter("id", "EXACTLY", updated[0].id),
-                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id),
+                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id)
             ]);
 
             tizen.content.find(findAfterEditSuccess, findAfterEditError, null, filter);
index 1f5976960ccd6fa91f7bc9ba29aff7e8fa58a2af..8cd3cec149c393b856ea46563f8872fcb4996af0 100644 (file)
@@ -107,7 +107,7 @@ setup_contents(t, t.step_func(function () {
         tizen.content.updateBatch(updated, function () {
             filter = new tizen.CompositeFilter("UNION", [
                 new tizen.AttributeFilter("id", "EXACTLY", updated[0].id),
-                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id),
+                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id)
             ]);
 
             tizen.content.find(findAfterEditSuccess, findAfterEditError, null, filter);
index a3bd314b7c5ed3e1bf978e63bfdeda7b9ef5aff8..3c6c2d55121e6bb17e5a176ac0ad41de4c4f2da0 100644 (file)
@@ -88,7 +88,7 @@ setup_contents(t, t.step_func(function () {
         tizen.content.updateBatch(updated, function () {
             filter = new tizen.CompositeFilter("UNION", [
                 new tizen.AttributeFilter("id", "EXACTLY", updated[0].id),
-                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id),
+                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id)
             ]);
 
             tizen.content.find(findAfterEditSuccess, findAfterEditError, null, filter);
index 2a825266f6963299aaff8285d8270b96729980f5..4037d782d6dcb85cc09a70f3f6d2e68a39945be6 100644 (file)
@@ -80,7 +80,7 @@ setup_contents(t, t.step_func(function () {
         tizen.content.updateBatch(updated, function () {
             filter = new tizen.CompositeFilter("UNION", [
                 new tizen.AttributeFilter("id", "EXACTLY", updated[0].id),
-                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id),
+                new tizen.AttributeFilter("id", "EXACTLY", updated[1].id)
             ]);
 
             tizen.content.find(findAfterEditSuccess, findAfterEditError, null, filter);
index bc3c79c447bc0a04195c8b03197fa834a5058ca8..059531d2d6c1a02db3274224b0f1aea49a9ce813 100644 (file)
@@ -39,7 +39,7 @@ setup({timeout: 30000});
 
 var t = async_test(document.title, {timeout: 30000}),
     onSuccess, onError, filter, i, newValue,
-    IMAGE_CONTENT_ORIENTATION = [
+    imageContentOrientation = [
         "NORMAL", "FLIP_HORIZONTAL", "ROTATE_180", "FLIP_VERTICAL", "TRANSPOSE", "ROTATE_90", "TRANSVERSE", "ROTATE_270"
     ];
 
@@ -55,9 +55,9 @@ setup_contents(t, t.step_func(function () {
         assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
-            newValue = IMAGE_CONTENT_ORIENTATION[(IMAGE_CONTENT_ORIENTATION.indexOf(contents[i].orientation) + 1) % IMAGE_CONTENT_ORIENTATION.length];
+            newValue = imageContentOrientation[(imageContentOrientation.indexOf(contents[i].orientation) + 1) % imageContentOrientation.length];
             check_attribute(contents[i], "orientation", contents[i].orientation, "string", newValue);
-            assert_in_array(contents[i].orientation, IMAGE_CONTENT_ORIENTATION, "invalid enum value");
+            assert_in_array(contents[i].orientation, imageContentOrientation, "invalid enum value");
             contents[i].orientation = null;
             assert_equals(contents[i].orientation, newValue,
                 "ImageContent.orientation should not accept null as value.");