test(function () {
check_extensibility(tizen.content);
}, "ContentManager_extend");
+
</script>
</body>
</html>
<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
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>
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++) {
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>
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>
<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>
<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>
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);
assert_throws({name: exceptionName},
function () {
tizen.content.find(successCallback, errorCallback, null, filter);
- }, exceptionName + " should be thrown");
+ }, "Given invalid filter");
}
t.done();
});
+
</script>
</body>
</html>
//==== 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>
<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});
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>
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);
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>
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 = {
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>
assert_throws({name: exceptionName},
function () {
tizen.content.find(successCallback);
- }, exceptionName + " should be thrown.");
+ }, "Given incorrect success callback.");
}
t.done();
});
+
</script>
</body>
</html>
<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
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>
<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
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>
<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
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>
<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
});
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>
<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
});
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>
<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
});
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>
<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
});
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>
test(function () {
check_no_interface_object("ContentScanSuccessCallback");
}, "ContentScanSuccessCallback_notexist");
+
</script>
</body>
</html>
//==== 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});
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");
});
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);
tizen.content.find(onSuccessCB, onErrorCB);
});
+
</script>
</body>
</html>
<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});
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");
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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) {
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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",
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
//==== 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});
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);
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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");
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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");
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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",
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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;
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
test(function () {
check_no_interface_object("Content");
}, "Content_notexist");
+
</script>
</body>
</html>
<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});
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 ) {
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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",
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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);
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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});
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",
"Content.thumbnailURIs should be readonly");
assert_array_equals(contents[i].thumbnailURIs, beforeValues,
"Content.thumbnailURIs should be readonly");
-
}
t.done();
});
filter = new tizen.AttributeFilter("thumbnailURIs", "EXISTS");
tizen.content.find(onSuccess, onError, null, filter);
}));
+
</script>
</body>
</html>
<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});
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");
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
<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
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>
<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
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>
<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
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>
<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});
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");
tizen.content.find(onSuccess, onError);
}));
+
</script>
</body>
</html>
</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>
</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>
<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>
<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>