From ab9dd6e41e240fa50c664abd4f74942425dac10b Mon Sep 17 00:00:00 2001 From: Tomasz Paciorek Date: Fri, 11 Oct 2013 16:02:31 +0200 Subject: [PATCH] [content] update tests Change-Id: I3e8d70e3c2804c238e9ad5d5c0e16cced894cc06 --- .../content/ContentManager_updateBatch.html | 2 +- .../ContentManager_updateBatch_image_geolocation.html | 2 +- .../ContentManager_updateBatch_image_orientation.html | 2 +- .../content/ContentManager_updateBatch_name.html | 2 +- .../content/ImageContent_orientation_attribute.html | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tct-content-tizen-tests/content/ContentManager_updateBatch.html b/tct-content-tizen-tests/content/ContentManager_updateBatch.html index d04e52554..b166e81d6 100644 --- a/tct-content-tizen-tests/content/ContentManager_updateBatch.html +++ b/tct-content-tizen-tests/content/ContentManager_updateBatch.html @@ -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); diff --git a/tct-content-tizen-tests/content/ContentManager_updateBatch_image_geolocation.html b/tct-content-tizen-tests/content/ContentManager_updateBatch_image_geolocation.html index 1f5976960..8cd3cec14 100644 --- a/tct-content-tizen-tests/content/ContentManager_updateBatch_image_geolocation.html +++ b/tct-content-tizen-tests/content/ContentManager_updateBatch_image_geolocation.html @@ -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); diff --git a/tct-content-tizen-tests/content/ContentManager_updateBatch_image_orientation.html b/tct-content-tizen-tests/content/ContentManager_updateBatch_image_orientation.html index a3bd314b7..3c6c2d551 100644 --- a/tct-content-tizen-tests/content/ContentManager_updateBatch_image_orientation.html +++ b/tct-content-tizen-tests/content/ContentManager_updateBatch_image_orientation.html @@ -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); diff --git a/tct-content-tizen-tests/content/ContentManager_updateBatch_name.html b/tct-content-tizen-tests/content/ContentManager_updateBatch_name.html index 2a825266f..4037d782d 100644 --- a/tct-content-tizen-tests/content/ContentManager_updateBatch_name.html +++ b/tct-content-tizen-tests/content/ContentManager_updateBatch_name.html @@ -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); diff --git a/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html b/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html index bc3c79c44..059531d2d 100644 --- a/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html +++ b/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html @@ -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."); -- 2.34.1