[Content] clean up - part 2
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Mon, 23 Sep 2013 13:22:52 +0000 (15:22 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 24 Sep 2013 14:51:14 +0000 (14:51 +0000)
Change-Id: I7cad422672bbba7e3043684e77b793ec9a64a611

40 files changed:
tct-content-tizen-tests/content/ContentManager_extend.html
tct-content-tizen-tests/content/ContentManager_find.html
tct-content-tizen-tests/content/ContentManager_find_errorCallback_TypeMismatch.html
tct-content-tizen-tests/content/ContentManager_find_errorCallback_invalid_cb.html
tct-content-tizen-tests/content/ContentManager_find_exist.html
tct-content-tizen-tests/content/ContentManager_find_filter_TypeMismatch.html
tct-content-tizen-tests/content/ContentManager_find_missarg.html
tct-content-tizen-tests/content/ContentManager_find_nullableArgs.html
tct-content-tizen-tests/content/ContentManager_find_sortMode_TypeMismatch.html
tct-content-tizen-tests/content/ContentManager_find_sortMode_invalid_obj.html
tct-content-tizen-tests/content/ContentManager_find_successCallback_TypeMismatch.html
tct-content-tizen-tests/content/ContentManager_find_successCallback_invalid_cb.html
tct-content-tizen-tests/content/ContentManager_find_with_count.html
tct-content-tizen-tests/content/ContentManager_find_with_directoryId.html
tct-content-tizen-tests/content/ContentManager_find_with_errorCallback.html
tct-content-tizen-tests/content/ContentManager_find_with_filter.html
tct-content-tizen-tests/content/ContentManager_find_with_offset.html
tct-content-tizen-tests/content/ContentManager_find_with_sortMode.html
tct-content-tizen-tests/content/ContentScanSuccessCallback_notexist.html
tct-content-tizen-tests/content/ContentScanSuccessCallback_onsuccess.html
tct-content-tizen-tests/content/Content_contentURI_attribute.html
tct-content-tizen-tests/content/Content_description_attribute.html
tct-content-tizen-tests/content/Content_editableAttributes_attribute.html
tct-content-tizen-tests/content/Content_extend.html
tct-content-tizen-tests/content/Content_id_attribute.html
tct-content-tizen-tests/content/Content_mimeType_attribute.html
tct-content-tizen-tests/content/Content_modifiedDate_attribute.html
tct-content-tizen-tests/content/Content_name_attribute.html
tct-content-tizen-tests/content/Content_notexist.html
tct-content-tizen-tests/content/Content_rating_attribute.html
tct-content-tizen-tests/content/Content_releaseDate_attribute.html
tct-content-tizen-tests/content/Content_size_attribute.html
tct-content-tizen-tests/content/Content_thumbnailURIs_attribute.html
tct-content-tizen-tests/content/Content_title_attribute.html
tct-content-tizen-tests/content/Content_type_AUDIO.html
tct-content-tizen-tests/content/Content_type_IMAGE.html
tct-content-tizen-tests/content/Content_type_VIDEO.html
tct-content-tizen-tests/content/Content_type_attribute.html
tct-content-tizen-tests/tests.full.xml
tct-content-tizen-tests/tests.xml

index 8b7de68a843224ca368eee09cadaa22e0feede73..62c6553ef6c74dbb1eea130bd1a122ccda8f93a9 100644 (file)
@@ -38,6 +38,7 @@ Authors:
 test(function () {
     check_extensibility(tizen.content);
 }, "ContentManager_extend");
+
 </script>
 </body>
 </html>
index b2aab25da18555d9e7ad869a6d363ed94c5e6ab0..e7c7622fbd4d6cc7f648f41accfb7a57ed3306ba 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find
-//==== LABEL Check if fetch media items
+//==== LABEL Check if ContentManager find method with optional error callback is invoked properly
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -52,18 +52,19 @@ setup({timeout: 30000});
 var t = async_test("ContentManager_find", { timeout: 30000 }),
     successCallback, errorCallback, retVal;
 
-t.step(function() {
+t.step(function () {
     successCallback = t.step_func(function (contents) {
         t.done();
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("find has an error: " + error.name + " with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     retVal = tizen.content.find(successCallback, errorCallback);
-    assert_equals(retVal, undefined, "find should return nothing");
+    assert_equals(retVal, undefined, "find should return undefined");
 });
+
 </script>
 </body>
 </html>
index 59ab3873f6a32532c0cef13397ce602c44ab872b..09f38ed514ddd8b880c5e2382112f4250912a33b 100644 (file)
@@ -45,7 +45,7 @@ t.step(function () {
     conversionTable = getTypeConversionExceptions("functionObject", true);
 
     successCallback = t.step_func(function () {
-        assert_unreached("SuccessCallback invoked.");
+        assert_unreached("find() success callback should not be invoked.");
     });
 
     for(i = 0; i < conversionTable.length; i++) {
@@ -55,11 +55,12 @@ t.step(function () {
         assert_throws({name: exceptionName},
             function () {
                 tizen.content.find(successCallback, errorCallback);
-            }, exceptionName + " should be thrown - give incorrect errorCallback.");
+            }, "Given incorrect error callback.");
     }
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index e882c0ced836120d6e9ce0b7e521ceeb6089f533..bdb39a7caf942be609be369132fa5069a2c4b9d8 100644 (file)
@@ -44,22 +44,23 @@ var t = async_test("ContentManager_find_errorCallback_invalid_cb", { timeout: 30
 t.step(function () {
 
     incorrectCallback = {
-        onerror: t.step_func(function(error) {
-            assert_unreached("Invalid errorCallback invoked:" + error.name + ": " + error.message);
+        onerror: t.step_func(function (error) {
+            assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);
         })
     };
 
     successCallback = t.step_func(function () {
-        assert_unreached("Should not be here.");
+        assert_unreached("find() success callback should not be invoked.");
     });
 
     assert_throws({name : exceptionName},
         function () {
             tizen.content.find(successCallback, incorrectCallback);
-        }, exceptionName + "should be thrown - given incorrect error callback.");
+        }, "Given incorrect errorCallback.");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 424f750a4896a57b24b5654b4ffd32527a470b47..eac209bc5292902c5fb87483864f5ba72ead8545 100644 (file)
@@ -34,10 +34,6 @@ Authors:
 <html>
 <head>
 <title>ContentManager_find_exist</title>
-<link rel="author" title="Intel" href="http://www.intel.com" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html" />
-<meta name="flags" content="" />
-<meta name="assert" content="Check if find method is exist and can be overriden" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/content_common.js"></script>
 </head>
@@ -46,14 +42,15 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_exist
-//==== LABEL Check if find method is exist and can be overriden
+//==== LABEL Check if find method exists and can be overriden
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA ME
-test(function() {
-    assert_true("find" in tizen.content, "ContentManager has find method");
+test(function () {
+    assert_true("find" in tizen.content, "ContentManager should have find method");
     check_method_exists(tizen.content, "find");
 }, "ContentManager_find_exist");
+
 </script>
 </body>
 </html>
index a71c2f7a63452bcc8213d01e50e79b1456366d25..b37c78048eca4113ce9e56271b72faa49961d9e6 100644 (file)
@@ -43,11 +43,11 @@ var t = async_test("ContentManager_find_filter_TypeMismatch", { timeout: 30000 }
 
 t.step(function () {
     successCallback = t.step_func(function (contents) {
-        assert_unreached("successCallback called");
+        assert_unreached("find() success callback should not be invoked.");
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message " + error.message);
+        assert_unreached("find() error callback should not be invoked: " + error.name + ": " + error.message);
     });
 
     conversionTable = getTypeConversionExceptions("object", true);
@@ -59,11 +59,12 @@ t.step(function () {
         assert_throws({name: exceptionName},
             function () {
                 tizen.content.find(successCallback, errorCallback, null, filter);
-            }, exceptionName + " should be thrown");
+            }, "Given invalid filter");
     }
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index d6be81ee112c80263f5d98c7764d71e3371a27da..dd3a9ab54e78e22a0355d2b2f4bc3fc0f72fc9c2 100644 (file)
@@ -34,11 +34,12 @@ Authors:
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA MMA
-test(function() {
+test(function () {
     assert_throws({ name: "TypeMismatchError" }, function () {
         tizen.content.find();
-    }, "Method should throw an exception");
+    }, "Invoked with non-optional arguments.");
 }, "ContentManager_find_missarg");
+
 </script>
 </body>
 </html>
index f6fbffc795cc0a1a43c39c5d77a7887d13d19dc0..b611b5894a848c1ed724795678e2c0b20aced7b5 100644 (file)
@@ -41,10 +41,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_nullableArgs
-//==== LABEL Check if content.find performs successCallback when all optional arguments are null
+//==== LABEL Check if Content find method performs successCallback when all optional arguments are null
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html 
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA MMINA
 setup({timeout: 30000});
 
@@ -53,12 +53,15 @@ var t = async_test("ContentManager_find_nullableArgs", { timeout: 30000 }),
 
 t.step(function () {
     successCallback = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
+
         t.done();
     });
 
     tizen.content.find(successCallback, null, null, null, null, null, null);
 });
+
 </script>
 </body>
 </html>
index 2cc80f585564a574cb0354825c8b939c13932b69..a56ab45d63f6b7cd020fa81f0b414e47fd032e51 100644 (file)
@@ -43,11 +43,11 @@ var t = async_test("ContentManager_find_sortMode_TypeMismatch", { timeout: 30000
 
 t.step(function () {
     successCallback = t.step_func(function (contents) {
-        assert_unreached("successCallback called");
+        assert_unreached("find() success callback should not be invoked.");
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message: " + error.message);
+        assert_unreached("find() error callback should not be invoked: " + error.name + ": " + error.message);
     });
 
     conversionTable = getTypeConversionExceptions("object", true);
@@ -59,11 +59,12 @@ t.step(function () {
         assert_throws({name: exceptionName},
             function () {
                 tizen.content.find(successCallback, errorCallback, null, null, sortMode);
-            }, exceptionName + " should be thrown");
+            }, "Given incorrect sortMode");
     }
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 1257438bc485af33efa0796a58d70b58805e8c09..8d7d11d6fc557606ba95b9591ac05c4eeefe3f5f 100644 (file)
@@ -43,11 +43,11 @@ var t = async_test("ContentManager_find_sortMode_invalid_obj", { timeout: 30000
 
 t.step(function () {
     successCallback = t.step_func(function () {
-        assert_unreached("SuccessCallback invoked.");
+        assert_unreached("find() success callback should not be invoked.");
     });
 
-    errorCallback = t.step_func(function () {
-        assert_unreached("ErrorCallback invoked.");
+    errorCallback = t.step_func(function (error) {
+        assert_unreached("find() error callback should not be invoked: " + error.name + ": " + error.message);
     });
 
     sortMode = {
@@ -58,10 +58,11 @@ t.step(function () {
     assert_throws({name: exceptionName},
         function () {
             tizen.content.find(successCallback, errorCallback, null, null, sortMode);
-        }, exceptionName + " should be thrown - given incorrect sortMode.");
+        }, "Given incorrect sortMode.");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 4a7d1041316f1ac590f203d63fd41535b6e29756..743abe509f3f1d883419e4f7c2a001e45aa19dcc 100644 (file)
@@ -51,11 +51,12 @@ t.step(function () {
         assert_throws({name: exceptionName},
             function () {
                 tizen.content.find(successCallback);
-            }, exceptionName + " should be thrown.");
+            }, "Given incorrect success callback.");
     }
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 88e3d2fcc2da39248d2ad9a990cf6fe8b825cc5c..ff596d0f2748ce3fbcb4b61406b37f5282b688aa 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_successCallback_invalid_cb
-//==== LABEL Check if find throws exception when success callback is incorrect
+//==== LABEL Check if find throws exception when success callback is invalid
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -40,16 +40,17 @@ test(function () {
 
     incorrectCallback = {
         onsuccess: function (items) {
-            assert_unreached("Invalid successCallback invoked.");
+            assert_unreached("Invalid success callback invoked.");
         }
     };
 
     assert_throws({name : exceptionName},
         function () {
             tizen.content.find(incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect success callback.");
+        }, "Given invalid successCallback.");
 
 }, "ContentManager_find_successCallback_invalid_cb");
+
 </script>
 </body>
 </html>
index f773f86c39cdfbe209438e0caf96bfe79570fcd8..630d40788bdd540955203ee1c3b482863e3ad6cd 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_with_count
-//==== LABEL Check if find called with optional count works as expected
+//==== LABEL Check if find called with optional count is properly invoked
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -38,20 +38,23 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("ContentManager_find_with_count", { timeout: 30000 }),
-    successCallback, errorCallback, count=1;
+    successCallback, errorCallback, count = 1;
 
 t.step(function () {
     successCallback = t.step_func(function (contents) {
+        assert_type(contents, "array", "contents should be an array");
         assert_equals(contents.length, count, "unexpected result");
+
         t.done();
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     tizen.content.find(successCallback, errorCallback, null, null, null, count);
 });
+
 </script>
 </body>
 </html>
index 7f571886cf83725ce48c299657abc982c8325b28..3ec11801769ea033b51609fa88030c27d50c83e8 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_with_directoryId
-//==== LABEL Check if find called with optional directoryId works as expected
+//==== LABEL Check if find called with optional directoryId is properly invoked
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -41,27 +41,29 @@ var t = async_test("ContentManager_find_with_directoryId", { timeout: 30000 }),
     getDirectoriesSuccess, getDirectoriesError, findSuccess, findError, directoryId;
 
 setup_contents(t, t.step_func(function () {
-    getDirectoriesSuccess = t.step_func(function (directories) {
-        assert_true(directories.length > 0, "directory is not found");
 
-        findSuccess = t.step_func(function (contents) {
-            t.done();
-        });
+    findSuccess = t.step_func(function (contents) {
+        t.done();
+    });
 
-        findError = t.step_func(function (error) {
-            assert_unreached("find errorCallback called: " + error.name + " with message: " + error.message);
-        });
+    findError = t.step_func(function (error) {
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
+    });
+    getDirectoriesSuccess = t.step_func(function (directories) {
+        assert_type(directories, "array", "directories should be an array");
+        assert_greater_than(directories.length, 0, "directories item is not found");
 
         directoryId = directories[0].id;
         tizen.content.find(findSuccess, findError, directoryId);
     });
 
     getDirectoriesError = t.step_func(function (error) {
-        assert_unreached("getDirectories errorCallback called: " + error.name + " with message: " + error.message);
+        assert_unreached("getDirectories() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     tizen.content.getDirectories(getDirectoriesSuccess, getDirectoriesError);
 }));
+
 </script>
 </body>
 </html>
index 11da6acdba7bde299cda4ef80ecaf325520b9d8f..11ac03955b50b4cfeed143c7dcb412a8f50e31c3 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_with_errorCallback
-//==== LABEL Check if find called with optional errorCallback works as expected
+//==== LABEL Check if find called with optional errorCallback is properly invoked
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -46,11 +46,12 @@ t.step(function () {
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     tizen.content.find(successCallback, errorCallback);
 });
+
 </script>
 </body>
 </html>
index a188b2199630e935d70cfa2becd2dfa86ba51eee..ee0e6ac158b485e996f6e01393e1a927dcaefcf2 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_with_filter
-//==== LABEL Check if find called with optional filter works as expected
+//==== LABEL Check if find called with optional filter is properly invoked
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -46,13 +46,13 @@ t.step(function () {
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     filter = new tizen.AttributeFilter("type", "EXACTLY", "IMAGE");
-
     tizen.content.find(successCallback, errorCallback, null, filter);
 });
+
 </script>
 </body>
 </html>
index bd72d3b578356b072707b6b3db14948b6c5f9c37..bd591c70d58483892bd3dfa1c9900761927fd002 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_with_offset
-//==== LABEL Check if find called with optional offset works as expected
+//==== LABEL Check if find called with optional offset is properly invoked
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -46,11 +46,12 @@ t.step(function () {
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
-    tizen.content.find(successCallback, errorCallback, null, null, null, 1, 1);
+    tizen.content.find(successCallback, errorCallback, null, null, null, 1, offset);
 });
+
 </script>
 </body>
 </html>
index f0151727076b87320fb6cc1e3c67360b7d17f146..9de35c526277e6b9b2a8273af9b26b3f75abf0b1 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ContentManager_find_with_sortMode
-//==== LABEL Check if find called with optional sortMode works as expected
+//==== LABEL Check if find called with optional sortMode is properly invoked
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:ContentManager:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
@@ -46,13 +46,13 @@ t.step(function () {
     });
 
     errorCallback = t.step_func(function (error) {
-        assert_unreached("errorCallback called with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     sortMode = new tizen.SortMode("name", "ASC");
-
     tizen.content.find(successCallback, errorCallback, null, null, sortMode);
 });
+
 </script>
 </body>
 </html>
index 95c40714c0a41e3a75e887c5f8f8f7e6e4c6c361..061e698a49d8e0e6572546b23e3e93dc9957b773 100644 (file)
@@ -38,6 +38,7 @@ Authors:
 test(function () {
     check_no_interface_object("ContentScanSuccessCallback");
 }, "ContentScanSuccessCallback_notexist");
+
 </script>
 </body>
 </html>
index 37d935da033954b0b8190081aa8b4ae5a6d64b83..8a0020416a9995e02c1a27b2add4fba72c36a552 100644 (file)
@@ -33,7 +33,7 @@ Authors:
 //==== LABEL: Check if ContentScanSuccessCallback onsuccess is called and if its arguments have proper type
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:ContentScanSuccessCallback:onsuccess M
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA CBOA CBT
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("ContentScanSuccessCallback_onsuccess", { timeout: 30000 }),
 
 t.step(function () {
     onErrorCB = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccessCB = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         onSuccess = t.step_func(function (directoryURI) {
             assert_type(directoryURI, "string", "directoryURI should be a string");
@@ -54,7 +55,7 @@ t.step(function () {
         });
 
         onError = t.step_func(function (error) {
-            assert_unreached("Error callback was called with message: " + error.message);
+            assert_unreached("scanFile error callback was invoked: " + error.name + " msg: " + error.message);
         });
 
         tizen.content.scanFile(contents[0].contentURI, onSuccess, onError);
@@ -62,6 +63,7 @@ t.step(function () {
 
     tizen.content.find(onSuccessCB, onErrorCB);
 });
+
 </script>
 </body>
 </html>
index 0302619582224e97adbf01a5727c2cb663e54600..085b45d64b17ede832baf34555b1ba5326bead3a 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_contentURI_attribute
-//==== LABEL: Check if Content have contentURI attribute with proper contentURI, readonly, not null
+//==== LABEL: Check if Content have contentURI attribute with proper contentURI and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:contentURI A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_contentURI_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_readonly(content, "contentURI", content.contentURI, "string", "dummy");
@@ -56,6 +57,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index f9af9e6a99da1b5fe1cd15e2848614155ab6e914..7dec5ad349403841b6b0de6974da532ec44854d6 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_description_attribute
-//==== LABEL: Check if Content have description attribute with proper type, nullable
+//==== LABEL: Check if Content have description attribute with proper type and is writeable
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:description A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ASG
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_description_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         if(content.description !== null) {
@@ -58,6 +59,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index e6c8827b774da3b1d57788dc3c51c9c35cc18b6b..6ce211e867be03b00ff500715232d72c06ab93d5 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_editableAttributes_attribute
-//==== LABEL: Check if Content have editableAttributes attribute with proper type
+//==== LABEL: Check if Content have editableAttributes attribute with proper type and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:editableAttributes A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_editableAttributes_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
             assert_own_property(contents[i], "editableAttributes",
@@ -74,6 +75,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 9dc81629ed33bb3313922462691b252ee441969e..707181c0b5ce5e26c783af7971293f4d2bfd7073 100644 (file)
@@ -34,7 +34,7 @@ Authors:
 //==== PRIORITY P3
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:Content U
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA OBX
 setup({timeout: 30000});
 
@@ -43,11 +43,12 @@ var t = async_test("Content_extend", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_extensibility(content);
@@ -56,6 +57,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 5ffceaf3d2dd536b7ad2e35d66fb3221d4f6b151..a22c682baac015c9b668812d3a5bb14e351d637a 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_id_attribute
-//==== LABEL: Check if Content have id attribute with proper type, readonly, not null
+//==== LABEL: Check if Content have id attribute with proper type, and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:id A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_id_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_readonly(content, "id", content.id, "string", "dummy");
@@ -56,6 +57,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 539ecf62c9bcff3e19bda6f765aa098a40b8adab..e587d0c43ebb13bcc03e9ae55bc61c5ac8d524af 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script mimeType="text/javascript">
 //==== TEST: Content_mimeType_attribute
-//==== LABEL: Check if Content have mimeType attribute with proper mimeType, readonly, not null
+//==== LABEL: Check if Content have mimeType attribute with proper mimeType, and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:mimeType A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_mimeType_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_readonly(content, "mimeType", content.mimeType, "string", "dummy");
@@ -56,6 +57,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 2a5a81e24a5c2ceb930410e7fa65ba6930a12f56..84df9ef63f59d82affdff005eda472dbfcf15989 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_modifiedDate_attribute
-//==== LABEL: Check if Content have modifiedDate attribute with proper type, nullable
+//==== LABEL: Check if Content have modifiedDate attribute with proper type and is readolny
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:modifiedDate A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_modifiedDate_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
             assert_own_property(contents[i], "modifiedDate",
@@ -68,6 +69,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index ce30d2f0494884f0027f8de34c98a1f9219a816d..7e5953c740940b99e6c6963cf8337a8185ac1813 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_name_attribute
-//==== LABEL: Check if Content have name attribute with proper type, not null
+//==== LABEL: Check if Content have name attribute with proper type is writeable and not nullable
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:name A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ASG AN
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_name_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
             nameAtt = contents[i].name;
@@ -61,6 +62,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index b6689345c64c696f0e7f9c69da40b39b4e515456..61e2207a7b3f0de99a5d06954e14140be426c2d1 100644 (file)
@@ -38,6 +38,7 @@ Authors:
 test(function () {
     check_no_interface_object("Content");
 }, "Content_notexist");
+
 </script>
 </body>
 </html>
index c8c8b24f32bb20cbd260546310de62465c29d722..7e185c7971a089875f8f3c507d2a85db1b8040ca 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_rating_attribute
-//==== LABEL: Check if Content have rating attribute with proper type
+//==== LABEL: Check if Content have rating attribute with proper type, range, is writeable and not nullable
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:rating A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ASG AN AVL
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_rating_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
             if(contents[i].rating === newValue ) {
@@ -72,6 +73,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index fbea7128ec4db4f70bd85e37b98f7ceed2e8393e..971b0f1121df559df4e2eb39abc6446226722555 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_releaseDate_attribute
-//==== LABEL: Check if Content have releaseDate attribute with proper type, nullable
+//==== LABEL: Check if Content have releaseDate attribute with proper type and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:releaseDate A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_releaseDate_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
             assert_own_property(contents[i], "releaseDate",
@@ -71,6 +72,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 1a296cad26fbc4bcb34fe8918e769b66ee7c857f..e371b41e64fc17e334fd07c0b75d4f17a16809b6 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_size_attribute
-//==== LABEL: Check if Content have size attribute with proper type
+//==== LABEL: Check if Content have size attribute with proper type and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:size A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //  Check if Content have size attribute with proper type, nullable
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
@@ -43,11 +43,12 @@ var t = async_test("Content_size_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_readonly(content, "size", content.size, "number", 0);
@@ -57,6 +58,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 362755d2892cc86aed701baf5fe5629f867df7de..cf112a9d52469e9aafd22d059397a47478b4b990 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_thumbnailURIs_attribute
-//==== LABEL: Check if Content have thumbnailURIs attribute with proper type, nullable
+//==== LABEL: Check if Content have thumbnailURIs attribute with proper type and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:thumbnailURIs A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_thumbnailURIs_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         for(i = 0; i < contents.length; i++) {
             assert_own_property(contents[i], "thumbnailURIs",
@@ -67,7 +68,6 @@ setup_contents(t, t.step_func(function () {
                 "Content.thumbnailURIs should be readonly");
             assert_array_equals(contents[i].thumbnailURIs, beforeValues,
                 "Content.thumbnailURIs should be readonly");
-
         }
         t.done();
     });
@@ -75,6 +75,7 @@ setup_contents(t, t.step_func(function () {
     filter = new tizen.AttributeFilter("thumbnailURIs", "EXISTS");
     tizen.content.find(onSuccess, onError, null, filter);
 }));
+
 </script>
 </body>
 </html>
index 26ce2ed2a77781ea8d46ad270fd67d86ca813c40..caa799f7291b8b1a8d5dc84c0b21c2a0ad3ad900 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script title="text/javascript">
 //==== TEST: Content_title_attribute
-//==== LABEL: Check if Content have title attribute with proper title, readonly, not null
+//==== LABEL: Check if Content have title attribute with proper type and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:title A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_title_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_readonly(content, "title", content.title, "string", "dummy");
@@ -56,6 +57,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 8be65f14206d2e5cc1b6244cef0647388d7cb40a..8a0bc7a919d035e76449c1c699a52bd5cc488a84 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_type_AUDIO
-//==== LABEL Check if type value is AUDIO
+//==== LABEL Check if Content type value is AUDIO for find method with filter AUDIO
 //==== PRIORITY P3
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:Content:Content U
@@ -57,17 +57,20 @@ var t = async_test("Content_type_AUDIO", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is found");
-        assert_equals(contents[0].type, expected, "type value is AUDIO");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
+
+        assert_equals(contents[0].type, expected, "type value shpuld be AUDIO");
         t.done();
     });
 
     onError = t.step_func(function (error) {
-        assert_unreached("find has an error: " + error.message + " with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     tizen.content.find(onSuccess, onError, null, filter);
 }));
+
 </script>
 </body>
 </html>
index 4588d380bb5771749604eb1454b5a1acd156e7a7..cefb098410e1d3e91e338394b607dbcadc2540bf 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_type_IMAGE
-//==== LABEL Check if type value is IMAGE
+//==== LABEL Check if Content type value is IMAGE for find method with filter IMAGE
 //==== PRIORITY P3
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:Content:Content U
@@ -57,17 +57,20 @@ var t = async_test("Content_type_IMAGE", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is found");
-        assert_equals(contents[0].type, expected, "type value is IMAGE");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
+
+        assert_equals(contents[0].type, expected, "type value should be IMAGE");
         t.done();
     });
 
     onError = t.step_func(function (error) {
-        assert_unreached("find has an error: " + error.message + " with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     tizen.content.find(onSuccess, onError, null, filter);
 }));
+
 </script>
 </body>
 </html>
index 6e8f30b4d8c741e36947f9d57f366cd0b870b792..393e8829f246c34af8332ca993fc1df625675822 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_type_VIDEO
-//==== LABEL Check if type value is VIDEO
+//==== LABEL Check if Content type value is VIDEO for find method with filter VIDEO
 //==== PRIORITY P3
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:Content:Content:Content:Content U
@@ -57,17 +57,20 @@ var t = async_test("Content_type_VIDEO", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is found");
-        assert_equals(contents[0].type, expected, "type value is VIDEO");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
+
+        assert_equals(contents[0].type, expected, "type value should be VIDEO");
         t.done();
     });
 
     onError = t.step_func(function (error) {
-        assert_unreached("find has an error: " + error.message + " with message: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     tizen.content.find(onSuccess, onError, null, filter);
 }));
+
 </script>
 </body>
 </html>
index e12e5709194b13a3d3efbb0337e71eca03d4ddb8..e4eea5370fba722af8bdd7fcad271c93e85c9bca 100644 (file)
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: Content_type_attribute
-//==== LABEL: Check if Content have type attribute with proper type, readonly, not null
+//==== LABEL: Check if Content have type attribute with proper type and is readonly
 //==== ONLOAD_DELAY 30
 //==== SPEC: Tizen Web API:Content:Content:Content:type A
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 30000});
 
@@ -42,11 +42,12 @@ var t = async_test("Content_type_attribute", { timeout: 30000 }),
 
 setup_contents(t, t.step_func(function () {
     onError = t.step_func(function (error) {
-        assert_unreached("Error callback was called: " + error.message);
+        assert_unreached("Find() error callback was invoked: " + error.name + " msg: " + error.message);
     });
 
     onSuccess = t.step_func(function (contents) {
-        assert_true(contents.length > 0, "media item is not found");
+        assert_type(contents, "array", "contents should be an array");
+        assert_greater_than(contents.length, 0, "media item is not found");
 
         content = contents[0];
         check_readonly(content, "type", content.type, "string", "dummy");
@@ -56,6 +57,7 @@ setup_contents(t, t.step_func(function () {
 
     tizen.content.find(onSuccess, onError);
 }));
+
 </script>
 </body>
 </html>
index 12ec1e3b0fa9f69a05e253c29587dda840cf353a..5bb66fffe754fae8a968e16c84288a44cc2b1644 100644 (file)
@@ -51,7 +51,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find method is exist and can be overriden" type="compliance" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_exist">
+      <testcase purpose="Check if find method exists and can be overriden" type="compliance" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_exist">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_exist.html</test_script_entry>
         </description>
@@ -63,7 +63,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if fetch media items" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find">
+      <testcase purpose="Check if ContentManager find method with optional error callback is invoked properly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if type value is AUDIO" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P3" id="Content_type_AUDIO">
+      <testcase purpose="Check if Content type value is AUDIO for find method with filter AUDIO" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P3" id="Content_type_AUDIO">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_AUDIO.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if type value is IMAGE" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P3" id="Content_type_IMAGE">
+      <testcase purpose="Check if Content type value is IMAGE for find method with filter IMAGE" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P3" id="Content_type_IMAGE">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_IMAGE.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if type value is VIDEO" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P3" id="Content_type_VIDEO">
+      <testcase purpose="Check if Content type value is VIDEO for find method with filter VIDEO" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P3" id="Content_type_VIDEO">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_VIDEO.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if content.find performs successCallback when all optional arguments are null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_nullableArgs">
+      <testcase purpose="Check if Content find method performs successCallback when all optional arguments are null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_nullableArgs">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_nullableArgs.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="ContentManager" element_type="method" element_name="find" specification="Content" section="Content" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html </spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find throws exception when success callback is incorrect" type="compliance" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P2" id="ContentManager_find_successCallback_invalid_cb">
+      <testcase purpose="Check if find throws exception when success callback is invalid" type="compliance" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P2" id="ContentManager_find_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have editableAttributes attribute with proper type" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_editableAttributes_attribute">
+      <testcase purpose="Check if Content have editableAttributes attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_editableAttributes_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_editableAttributes_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have id attribute with proper type, readonly, not null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_id_attribute">
+      <testcase purpose="Check if Content have id attribute with proper type, and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_id_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_id_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have name attribute with proper type, not null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_name_attribute">
+      <testcase purpose="Check if Content have name attribute with proper type is writeable and not nullable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_name_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_name_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have type attribute with proper type, readonly, not null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_type_attribute">
+      <testcase purpose="Check if Content have type attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_type_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have mimeType attribute with proper mimeType, readonly, not null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_mimeType_attribute">
+      <testcase purpose="Check if Content have mimeType attribute with proper mimeType, and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_mimeType_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_mimeType_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have title attribute with proper title, readonly, not null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_title_attribute">
+      <testcase purpose="Check if Content have title attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_title_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_title_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have contentURI attribute with proper contentURI, readonly, not null" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_contentURI_attribute">
+      <testcase purpose="Check if Content have contentURI attribute with proper contentURI and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_contentURI_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_contentURI_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have thumbnailURIs attribute with proper type, nullable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_thumbnailURIs_attribute">
+      <testcase purpose="Check if Content have thumbnailURIs attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_thumbnailURIs_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_thumbnailURIs_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have releaseDate attribute with proper type, nullable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_releaseDate_attribute">
+      <testcase purpose="Check if Content have releaseDate attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_releaseDate_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_releaseDate_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have modifiedDate attribute with proper type, nullable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_modifiedDate_attribute">
+      <testcase purpose="Check if Content have modifiedDate attribute with proper type and is readolny" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_modifiedDate_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_modifiedDate_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have size attribute with proper type" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_size_attribute">
+      <testcase purpose="Check if Content have size attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_size_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_size_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have description attribute with proper type, nullable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_description_attribute">
+      <testcase purpose="Check if Content have description attribute with proper type and is writeable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_description_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_description_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Content have rating attribute with proper type" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_rating_attribute">
+      <testcase purpose="Check if Content have rating attribute with proper type, range, is writeable and not nullable" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="Content_rating_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_rating_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find called with optional errorCallback works as expected" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_errorCallback">
+      <testcase purpose="Check if find called with optional errorCallback is properly invoked" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find called with optional directoryId works as expected" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_directoryId">
+      <testcase purpose="Check if find called with optional directoryId is properly invoked" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_directoryId">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_directoryId.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find called with optional filter works as expected" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_filter">
+      <testcase purpose="Check if find called with optional filter is properly invoked" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_filter">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_filter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find called with optional sortMode works as expected" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_sortMode">
+      <testcase purpose="Check if find called with optional sortMode is properly invoked" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_sortMode">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_sortMode.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find called with optional count works as expected" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_count">
+      <testcase purpose="Check if find called with optional count is properly invoked" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_count">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_count.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find called with optional offset works as expected" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_offset">
+      <testcase purpose="Check if find called with optional offset is properly invoked" type="compliance" onload_delay="30" status="approved" component="TizenAPI/Content/Content" execution_type="auto" priority="P1" id="ContentManager_find_with_offset">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_offset.html</test_script_entry>
         </description>
index c70a5b7494b4b63b994bdc67f8e0ff1d5be1326c..d49b3ef97a312a5a9971f202a3000792610a87bd 100644 (file)
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getDirectories_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find method is exist and can be overriden" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_exist">
+      <testcase purpose="Check if find method exists and can be overriden" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_exist">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if fetch media items" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find">
+      <testcase purpose="Check if ContentManager find method with optional error callback is invoked properly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find.html</test_script_entry>
         </description>
@@ -48,7 +48,7 @@
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_updateBatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if type value is AUDIO" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_AUDIO">
+      <testcase purpose="Check if Content type value is AUDIO for find method with filter AUDIO" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_AUDIO">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_AUDIO.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_updateBatch_description.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if type value is IMAGE" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_IMAGE">
+      <testcase purpose="Check if Content type value is IMAGE for find method with filter IMAGE" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_IMAGE">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_IMAGE.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if type value is VIDEO" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_VIDEO">
+      <testcase purpose="Check if Content type value is VIDEO for find method with filter VIDEO" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_VIDEO">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_VIDEO.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if content.find performs successCallback when all optional arguments are null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_nullableArgs">
+      <testcase purpose="Check if Content find method performs successCallback when all optional arguments are null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_nullableArgs">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_nullableArgs.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find throws exception when success callback is incorrect" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_successCallback_invalid_cb">
+      <testcase purpose="Check if find throws exception when success callback is invalid" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_successCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have editableAttributes attribute with proper type" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_editableAttributes_attribute">
+      <testcase purpose="Check if Content have editableAttributes attribute with proper type and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_editableAttributes_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_editableAttributes_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have id attribute with proper type, readonly, not null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_id_attribute">
+      <testcase purpose="Check if Content have id attribute with proper type, and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_id_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_id_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have name attribute with proper type, not null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_name_attribute">
+      <testcase purpose="Check if Content have name attribute with proper type is writeable and not nullable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_name_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_name_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have type attribute with proper type, readonly, not null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_attribute">
+      <testcase purpose="Check if Content have type attribute with proper type and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_type_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_type_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have mimeType attribute with proper mimeType, readonly, not null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_mimeType_attribute">
+      <testcase purpose="Check if Content have mimeType attribute with proper mimeType, and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_mimeType_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_mimeType_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have title attribute with proper title, readonly, not null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_title_attribute">
+      <testcase purpose="Check if Content have title attribute with proper type and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_title_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_title_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have contentURI attribute with proper contentURI, readonly, not null" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_contentURI_attribute">
+      <testcase purpose="Check if Content have contentURI attribute with proper contentURI and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_contentURI_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_contentURI_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have thumbnailURIs attribute with proper type, nullable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_thumbnailURIs_attribute">
+      <testcase purpose="Check if Content have thumbnailURIs attribute with proper type and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_thumbnailURIs_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_thumbnailURIs_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have releaseDate attribute with proper type, nullable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_releaseDate_attribute">
+      <testcase purpose="Check if Content have releaseDate attribute with proper type and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_releaseDate_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_releaseDate_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have modifiedDate attribute with proper type, nullable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_modifiedDate_attribute">
+      <testcase purpose="Check if Content have modifiedDate attribute with proper type and is readolny" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_modifiedDate_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_modifiedDate_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have size attribute with proper type" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_size_attribute">
+      <testcase purpose="Check if Content have size attribute with proper type and is readonly" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_size_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_size_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have description attribute with proper type, nullable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_description_attribute">
+      <testcase purpose="Check if Content have description attribute with proper type and is writeable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_description_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_description_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Content have rating attribute with proper type" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_rating_attribute">
+      <testcase purpose="Check if Content have rating attribute with proper type, range, is writeable and not nullable" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="Content_rating_attribute">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/Content_rating_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find called with optional errorCallback works as expected" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_errorCallback">
+      <testcase purpose="Check if find called with optional errorCallback is properly invoked" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find called with optional directoryId works as expected" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_directoryId">
+      <testcase purpose="Check if find called with optional directoryId is properly invoked" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_directoryId">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_directoryId.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find called with optional filter works as expected" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_filter">
+      <testcase purpose="Check if find called with optional filter is properly invoked" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_filter">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_filter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find called with optional sortMode works as expected" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_sortMode">
+      <testcase purpose="Check if find called with optional sortMode is properly invoked" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_sortMode">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_sortMode.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find called with optional count works as expected" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_count">
+      <testcase purpose="Check if find called with optional count is properly invoked" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_count">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_count.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find called with optional offset works as expected" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_offset">
+      <testcase purpose="Check if find called with optional offset is properly invoked" onload_delay="30" component="TizenAPI/Content/Content" execution_type="auto" id="ContentManager_find_with_offset">
         <description>
           <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_with_offset.html</test_script_entry>
         </description>