+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist
-//==== LABEL Check if ContentManager createPlaylist method without optional arguments works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MMINA MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, removePlaylistSuccess, removePlaylistFail, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_equals(retVal, undefined, "createPlaylist should return undefined");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- retVal = tizen.content.createPlaylist(randomString(5), createSuccess);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_errorCallback_TypeMismatch
-//==== LABEL Check if createPlaylist throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", true);
-
- successCallback = t.step_func(function (playlist) {
- assert_unreached("createPlaylist() success callback should not be invoked.");
- });
-
- for (i = 0; i < conversionTable.length; i++) {
- errorCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.createPlaylist("My new playlist", successCallback, errorCallback);
- }, "Given incorrect error callback.");
- }
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_errorCallback_invalid_cb
-//==== LABEL Check if createPlaylist throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), successCallback, incorrectCallback;
-
-t.step(function () {
- incorrectCallback = {
- onerror: t.step_func(function (error) {
- assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);
- })
- };
-
- successCallback = t.step_func(function (playlist) {
- assert_unreached("createPlaylist() success callback should not be invoked.");
- });
-
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.createPlaylist("newplaylist", successCallback, incorrectCallback);
- }, "Given incorrect errorCallback.");
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_errorCallback_invoked</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_errorCallback_invoked
-//==== LABEL Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MERRCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), createSuccess, createFail;
-
-t.step(function () {
- createSuccess = t.step_func(function (playlist) {
- assert_unreached("createPlaylist() success callback unreachable");
- });
-
- createFail = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "Incorrect error name");
- assert_type(error.message, "string", "Error message is not a string");
- assert_not_equals(error.message, "","Error message is empty");
- t.done();
- });
-
- tizen.content.createPlaylist("", createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_exist
-//==== LABEL Check if createPlaylist exists
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-test(function () {
- assert_true("createPlaylist" in tizen.content, "ContentManager should have createPlaylist method");
- check_method_exists(tizen.content, "createPlaylist");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_misarg
-//==== LABEL Check if createPlaylist method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.createPlaylist("newPlaylist");
- }, "Invoked with non-optional arguments.");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_noarg
-//==== LABEL Check if createPlaylist method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.createPlaylist();
- }, "Invoked with non-optional arguments.");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_sourcePlaylist_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_sourcePlaylist_TypeMismatch
-//==== LABEL Check if createPlaylist throws exception when sourcePlaylist is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i, sourcePlaylist;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("object", true);
-
- successCallback = t.step_func(function (playlist) {
- assert_unreached("createPlaylist() success callback should not be invoked.");
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback should not be invoked.");
- });
-
- for (i = 0; i < conversionTable.length; i++) {
- sourcePlaylist = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.createPlaylist("My new playlist", successCallback, errorCallback, sourcePlaylist);
- }, "Given incorrect error callback.");
- }
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_successCallback_TypeMismatch
-//==== LABEL Check if createPlaylist throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", true);
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- for (i = 0; i < conversionTable.length; i++) {
- successCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.createPlaylist("My new playlist", successCallback, errorCallback);
- }, "Given incorrect success callback.");
- }
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_successCallback_invalid_cb
-//==== LABEL Check if createPlaylist throws exception when success callback is invalid
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-test(function () {
- var incorrectCallback;
-
- incorrectCallback = {
- onsuccess: function (playlist) {
- assert_unreached("Invalid success callback invoked.");
- }
- };
-
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- tizen.content.createPlaylist("newplaylist", incorrectCallback);
- }, "Given invalid successCallback.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_createPlaylist_with_sourcePlaylist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_createPlaylist_with_sourcePlaylist
-//==== LABEL Check if ContentManager createPlaylist method with all optional arguments works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), successCallback, errorCallback, getSuccessCallback, getErrorCallback, gPlaylist,
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail, successCb, errorCb, beforelength = 0, afterlength = 0, id;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCb = t.step_func(function (playlists) {
- afterlength = playlists.length;
- assert_greater_than(afterlength, beforelength, "length increase");
- tizen.content.removePlaylist(id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCb = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback(after create) was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- id = playlist.id;
- tizen.content.getPlaylists(successCb, errorCb);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- getSuccessCallback = t.step_func(function (playlists) {
- beforelength = playlists.length;
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail, gPlaylist);
- });
-
- getErrorCallback = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.getPlaylists(getSuccessCallback, getErrorCallback);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), successCallback, errorCallback);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists
-//==== LABEL Check if ContentManager getPlaylists method without optional error callback works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MMINA MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), successCallback, createSuccess, createFail, gPlaylist, removePlaylistSuccess, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- successCallback = t.step_func(function (playlists) {
- assert_equals(retVal, undefined, "getPlaylists should return undefined");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- retVal = tizen.content.getPlaylists(successCallback);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_errorCallback_TypeMismatch
-//==== LABEL Check if getPlaylists throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", true);
-
- successCallback = t.step_func(function () {
- assert_unreached("getPlaylists() success callback should not be invoked.");
- });
-
- for (i = 0; i < conversionTable.length; i++) {
- errorCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.getPlaylists(successCallback, errorCallback);
- }, "Given incorrect error callback.");
- }
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_errorCallback_invalid_cb
-//==== LABEL Check if getPlaylists throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), successCallback, incorrectCallback;
-
-t.step(function () {
-
- incorrectCallback = {
- onerror: t.step_func(function (error) {
- assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);
- })
- };
-
- successCallback = t.step_func(function () {
- assert_unreached("getPlaylists() success callback should not be invoked.");
- });
-
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.getPlaylists(successCallback, incorrectCallback);
- }, "Given incorrect errorCallback.");
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_exist
-//==== LABEL Check if getPlaylists exists
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-test(function () {
- assert_true("getPlaylists" in tizen.content, "ContentManager should have getPlaylists method");
- check_method_exists(tizen.content, "getPlaylists");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_misarg
-//==== LABEL Check if getPlaylists method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.getPlaylists();
- }, "Invoked with non-optional arguments.");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_successCallback_TypeMismatch
-//==== LABEL Check if getPlaylists throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", true);
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- for (i = 0; i < conversionTable.length; i++) {
- successCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.getPlaylists(successCallback, errorCallback);
- }, "Given incorrect success callback.");
- }
-
- t.done();
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_successCallback_invalid_cb
-//==== LABEL Check if getPlaylists throws exception when success callback is invalid
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-test(function () {
- var incorrectCallback;
-
- incorrectCallback = {
- onsuccess: function (playlists) {
- assert_unreached("Invalid success callback invoked.");
- }
- };
-
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- tizen.content.getPlaylists(incorrectCallback);
- }, "Given invalid successCallback.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_getPlaylists_with_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_getPlaylists_with_errorCallback
-//==== LABEL Check if ContentManager getPlaylists method with optional error callback is invoked properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MOA MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), successCallback, errorCallback, createSuccess, createFail, removePlaylistSuccess, gPlaylist, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- successCallback = t.step_func(function (playlists) {
- assert_equals(retVal, undefined, "getPlaylists should return undefined");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- retVal = tizen.content.getPlaylists(successCallback, errorCallback);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist
-//==== LABEL Check if ContentManager removePlaylist method without optional arguments works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MMINA MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- assert_equals(retVal, undefined, "removePlaylist should return undefined");
- t.done();
- });
-
- createSuccess = t.step_func(function (playlist) {
- retVal = tizen.content.removePlaylist(playlist.id, removePlaylistSuccess);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_errorCallback_TypeMismatch
-//==== LABEL Check if removePlaylist throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, exceptionName, conversionTable, i, successCallback, errorCallback, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function () {
- assert_unreached("removePlaylist() success callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
-
- for (i = 0; i < conversionTable.length; i++) {
- errorCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.removePlaylist(playlist.id, successCallback, errorCallback);
- }, "Given incorrect success callback.");
- }
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_errorCallback_invalid_cb
-//==== LABEL Check if removePlaylist throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, incorrectCallback, successCallback, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onerror: function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- }
- };
-
- successCallback = t.step_func(function () {
- assert_unreached("removePlaylist() success callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.removePlaylist(playlist.id, successCallback, incorrectCallback);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_exist
-//==== LABEL Check if removePlaylist exists
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-test(function () {
- assert_true("removePlaylist" in tizen.content, "ContentManager should have removePlaylist method");
- check_method_exists(tizen.content, "removePlaylist");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_misarg
-//==== LABEL Check if removePlaylist method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.removePlaylist();
- }, "Invoked with non-optional arguments.");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_successCallback_TypeMismatch
-//==== LABEL Check if removePlaylist throws exception when success callback is invalid
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, exceptionName, conversionTable, i, successCallback, errorCallback, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- successCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.removePlaylist(playlist.id, successCallback, errorCallback);
- }, "Given incorrect success callback.");
- }
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_successCallback_invalid_cb
-//==== LABEL Check if createPlaylist throws exception when successCallback is invalid
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, incorrectCallback, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onsuccess: function () {
- assert_unreached("Invalid successCallback invoked.");
- }
- };
-
- createSuccess = t.step_func(function (playlist) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.removePlaylist(playlist.id, incorrectCallback);
- }, "Given incorrect successCallback.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>ContentManager_removePlaylist_with_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: ContentManager_removePlaylist_with_errorCallback
-//==== LABEL Check if ContentManager removePlaylist method with optional arguments works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, successCallback, errorCallback, removePlaylistSuccess, removePlaylistFail, successCb, errorCb,
- beforelength = 0, afterlength = 0, id;
-
-t.step(function () {
- successCb = t.step_func(function (playlists) {
- afterlength = playlists.length;
- assert_less_than(afterlength, beforelength, "length shoulddecrease");
- assert_equals(afterlength, beforelength-1, "length should decrease");
- t.done();
- });
-
- errorCb = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- removePlaylistSuccess = t.step_func(function () {
- tizen.content.getPlaylists(successCb, errorCb);
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (playlists) {
- beforelength = playlists.length;
- tizen.content.removePlaylist(id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- id = playlist.id;
- tizen.content.getPlaylists(successCallback, errorCallback);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistArraySuccessCallback_notexist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistArraySuccessCallback_notexist
-//==== LABEL Check if interface PlaylistArraySuccessCallback exists,it should not
-//==== SPEC Tizen Web API:Content:Content:PlaylistArraySuccessCallback:PlaylistArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
- check_no_interface_object("PlaylistArraySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistArraySuccessCallback_onsuccess</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistArraySuccessCallback_onsuccess
-//==== LABEL Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:PlaylistArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA CBT CBOA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), successCallback, errorCallback, createSuccess, createFail, removePlaylistSuccess, gPlaylist, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- successCallback = t.step_func(function (playlists) {
- assert_equals(retVal, undefined, "getPlaylists should return undefined");
- assert_type(playlists, "array", "playlists should be an array");
- assert_type(playlists[0], "object", "Incorrect type.");
- assert_type(playlists[0].id, "string", "id type check");
- assert_type(playlists[0].name, "string", "name type check");
- assert_type(playlists[0].numberOfTracks, "long", "numberOfTracks type check");
- assert_equals(playlists[0].thumbnailURI, null, "thumbnailURI type check");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- retVal = tizen.content.getPlaylists(successCallback, errorCallback);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistItemArraySuccessCallback_notexist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST:PlaylistItemArraySuccessCallback_notexist
-//==== LABEL Check if interface PlaylistItemArraySuccessCallback exists,it should not
-//==== SPEC Tizen Web API:Content:Content:PlaylistItemArraySuccessCallback:PlaylistItemArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
- check_no_interface_object("PlaylistItemArraySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistItemArraySuccessCallback_onsuccess</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistItemArraySuccessCallback_onsuccess
-//==== LABEL Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:PlaylistItemArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA CBT CBOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
- findSuccess, findFail, createSuccess, createFail, onSuccess, onError,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- onSuccess = t.step_func(function (items) {
- assert_type(items, "array", "items should be an array");
- assert_type(items[0].content, "object", "content type check");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- onError = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- gPlaylist.get(onSuccess, onError);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistItem_content_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistItem_content_attribute
-//==== LABEL Check if interface PlaylistItem have content attribute with proper type and is readonly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:PlaylistItem:content A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ARO
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_equals(items.length, 1 ,"Playlist items is not found");
- assert_own_property(items[0], "content", "items does not own content property.");
- assert_type(items[0].content, "object", "content should be an object");
- items[0].content = null;
- assert_not_equals(items[0].content, null, "content should not be modified");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- assert_greater_than(contents.length, 0, "length should greater than 0");
- gPlaylist.add(contents[0]);
- gPlaylist.get(successCallback, errorCallback);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistItem_extend</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistItem_extend
-//==== LABEL Check if interface PlaylistItem can have new properties
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:PlaylistItem:PlaylistItem U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA OBX
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_greater_than(items.length, 0 ,"Playlist items is not found");
- check_extensibility(items);
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- gPlaylist.get(successCallback, errorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistItem_notexist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistItem_notexist
-//==== LABEL Check if interface PlaylistItem exists,it should not
-//==== SPEC Tizen Web API:Content:Content:PlaylistItem:PlaylistItem U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA NIO
-
-test(function () {
- check_no_interface_object("PlaylistItem");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistSuccessCallback_notexist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistSuccessCallback_notexist
-//==== LABEL Check if interface PlaylistSuccessCallback exists,it should not
-//==== SPEC Tizen Web API:Content:Content:PlaylistSuccessCallback:PlaylistSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
- check_no_interface_object("PlaylistSuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>PlaylistSuccessCallback_onsuccess</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: PlaylistSuccessCallback_onsuccess
-//==== LABEL Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:PlaylistSuccessCallback:PlaylistSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA CBT CBOA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- onSuccess, onError, removePlaylistSuccess;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- onSuccess = t.step_func(function (playlist) {
- assert_not_equals(playlist , null, "Argument should not be null.");
- assert_type(playlist, "object", "Incorrect type.");
- assert_type(playlist.id, "string", "id type check");
- assert_type(playlist.name, "string", "name type check");
- assert_type(playlist.numberOfTracks, "long", "numberOfTracks type check");
- assert_equals(playlist.thumbnailURI, null, "thumbnailURI type check");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess);
- });
-
- onError = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), onSuccess, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_add</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_add
-//==== LABEL Check if Playlist add method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:add M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail,
- removePlaylistSuccess, removePlaylistFail, gPlaylist, successCallback, errorCallback, i, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_equals(retVal, undefined, "add should return undefined");
- assert_not_equals(items, 0, "items should not be 0");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- retVal = gPlaylist.add(contents[0]);
- }
- gPlaylist.get(successCallback, errorCallback);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch
-//==== LABEL Check if Playlist addBatch method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MAST MMINA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, removePlaylistSuccess, removePlaylistFail, successCallback, errorCallback, gPlaylist ,retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_equals(retVal, undefined, "addBatch should return undefined");
- assert_not_equals(items, 0, "items should not be 0");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- retVal = gPlaylist.addBatch([contents[0], contents[1]]);
- }
- gPlaylist.get(successCallback, errorCallback);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_errorCallback_TypeMismatch
-//==== LABEL Check if Playlist addBatch method throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function () {
- assert_unreached("addBatch() success callback should not be invoked.");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- errorCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.addBatch([contents[0], contents[1]], successCallback, errorCallback);
- }, "Given incorrect errorCallback.");
- }
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_errorCallback_invalid_cb
-//==== LABEL Check if Playlist addBatch method throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, incorrectCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onerror: function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- }
- };
-
- successCallback = t.step_func(function () {
- assert_unreached("addBatch() success callback should not be invoked.");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.addBatch([contents[0], contents[1]], successCallback, incorrectCallback);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_exist
-//==== LABEL Check if addBatch exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("addBatch" in playlist, "Playlist should have addBatch method");
- check_method_exists(playlist, "addBatch");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_items_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_items_TypeMismatch
-//==== LABEL Check if addBatch throws exception when content is incorrect
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, conversionTable, item, i, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- conversionTable = getTypeConversionExceptions("object", false);
- for (i = 0; i < conversionTable.length; i++) {
- item = conversionTable[i][0];
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.addBatch(item);
- }, "Invoked with non-optional arguments.");
- }
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_misarg
-//==== LABEL Check if addBatch method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.addBatch();
- }, "Invoked with non-optional arguments.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_successCallback_TypeMismatch
-//==== LABEL Check if Playlist addBatch method throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- errorCallback = t.step_func(function () {
- assert_unreached("addBatch() error callback should not be invoked.");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- successCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.addBatch([contents[0], contents[1]], successCallback, errorCallback);
- }, "Given incorrect successCallback.");
- }
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_successCallback_invalid_cb
-//==== LABEL Check if Playlist addBatch method throws exception when successCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, incorrectCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onsuccess: function () {
- assert_unreached("Invalid successCallback invoked.");
- }
- };
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.addBatch([contents[0], contents[1]], incorrectCallback);
- }, "Given incorrect successCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_addBatch_with_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_addBatch_with_errorCallback
-//==== LABEL Check if Playlist addBatch method works properly with all optional arguments
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function () {
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], successCallback, errorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_add_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_add_exist
-//==== LABEL Check if add exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:add M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("add" in playlist, "Playlist should have add method");
- check_method_exists(playlist, "add");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_add_item_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_add_item_TypeMismatch
-//==== LABEL Check if add throws exception when content is incorrect
-//==== SPEC Tizen Web API:Content:Content:Playlist:add M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, conversionTable, item, exceptionName, i, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- conversionTable = getTypeConversionExceptions("object", false);
- for (i = 0; i < conversionTable.length; i++) {
- item = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.add(item);
- }, "Invoked with non-optional arguments.");
- }
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_add_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_add_misarg
-//==== LABEL Check if add method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:Playlist:add M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.add();
- }, "Invoked with non-optional arguments.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_extend</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_extend
-//==== LABEL Check if interface Playlist can have new properties
-//==== SPEC Tizen Web API:Content:Content:Playlist:Playlist U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA OBX
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- check_extensibility(playlist);
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get
-//==== LABEL Check if Playlist get method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MMINA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_equals(retVal, undefined, "get should return undefined");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- retVal = gPlaylist.get(successCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_errorCallback_TypeMismatch
-//==== LABEL Check if Playlist get method throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function () {
- assert_unreached("get() success callback should not be invoked.");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- errorCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.get(successCallback, errorCallback);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_errorCallback_invalid_cb
-//==== LABEL Check if Playlist get method throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, incorrectCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onerror: t.step_func(function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- })
- };
-
- successCallback = t.step_func(function () {
- assert_unreached("get() success callback should not be invoked.");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.get(successCallback, incorrectCallback);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_errorCallback_invoked</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_errorCallback_invoked
-//==== LABEL Check if Playlist get method with invalid arguments would invoke errorCallback
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MERRCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, count = 1, offset = -1,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_unreached("get() success callback unreachable");
- });
-
- errorCallback = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "Incorrect error name");
- assert_type(error.message, "string", "Error message is not a string");
- assert_not_equals(error.message, "","Error message is empty");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- gPlaylist.get(successCallback, errorCallback, count, offset);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_exist
-//==== LABEL Check if get exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("get" in playlist, "Playlist should have get method");
- check_method_exists(playlist, "get");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_misarg
-//==== LABEL Check if get method called with missing non-optional argument throws an exception
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.get();
- }, "Invoked with non-optional arguments.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_successCallback_TypeMismatch
-//==== LABEL Check if Playlist get method throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback should not be invoked.");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- successCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.get(successCallback, errorCallback);
- }, "Given incorrect successCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_successCallback_invalid_cb
-//==== LABEL Check if Playlist get method throws exception when successCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, incorrectCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onsuccess: function (items) {
- assert_unreached("Invalid successCallback invoked.");
- }
- };
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- gPlaylist.get(incorrectCallback);
- }, "Given incorrect successCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_get_with_offset</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_get_with_offset
-//==== LABEL Check if Playlist get method works properly with all optional arguments
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:get M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, count = 1, offset = 1,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- gPlaylist.get(successCallback, errorCallback, count, offset);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_id_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_id_attribute
-//==== LABEL Check if Playlist have id attribute with proper type and is readonly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ARO
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_own_property(playlist, "id", "playlist does not own id property.");
- assert_type(playlist.id, "string", "id should be an string");
- check_readonly(playlist, "id", playlist.id, "string", playlist.id + "abc");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move
-//==== LABEL Check if Playlist move method works properly without optional arguments
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MMINA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, removePlaylistSuccess, removePlaylistFail, gPlaylist, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveSuccess = t.step_func(function () {
- assert_equals(retVal, undefined, "move should return undefined");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- successCallback = t.step_func(function (items) {
- retVal = gPlaylist.move(items[1], -1, moveSuccess);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_errorCallback_TypeMismatch
-//==== LABEL Check if Playlist move method throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, conversionTable, i, exceptionName;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveSuccess = t.step_func(function () {
- assert_unreached("move() success callback should not be invoked.");
- });
-
- successCallback = t.step_func(function (items) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- moveFail = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.move(items[1], -1, moveSuccess, moveFail);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_errorCallback_invalid_cb
-//==== LABEL Check if Playlist move method throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveSuccess = t.step_func(function () {
- assert_unreached("move() success callback should not be invoked.");
- });
-
- incorrectCallback = {
- onsuccess: function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- }
- };
-
- successCallback = t.step_func(function (items) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- gPlaylist.move(items[1], -1, moveSuccess, incorrectCallback);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_errorCallback_invoked</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_errorCallback_invoked
-//==== LABEL Check if Playlist move method with invalid arguments would invoke errorCallback
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MERRCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveSuccess = t.step_func(function () {
- assert_unreached("move() success callback should not be invoked.");
- });
-
- moveFail = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "Incorrect error name");
- assert_type(error.message, "string", "Error message is not a string");
- assert_not_equals(error.message, "","Error message is empty");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- successCallback = t.step_func(function (items) {
- gPlaylist.remove(items[0]);
- gPlaylist.move(items[0], items.length, moveSuccess, moveFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- assert_greater_than(contents.length, 2, "length should greater than 2");
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_exist
-//==== LABEL Check if move exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("move" in playlist, "Playlist should have move method");
- check_method_exists(playlist, "move");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_item_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_item_TypeMismatch
-//==== LABEL Check if Playlist move method throws exception when item is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, conversionTable, i, exceptionName;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveSuccess = t.step_func(function () {
- assert_unreached("move() success callback should not be invoked.");
- });
-
- moveFail = t.step_func(function (error) {
- assert_unreached("move() error callback should not be invoked.");
- });
-
- successCallback = t.step_func(function (items) {
- conversionTable = getTypeConversionExceptions("object", true);
- for (i = 0; i < conversionTable.length; i++) {
- items = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.move(items, -1, moveSuccess, moveFail);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_noarg
-//==== LABEL Check if move method called with missing non-optional argument throws an exception
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function (items) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.move();
- }, "miss argument");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_successCallback_TypeMismatch
-//==== LABEL Check if Playlist move method throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, conversionTable, i, exceptionName;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveFail = t.step_func(function (error) {
- assert_unreached("move() error callback should not be invoked.");
- });
-
- successCallback = t.step_func(function (items) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- moveSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.move(items[1], -1, moveSuccess, moveFail);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_successCallback_invalid_cb
-//==== LABEL Check if Playlist move method throws exception when successCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,
- moveFail, incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveFail = t.step_func(function (error) {
- assert_unreached("move() error callback should not be invoked.");
- });
-
- incorrectCallback = {
- onsuccess: function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- }
- };
-
- successCallback = t.step_func(function (items) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- gPlaylist.move(items[1], -1, incorrectCallback, moveFail);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(successCallback, errorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_move_with_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_move_with_errorCallback
-//==== LABEL Check if Playlist move method works properly with all optional arguments
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:move M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addsuccessCallback, adderrorCallback,
- moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItmes, get2successCallback, get2errorCallback;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- get2successCallback = t.step_func(function (items) {
- assert_equals(items[0].content.id, gItmes[1].content.id, "after moving items[0] should be the same with gItmes[1]");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- get2errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback (after move)was invoked: " + error.name + " msg: " + error.message);
- });
-
- moveSuccess = t.step_func(function () {
- gPlaylist.get(get2successCallback, get2errorCallback);
- });
-
- moveFail = t.step_func(function (error) {
- assert_unreached("move() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gItmes = items;
- gPlaylist.move(items[1], -1, moveSuccess, moveFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- assert_greater_than(contents.length, 2, "length should greater than 2");
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_name_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_name_attribute
-//==== LABEL Check if Playlist have name attribute with proper type
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:name A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ASG AN
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_own_property(playlist, "name", "playlist does not own name property.");
- assert_type(playlist.name, "string", "name should be an string");
- check_attribute(playlist, "name", playlist.name, "string", playlist.name + "abc");
- check_not_nullable(playlist, "name");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_notexist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_notexist
-//==== LABEL Check if interface Playlist exists, it should not
-//==== SPEC Tizen Web API:Content:Content:Playlist:Playlist U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P3
-//==== TEST_CRITERIA NIO
-
-test(function () {
- check_no_interface_object("Playlist");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_numberOfTracks_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_numberOfTracks_attribute
-//==== LABEL Check if Playlist have numberOfTracks attribute with proper type and is readonly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:numberOfTracks A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ARO
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_own_property(playlist, "numberOfTracks", "playlist does not own numberOfTracks property.");
- assert_type(playlist.numberOfTracks, "long", "numberOfTracks should be an long");
- check_readonly(playlist, "numberOfTracks", playlist.numberOfTracks, "long", playlist.numberOfTracks + 1);
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_remove</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_remove
-//==== LABEL Check if Playlist remove method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:remove M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getSuccess, getFail, get2Success, get2Fail,
- removePlaylistSuccess, removePlaylistFail, gPlaylist, beforelenght, afterlength, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- get2Success = t.step_func(function (items) {
- assert_equals(retVal, undefined, "remove should return undefined");
- afterlength = items.length;
- assert_less_than(afterlength, beforelenght, "length should be decrease");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- get2Fail = t.step_func(function (error) {
- assert_unreached("get() error callback(after remove) was invoked: " + error.name + " msg: " + error.message);
- });
-
- getSuccess = t.step_func(function (items) {
- beforelenght = items.length;
- retVal = gPlaylist.remove(items[0]);
- gPlaylist.get(get2Success, get2Fail);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 0) {
- gPlaylist.add(contents[0]);
- gPlaylist.get(getSuccess, getFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch
-//==== LABEL Check if Playlist removeBatch method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MAST MMINA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getSuccess, getFail, get2Success, get2Fail, addsuccessCallback, adderrorCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist , afterlength, beforelenght, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- get2Success = t.step_func(function (items) {
- assert_equals(retVal, undefined, "remove should return undefined");
- afterlength = items.length;
- assert_equals(afterlength, 0, "length should be zero")
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- get2Fail = t.step_func(function (error) {
- assert_unreached("get() error callback(after removeBatch) was invoked: " + error.name + " msg: " + error.message);
- });
-
- getSuccess = t.step_func(function (items) {
- beforelenght = items.length;
- retVal = gPlaylist.removeBatch([items[0], items[1]]);
- setTimeout(function(){gPlaylist.get(get2Success, get2Fail);}, 1000);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getSuccess, getFail);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- assert_greater_than(contents.length, 2, "length should greater than 2");
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_errorCallback_TypeMismatch
-//==== LABEL Check if Playlist removeBatch method throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, successCallback, errorCallback,
- removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist, conversionTable, i, exceptionName;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function () {
- assert_unreached("removeBatch() success callback should not be invoked.");
- });
-
- getSuccess = t.step_func(function (items) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- errorCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.removeBatch([items[0], items[1]], successCallback, errorCallback);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getSuccess, getFail);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_errorCallback_invalid_cb
-//==== LABEL Check if Playlist removeBatch method throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, successCallback, incorrectCallback,
- removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onerror: t.step_func(function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- })
- };
-
- successCallback = t.step_func(function () {
- assert_unreached("removeBatch() success callback should not be invoked.");
- });
-
- getSuccess = t.step_func(function (items) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.removeBatch([items[0], items[1]], successCallback, incorrectCallback);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getSuccess, getFail);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_exist
-//==== LABEL Check if removeBatch exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("removeBatch" in playlist, "Playlist should have removeBatch method");
- check_method_exists(playlist, "removeBatch");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_items_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_items_TypeMismatch
-//==== LABEL Check if removeBatch throws exception when content is incorrect
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, conversionTable, item, exceptionName, i, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- conversionTable = getTypeConversionExceptions("object", false);
- for (i = 0; i < conversionTable.length; i++) {
- item = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.removeBatch(item);
- }, "Invoked with non-optional arguments.");
- }
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_noarg
-//==== LABEL Check if removeBatch method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.removeBatch();
- }, "Invoked with non-optional arguments.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_successCallback_TypeMismatch
-//==== LABEL Check if Playlist removeBatch method throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, successCallback, errorCallback,
- removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist, conversionTable, i, exceptionName;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- errorCallback = t.step_func(function () {
- assert_unreached("removeBatch() success callback should not be invoked.");
- });
-
- getSuccess = t.step_func(function (items) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- successCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.removeBatch([items[0], items[1]], successCallback, errorCallback);
- }, "Given incorrect successCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getSuccess, getFail);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_successCallback_invalid_cb
-//==== LABEL Check if Playlist removeBatch method throws exception when successCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, errorCallback, incorrectCallback,
- removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onsuccess: function () {
- assert_unreached("Invalid successCallback invoked:" + error.name + " msg: " + error.message);
- }
- };
-
- errorCallback = t.step_func(function () {
- assert_unreached("removeBatch() error callback should not be invoked.");
- });
-
- getSuccess = t.step_func(function (items) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.removeBatch([items[0], items[1]], incorrectCallback, errorCallback);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getSuccess, getFail);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_removeBatch_with_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_removeBatch_with_errorCallback
-//==== LABEL Check if Playlist removeBatch method works properly with all optional arguments
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, getSuccess, getFail, successCallback, errorCallback,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- successCallback = t.step_func(function () {
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- errorCallback = t.step_func(function (error) {
- assert_unreached("removeBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- getSuccess = t.step_func(function (items) {
- gPlaylist.removeBatch([items[0], items[1]], successCallback, errorCallback);
- });
-
- getFail = t.step_func(function (error) {
- assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- addsuccessCallback = t.step_func(function () {
- gPlaylist.get(getSuccess, getFail);
- });
-
- adderrorCallback = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_remove_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_remove_exist
-//==== LABEL Check if remove exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:remove M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("remove" in playlist, "Playlist should have remove method");
- check_method_exists(playlist, "remove");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_remove_item_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_remove_item_TypeMismatch
-//==== LABEL Check if remove throws exception when item is incorrect
-//==== SPEC Tizen Web API:Content:Content:Playlist:remove M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, conversionTable, item, exceptionName, i, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- conversionTable = getTypeConversionExceptions("object", false);
- for (i = 0; i < conversionTable.length; i++) {
- item = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.remove(item);
- }, "Invoked with non-optional arguments.");
- }
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_remove_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_remove_noarg
-//==== LABEL Check if remove method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:Playlist:remove M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- playlist.remove();
- }, "Invoked with non-optional arguments.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder
-//==== LABEL Check if Playlist setOrder method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MMINA MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,
- setOrderSuccess, get2successCallback, get2errorCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder, retVal = null;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- get2successCallback = t.step_func(function (items) {
- assert_equals(items[0].content.name, gItems[items.length-1].content.name, "name should be the same");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- get2errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable(after set order)");
- });
-
- setOrderSuccess = t.step_func(function () {
- assert_equals(retVal, undefined, "setOrder should return undefined");
- gPlaylist.get(get2successCallback, get2errorCallback);
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- retVal = gPlaylist.setOrder(gExpectedOrder, setOrderSuccess);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_errorCallback_TypeMismatch
-//==== LABEL Check if Playlist get method throws exception when errorCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable, i, exceptionName,
- setOrderSuccess, setOrderFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- setOrderSuccess = t.step_func(function () {
- assert_unreached("setOrder() success callback unreachable");
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- setOrderFail = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_errorCallback_invalid_cb
-//==== LABEL Check if Playlist get method throws exception when errorCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable,
- setOrderSuccess, incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder, i, j;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- setOrderSuccess = t.step_func(function () {
- assert_unreached("setOrder() success callback unreachable");
- });
-
- incorrectCallback = {
- onsuccess: function (error) {
- assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);
- }
- };
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, incorrectCallback);
- }, "Given incorrect errorCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_errorCallback_invoked</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_errorCallback_invoked
-//==== LABEL Check if ContentManager setOrder method with invalid arguments would invoke errorCallback
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MERRCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,
- setOrderSuccess, setOrderFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, gExpectedOrder;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- setOrderSuccess = t.step_func(function () {
- assert_unreached("setOrder() success callback unreachable(after set order)");
- });
-
- setOrderFail = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "Incorrect error name");
- assert_type(error.message, "string", "Error message is not a string");
- assert_not_equals(error.message, "","Error message is empty");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gExpectedOrder = items.slice(items.length);
- gExpectedOrder.reverse();
- gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_exist
-//==== LABEL Check if setOrder exists
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_true("setOrder" in playlist, "Playlist should have setOrder method");
- check_method_exists(playlist, "setOrder");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_items_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_items_TypeMismatch
-//==== LABEL Check if Playlist get method throws exception when items is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable, i, exceptionName,
- removePlaylistSuccess, removePlaylistFail, gPlaylist;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- getsuccessCallback = t.step_func(function (items) {
- conversionTable = getTypeConversionExceptions("array", true);
- for (i = 0; i < conversionTable.length; i++) {
- items = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.setOrder(items);
- }, "Given incorrect items.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_noarg
-//==== LABEL Check if setOrder method called with missing non-optional argument throws an exception
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,
- removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- gPlaylist.setOrder();
- }, "missing non-optional argument should throw an exception");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_successCallback_TypeMismatch
-//==== LABEL Check if Playlist get method throws exception when successCallback is incorrect
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable, i, exceptionName,
- setOrderSuccess, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- setOrderSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- gPlaylist.setOrder(gExpectedOrder, setOrderSuccess);
- }, "Given incorrect errorCallback.");
- }
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_successCallback_invalid_cb
-//==== LABEL Check if Playlist get method throws exception when successCallback is invalid
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,
- incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- incorrectCallback = {
- onsuccess: function () {
- assert_unreached("Invalid successCallback invoked.");
- }
- };
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- gPlaylist.setOrder(gExpectedOrder, incorrectCallback);
- }, "Given incorrect successCallback.");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_setOrder_with_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_setOrder_with_errorCallback
-//==== LABEL Check if Playlist setOrder method works properly with all optional arguments
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA MAST
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,
- setOrderSuccess, setOrderFail, get2successCallback, get2errorCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- get2successCallback = t.step_func(function (items) {
- assert_equals(items[0].content.name, gItems[items.length-1].content.name, "name should be the same");
- tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- get2errorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable(after set order)");
- });
-
- setOrderSuccess = t.step_func(function () {
- gPlaylist.get(get2successCallback, get2errorCallback);
- });
-
- setOrderFail = t.step_func(function (error) {
- assert_unreached("setOrder() error callback unreachable");
- });
-
- getsuccessCallback = t.step_func(function (items) {
- gItems = items;
- gExpectedOrder = gItems.slice(0);
- gExpectedOrder.reverse();
- gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);
- });
-
- geterrorCallback = t.step_func(function (error) {
- assert_unreached("get() error callback unreachable");
- });
-
- addSuccess = t.step_func(function () {
- gPlaylist.get(getsuccessCallback, geterrorCallback);
- });
-
- addFail = t.step_func(function (error) {
- assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- findSuccess = t.step_func(function (contents) {
- if (contents.length > 2) {
- gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);
- }
- });
-
- findFail = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- gPlaylist = playlist;
- tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Author:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>Playlist_thumbnailURI_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Playlist_thumbnailURI_attribute
-//==== LABEL Check if Playlist have thumbnailURI attribute with proper type
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:Playlist:thumbnailURI A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ASG ADV
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;
-
-t.step(function () {
- removePlaylistSuccess = t.step_func(function () {
- t.done();
- });
-
- removePlaylistFail = t.step_func(function (error) {
- assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- createSuccess = t.step_func(function (playlist) {
- assert_own_property(playlist, "thumbnailURI", "playlist does not own thumbnailURI property.");
- assert_equals(playlist.thumbnailURI, null, "playlist.thumbnailURI should be null by default.");
- tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);
- });
-
- createFail = t.step_func(function (error) {
- assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.createPlaylist(randomString(5), createSuccess, createFail);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
</spec>\r
</specs>\r
</testcase>\r
- <testcase purpose="Check if createPlaylist exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_createPlaylist_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager createPlaylist method without optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_misarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <!--<testcase purpose="Check if ContentManager createPlaylist method with all optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist_with_sourcePlaylist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_with_sourcePlaylist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>-->\r
- <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_noarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when sourcePlaylist is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_sourcePlaylist_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_sourcePlaylist_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager getPlaylists method without optional error callback works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_getPlaylists">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_getPlaylists_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_misarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager getPlaylists method with optional error callback is invoked properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_with_errorCallback.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removePlaylist_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager removePlaylist method without optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <!--<testcase purpose="Check if removePlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_misarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>-->\r
- <testcase purpose="Check if ContentManager removePlaylist method with optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_with_errorCallback.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when successCallback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface Playlist can have new properties" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_extend">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_extend.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface Playlist exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_notexist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have id attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_id_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_id_attribute.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="attribute" element_name="id" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have name attribute with proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_name_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_name_attribute.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="attribute" element_name="name" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have numberOfTracks attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_numberOfTracks_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_numberOfTracks_attribute.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="attribute" element_name="numberOfTracks" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have thumbnailURI attribute with proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_thumbnailURI_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_thumbnailURI_attribute.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="attribute" element_name="thumbnailURI" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if add exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_add_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="add" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist add method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_add">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="add" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if add method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add_misarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="add" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if add throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_item_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add_item_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="add" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if addBatch exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_addBatch_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if addBatch method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_misarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if addBatch throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_items_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_items_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_with_errorCallback.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if get exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_get_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if get method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_misarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get_with_offset">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_with_offset.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="get" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if setOrder exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_setOrder_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist setOrder method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if setOrder method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_noarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist setOrder method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_with_errorCallback.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when items is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_items_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_items_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager setOrder method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method works properly without optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if move exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_move_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if move method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_noarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <!--<testcase purpose="Check if Playlist move method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_with_errorCallback.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>-->\r
- <testcase purpose="Check if Playlist move method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when item is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_item_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_item_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <!--<testcase purpose="Check if Playlist move method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="move" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>-->\r
- <testcase purpose="Check if remove exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_remove_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="remove" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist remove method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_remove">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="remove" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if remove throws exception when item is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_item_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove_item_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="remove" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if remove method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove_noarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="remove" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removeBatch exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_exist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <!--<testcase purpose="Check if Playlist removeBatch method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>-->\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removeBatch throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_items_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_items_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if removeBatch method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_noarg.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_with_errorCallback.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistArraySuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistArraySuccessCallback_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistArraySuccessCallback_notexist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistArraySuccessCallback" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistArraySuccessCallback_onsuccess">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistArraySuccessCallback_onsuccess.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistItemArraySuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItemArraySuccessCallback_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItemArraySuccessCallback_notexist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistItemArraySuccessCallback" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItemArraySuccessCallback_onsuccess">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItemArraySuccessCallback_onsuccess.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistItemArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistSuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistSuccessCallback_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistSuccessCallback_notexist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistSuccessCallback" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistSuccessCallback_onsuccess">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistSuccessCallback_onsuccess.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistSuccessCallback" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistItem exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItem_notexist.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistItem" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistItem can have new properties" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_extend">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItem_extend.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistItem" usage="true" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>\r
- <!--<testcase purpose="Check if interface PlaylistItem have content attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItem_content_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItem_content_attribute.html</test_script_entry>\r
- </description>\r
- <specs>\r
- <spec>\r
- <spec_assertion interface="PlaylistItem" element_type="attribute" element_name="content" specification="Content" section="Content" category="Tizen Device API Specifications"/>\r
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>\r
- <spec_statement>TBD</spec_statement>\r
- </spec>\r
- </specs>\r
- </testcase>-->\r
<testcase purpose="Check if ContentChangeCallback oncontentdiradded is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentChangeCallback_oncontentdiradded">\r
<description>\r
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentChangeCallback_oncontentdiradded.html</test_script_entry>\r
<test_script_entry>/opt/tct-content-tizen-tests/content/Content_in_tizen.html</test_script_entry>\r
</description>\r
</testcase>\r
- <testcase purpose="Check if createPlaylist exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_createPlaylist_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager createPlaylist method without optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_misarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
-<!-- <testcase purpose="Check if ContentManager createPlaylist method with all optional arguments works properly" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist_with_sourcePlaylist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_with_sourcePlaylist.html</test_script_entry>\r
- </description>\r
- </testcase> -->\r
- <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_noarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when sourcePlaylist is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_sourcePlaylist_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_createPlaylist_sourcePlaylist_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager getPlaylists method without optional error callback works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_getPlaylists">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_getPlaylists_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_misarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager getPlaylists method with optional error callback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_with_errorCallback.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if getPlaylists throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_getPlaylists_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removePlaylist_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager removePlaylist method without optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <!-- <testcase purpose="Check if removePlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_misarg.html</test_script_entry>\r
- </description>\r
- </testcase> -->\r
- <testcase purpose="Check if ContentManager removePlaylist method with optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_with_errorCallback.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removePlaylist throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if createPlaylist throws exception when successCallback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removePlaylist_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface Playlist can have new properties" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_extend">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_extend.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface Playlist exists, it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_notexist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have id attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_id_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_id_attribute.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have name attribute with proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_name_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_name_attribute.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have numberOfTracks attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_numberOfTracks_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_numberOfTracks_attribute.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist have thumbnailURI attribute with proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_thumbnailURI_attribute">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_thumbnailURI_attribute.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if add exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_add_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist add method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_add">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if add method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add_misarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if add throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_item_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_add_item_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if addBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_addBatch_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if addBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_misarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if addBatch throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_items_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_items_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_with_errorCallback.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_addBatch_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if get exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_get_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if get method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_misarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_misarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get_with_offset">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_with_offset.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_get_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if setOrder exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_setOrder_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist setOrder method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if setOrder method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_noarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist setOrder method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_with_errorCallback.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when items is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_items_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_items_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist get method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if ContentManager setOrder method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_setOrder_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method works properly without optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if move exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_move_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if move method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_noarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <!-- <testcase purpose="Check if Playlist move method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_with_errorCallback.html</test_script_entry>\r
- </description>\r
- </testcase> -->\r
- <testcase purpose="Check if Playlist move method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when item is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_item_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_item_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist move method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
-<!-- <testcase purpose="Check if Playlist move method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invoked">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_move_errorCallback_invoked.html</test_script_entry>\r
- </description>\r
- </testcase> -->\r
- <testcase purpose="Check if remove exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_remove_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist remove method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_remove">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if remove throws exception when item is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_item_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove_item_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if remove method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_remove_noarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removeBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch_exist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_exist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
-<!-- <testcase purpose="Check if Playlist removeBatch method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch.html</test_script_entry>\r
- </description>\r
- </testcase> -->\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_errorCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removeBatch throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_items_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_items_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if removeBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_noarg">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_noarg.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_invalid_cb">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_successCallback_invalid_cb.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_TypeMismatch">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_successCallback_TypeMismatch.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if Playlist removeBatch method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch_with_errorCallback">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/Playlist_removeBatch_with_errorCallback.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistArraySuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistArraySuccessCallback_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistArraySuccessCallback_notexist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistArraySuccessCallback_onsuccess">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistArraySuccessCallback_onsuccess.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistItemArraySuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItemArraySuccessCallback_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItemArraySuccessCallback_notexist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItemArraySuccessCallback_onsuccess">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItemArraySuccessCallback_onsuccess.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistSuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistSuccessCallback_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistSuccessCallback_notexist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistSuccessCallback_onsuccess">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistSuccessCallback_onsuccess.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistItem exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_notexist">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItem_notexist.html</test_script_entry>\r
- </description>\r
- </testcase>\r
- <testcase purpose="Check if interface PlaylistItem can have new properties" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_extend">\r
- <description>\r
- <test_script_entry>/opt/tct-content-tizen-tests/content/PlaylistItem_extend.html</test_script_entry>\r
- </description>\r
- </testcase>\r
<testcase purpose="Check if ContentChangeCallback oncontentdiradded is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentChangeCallback_oncontentdiradded">\r
<description>\r
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentChangeCallback_oncontentdiradded.html</test_script_entry>\r
</spec>
</specs>
</testcase>
- <testcase purpose="Check if attribute shuffleMode of MediaControllerPlaybackInfo exists, has type boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerPlaybackInfo_shuffleMode_attribute">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MediaControllerPlaybackInfo_shuffleMode_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="MediaControllerPlaybackInfo" element_type="attribute" element_name="shuffleMode" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if attribute state of MediaControllerPlaybackInfo exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerPlaybackInfo_state_attribute">
<description>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MediaControllerPlaybackInfo_state_attribute.html</test_script_entry>
</spec>
</specs>
</testcase>
+ <testcase purpose="Check if createPlaylist exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_createPlaylist_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager createPlaylist method without optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if ContentManager createPlaylist method with all optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist_with_sourcePlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_with_sourcePlaylist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when sourcePlaylist is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_sourcePlaylist_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_sourcePlaylist_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager getPlaylists method without optional error callback works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_getPlaylists">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_getPlaylists_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager getPlaylists method with optional error callback is invoked properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removePlaylist_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager removePlaylist method without optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if removePlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if ContentManager removePlaylist method with optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface Playlist can have new properties" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_extend">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_extend.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface Playlist exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have id attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_id_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_id_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="id" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have name attribute with proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_name_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_name_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="name" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have numberOfTracks attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_numberOfTracks_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_numberOfTracks_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="numberOfTracks" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have thumbnailURI attribute with proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_thumbnailURI_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_thumbnailURI_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="thumbnailURI" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if add exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_add_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist add method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_add">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if add method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if add throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_item_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if addBatch exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_addBatch_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if addBatch method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if addBatch throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_items_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if get exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_get_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if get method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get_with_offset">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_with_offset.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setOrder exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_setOrder_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist setOrder method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setOrder method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist setOrder method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when items is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_items_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager setOrder method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method works properly without optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if move exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_move_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if move method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist move method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when item is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_item_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist move method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if remove exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_remove_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist remove method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_remove">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if remove throws exception when item is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_item_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if remove method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removeBatch exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist removeBatch method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removeBatch throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_items_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removeBatch method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistArraySuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistArraySuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistArraySuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistArraySuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistArraySuccessCallback" element_type="method" element_name="onsuccess" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItemArraySuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItemArraySuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItemArraySuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItemArraySuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItemArraySuccessCallback" element_type="method" element_name="onsuccess" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistSuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistSuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistSuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistSuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistSuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItem" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem can have new properties" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_extend">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_extend.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItem" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem have content attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItem_content_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_content_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItem" element_type="attribute" element_name="content" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
</set>
</suite>
</test_definition>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/BluetoothProfileHandler_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothProfileHandler_profileType_attribute" priority="P1" purpose="Check if profileType attribute exists in BluetoothProfileHandler">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/BluetoothProfileHandler_profileType_attribute.html</test_script_entry>
- </description>
- </testcase>
<testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_getBluetoothProfileHandler" priority="P1" purpose="Check with non-optional arguments getBluetoothProfileHandler(valid_profileType)">
<description>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/BluetoothAdapter_getBluetoothProfileHandler.html</test_script_entry>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/BluetoothHealthProfileHandler_registerSinkApplication_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_getBluetoothProfileHandler_profileType_TypeMismatch" onload_delay="60" priority="P2" purpose="Check if BluetoothAdapter::getBluetoothProfileHandler() method called with invalid profileType argument throws an exception">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/BluetoothAdapter_getBluetoothProfileHandler_profileType_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
<testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothAdapter_getBluetoothProfileHandler_misarg" onload_delay="60" priority="P2" purpose="Check if BluetoothAdapter::getBluetoothProfileHandler() method with miss argument.">
<description>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/BluetoothAdapter_getBluetoothProfileHandler_misarg.html</test_script_entry>
</description>
</testcase>
</set>
- <set name="Messaging-mms_mobile" type="js">
+ <set name="Messaging-mms_iot" type="js">
<capabilities>
- <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+ <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
<capability name="http://tizen.org/feature/network.telephony.mms"/>
</capabilities>
<testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
</description>
</testcase>
</set>
- <set name="Messaging-MMS-2_mobile" type="js">
+ <set name="Messaging-MMS-2_iot" type="js">
<capabilities>
- <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+ <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
<capability name="http://tizen.org/feature/network.telephony.mms"/>
</capabilities>
<testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
</description>
</testcase>
</set>
- <set name="Messaging-MMS-3_mobile" type="js">
+ <set name="Messaging-MMS-3_iot" type="js">
<capabilities>
- <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+ <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
<capability name="http://tizen.org/feature/network.telephony.mms"/>
</capabilities>
<testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
</description>
</testcase>
</set>
- <set name="Messaging-mms_iot" type="js">
+ <set name="Messaging-SMS-1_iot" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony.mms"/>
+ <capability name="http://tizen.org/feature/network.telephony"/>
</capabilities>
- <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
+ <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
+ <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
+ <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
+ <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
+ <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
+ <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Checks various message attributes upon message (mms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
+ <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
+ <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
+ <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
+ <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
+ <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
+ <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
+ <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
+ <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
+ <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
+ <testcase purpose="Checks various message attributes upon message (sms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
+ <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
+ <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
+ <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
+ <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
+ <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
+ <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
+ <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
+ <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
+ <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
+ <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
+ <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
+ <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
+ <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
+ <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
+ <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
+ <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+ <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+ <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
+ <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
+ <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
+ <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
+ <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
+ <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
+ <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
+ <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
+ <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
+ <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
+ <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
+ <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+ <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
<description>
- <test_script_entry timeout="300">/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
+ <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
+ <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
+ <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html</test_script_entry>
</description>
</testcase>
</set>
- <set name="Messaging-MMS-2_iot" type="js">
+ <set name="Messaging-SMS-2_iot" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony.mms"/>
+ <capability name="http://tizen.org/feature/network.telephony"/>
</capabilities>
- <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
+ <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
+ <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
+ <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
+ <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
+ <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
+ <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
+ <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
+ <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
+ <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
+ <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
+ <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
+ <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
+ <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
+ <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
+ <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
+ <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
+ <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
+ <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
+ <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
+ <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
+ <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
</description>
</testcase>
- </set>
- <set name="Messaging-MMS-3_iot" type="js">
- <capabilities>
- <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony.mms"/>
- </capabilities>
- <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
+ <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
+ <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
+ <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
+ <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
+ <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
+ <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
+ <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
+ <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
+ <test_script_entry timeout="300">/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
+ <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
+ <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
+ <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
+ <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
+ <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
+ <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
+ <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
+ <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly with function (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly with empty object (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
+ <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
+ <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
+ </set>
+ <set name="Messaging-SMS-3_iot" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+ <capability name="http://tizen.org/feature/network.telephony"/>
+ </capabilities>
+ <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
+ <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
+ <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
+ <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
+ <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
+ <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
+ <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
+ <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
+ <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
+ <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
+ <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
+ <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
+ <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
+ <test_script_entry timeout="300">/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
+ <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if type attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
+ <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
- </description>
- </testcase>
- </set>
- <set name="Messaging-SMS-1_iot" type="js">
- <capabilities>
- <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony"/>
- </capabilities>
- <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Checks various message attributes upon message (sms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
+ <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
+ <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
+ <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+ <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
+ <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
+ <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
+ <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
+ <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+ <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+ <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
+ <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
+ </set>
+ <set name="Messaging-SMS-4_iot" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+ <capability name="http://tizen.org/feature/network.telephony"/>
+ </capabilities>
+ <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+ <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
+ <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+ <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
+ <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
+ <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
+ <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
+ <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
+ <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
+ <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
+ <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
+ <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html</test_script_entry>
</description>
</testcase>
- </set>
- <set name="Messaging-SMS-2_iot" type="js">
- <capabilities>
- <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony"/>
- </capabilities>
- <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
+ <testcase purpose="Check if Message's constructor works properly (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
+ <testcase purpose="Check if Message's constructor works properly with function (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
+ <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
+ <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
+ <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
+ <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
+ <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
+ <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
+ <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
+ <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
+ <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+ <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
+ <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
+ <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+ <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+ <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
+ <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
+ <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+ <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+ <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
+ <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+ <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+ <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
+ <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+ <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+ <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+ <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+ <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
+ <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+ <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
<description>
- <test_script_entry timeout="300">/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
+ <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+ </set>
+ <set name="content_iot" type="js">
+ <testcase purpose="Check if updateBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_updateBatch_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+ <testcase purpose="Check if update exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_update_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+ <testcase purpose="Check if update() method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_update">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+ <testcase purpose="Check if updateBatch() method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+ <testcase purpose="Check if update method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_update_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+ <testcase purpose="Check if update throws exception when content is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_update_content_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update_content_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
+ <testcase purpose="Check if updateBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_missarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
+ <testcase purpose="Check if updateBatch throws exception when contents is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_contents_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_contents_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+ <testcase purpose="Check if updateBatch throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+ <testcase purpose="Check if updateBatch throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- </set>
- <set name="Messaging-SMS-3_iot" type="js">
- <capabilities>
- <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony"/>
- </capabilities>
- <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
+ <testcase purpose="Check if updateBatch throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+ <testcase purpose="Check if updateBatch throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
+ <testcase purpose="Check if updateBatch called with optional errorCallback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+ <testcase purpose="Check if updateBatch called with optional successCallback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_with_successCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_with_successCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
+ <testcase purpose="Check if updateBatch called without callback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_without_callback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_without_callback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
+ <testcase purpose="Check if AudioContent have bitrate attribute with proper type, readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_bitrate_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_bitrate_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
+ <testcase purpose="Check if AudioContent have composers attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_composers_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_composers_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
+ <testcase purpose="Check if AudioContent have copyright attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_copyright_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_copyright_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
+ <testcase purpose="Check if AudioContent have duration attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_duration_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_duration_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
+ <testcase purpose="Check if Content have description attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_description_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_description_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+ <testcase purpose="Check if Content have editableAttributes attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_editableAttributes_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_editableAttributes_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+ <testcase purpose="Check if Content have isFavorite attribute with proper type and is writeable and not nullable" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_isFavorite_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_isFavorite_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+ <testcase purpose="Check if Content have rating attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_rating_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_rating_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+ <testcase purpose="Check if Content have releaseDate attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_releaseDate_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_releaseDate_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
+ <testcase purpose="Check if ImageContent have geolocation attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ImageContent_geolocation_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ImageContent_geolocation_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
+ <testcase purpose="Check if VideoContent have album attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_album_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_album_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
+ <testcase purpose="Check if VideoContent have artists attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_artists_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_artists_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
+ <testcase purpose="Check if VideoContent have duration attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_duration_attribute">
<description>
- <test_script_entry timeout="300">/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_duration_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
+ <testcase purpose="Check if VideoContent have geolocation attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_geolocation_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_geolocation_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
+ <testcase purpose="Check if VideoContent have height attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_height_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_height_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+ <testcase purpose="Check if VideoContent have width attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_width_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_width_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+ <testcase purpose="Check if createPlaylist exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_createPlaylist_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
+ <testcase purpose="Check if ContentManager createPlaylist method without optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_misarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+ <testcase purpose="Check if createPlaylist throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+ <testcase purpose="Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invoked">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invoked.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+ <!-- <testcase purpose="Check if ContentManager createPlaylist method with all optional arguments works properly" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist_with_sourcePlaylist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_with_sourcePlaylist.html</test_script_entry>
</description>
- </testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+ </testcase> -->
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_noarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_noarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+ <testcase purpose="Check if createPlaylist throws exception when sourcePlaylist is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_sourcePlaylist_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_sourcePlaylist_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+ <testcase purpose="Check if ContentManager getPlaylists method without optional error callback works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_getPlaylists">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+ <testcase purpose="Check if getPlaylists exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_getPlaylists_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+ <testcase purpose="Check if getPlaylists method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_misarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+ <testcase purpose="Check if ContentManager getPlaylists method with optional error callback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
+ <testcase purpose="Check if getPlaylists throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
+ <testcase purpose="Check if getPlaylists throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
+ <testcase purpose="Check if removePlaylist exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removePlaylist_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
+ <testcase purpose="Check if ContentManager removePlaylist method without optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
+ <!-- <testcase purpose="Check if removePlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_misarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_misarg.html</test_script_entry>
</description>
- </testcase>
- <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
+ </testcase> -->
+ <testcase purpose="Check if ContentManager removePlaylist method with optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- </set>
- <set name="Messaging-SMS-4_iot" type="js">
- <capabilities>
- <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
- <capability name="http://tizen.org/feature/network.telephony"/>
- </capabilities>
- <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
+ <testcase purpose="Check if removePlaylist throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+ <testcase purpose="Check if removePlaylist throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+ <testcase purpose="Check if removePlaylist throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+ <testcase purpose="Check if interface Playlist can have new properties" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_extend">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
+ <testcase purpose="Check if interface Playlist exists, it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_notexist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+ <testcase purpose="Check if Playlist have id attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_id_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_id_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+ <testcase purpose="Check if Playlist have name attribute with proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_name_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_name_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
+ <testcase purpose="Check if Playlist have numberOfTracks attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_numberOfTracks_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_numberOfTracks_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
+ <testcase purpose="Check if Playlist have thumbnailURI attribute with proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_thumbnailURI_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_thumbnailURI_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
+ <testcase purpose="Check if add exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_add_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
+ <testcase purpose="Check if Playlist add method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_add">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
+ <testcase purpose="Check if add method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_misarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly with function (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
+ <testcase purpose="Check if add throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_item_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_item_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
+ <testcase purpose="Check if addBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_addBatch_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
+ <testcase purpose="Check if Playlist addBatch method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
+ <testcase purpose="Check if addBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_misarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
+ <testcase purpose="Check if addBatch throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_items_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_items_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
+ <testcase purpose="Check if Playlist addBatch method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
+ <testcase purpose="Check if get exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_get_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
+ <testcase purpose="Check if Playlist get method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
+ <testcase purpose="Check if get method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_misarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
+ <testcase purpose="Check if Playlist get method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get_with_offset">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_with_offset.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
+ <testcase purpose="Check if Playlist get method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invoked">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invoked.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
+ <testcase purpose="Check if setOrder exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_setOrder_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
+ <testcase purpose="Check if Playlist setOrder method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
+ <testcase purpose="Check if setOrder method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_noarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_noarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
+ <testcase purpose="Check if Playlist setOrder method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
+ <testcase purpose="Check if Playlist get method throws exception when items is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_items_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_items_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+ <testcase purpose="Check if ContentManager setOrder method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invoked">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invoked.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
+ <testcase purpose="Check if Playlist move method works properly without optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move.html</test_script_entry>
</description>
</testcase>
- </set>
- <set name="content_iot" type="js">
- <testcase purpose="Check if updateBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_updateBatch_exist">
+ <testcase purpose="Check if move exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_move_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if update exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_update_exist">
+ <testcase purpose="Check if move method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_noarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_noarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if update() method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_update">
+ <!-- <testcase purpose="Check if Playlist move method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_with_errorCallback.html</test_script_entry>
</description>
- </testcase>
- <testcase purpose="Check if updateBatch() method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch">
+ </testcase> -->
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if update method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_update_missarg">
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if update throws exception when content is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_update_content_TypeMismatch">
+ <testcase purpose="Check if Playlist move method throws exception when item is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_item_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_update_content_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_item_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_missarg">
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch throws exception when contents is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_contents_TypeMismatch">
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_contents_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_successCallback_TypeMismatch">
+ <!-- <testcase purpose="Check if Playlist move method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invoked">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_successCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invoked.html</test_script_entry>
</description>
- </testcase>
- <testcase purpose="Check if updateBatch throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_successCallback_invalid_cb">
+ </testcase> -->
+ <testcase purpose="Check if remove exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_remove_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_successCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_errorCallback_TypeMismatch">
+ <testcase purpose="Check if Playlist remove method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_remove">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_updateBatch_errorCallback_invalid_cb">
+ <testcase purpose="Check if remove throws exception when item is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_item_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_errorCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_item_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch called with optional errorCallback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_with_errorCallback">
+ <testcase purpose="Check if remove method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_noarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_with_errorCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_noarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch called with optional successCallback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_with_successCallback">
+ <testcase purpose="Check if removeBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch_exist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_with_successCallback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if updateBatch called without callback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_without_callback">
+ <!-- <testcase purpose="Check if Playlist removeBatch method works properly" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_updateBatch_without_callback.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch.html</test_script_entry>
</description>
- </testcase>
- <testcase purpose="Check if AudioContent have bitrate attribute with proper type, readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_bitrate_attribute">
+ </testcase> -->
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_bitrate_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if AudioContent have composers attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_composers_attribute">
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_composers_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if AudioContent have copyright attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_copyright_attribute">
+ <testcase purpose="Check if removeBatch throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_items_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_copyright_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_items_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if AudioContent have duration attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="AudioContent_duration_attribute">
+ <testcase purpose="Check if removeBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_noarg">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/AudioContent_duration_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_noarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Content have description attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_description_attribute">
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_description_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Content have editableAttributes attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_editableAttributes_attribute">
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_editableAttributes_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Content have isFavorite attribute with proper type and is writeable and not nullable" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_isFavorite_attribute">
+ <testcase purpose="Check if Playlist removeBatch method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch_with_errorCallback">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_isFavorite_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_with_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Content have rating attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_rating_attribute">
+ <testcase purpose="Check if interface PlaylistArraySuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistArraySuccessCallback_notexist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_rating_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if Content have releaseDate attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Content_releaseDate_attribute">
+ <testcase purpose="Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistArraySuccessCallback_onsuccess">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Content_releaseDate_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if ImageContent have geolocation attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ImageContent_geolocation_attribute">
+ <testcase purpose="Check if interface PlaylistItemArraySuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItemArraySuccessCallback_notexist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ImageContent_geolocation_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if VideoContent have album attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_album_attribute">
+ <testcase purpose="Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItemArraySuccessCallback_onsuccess">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_album_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if VideoContent have artists attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_artists_attribute">
+ <testcase purpose="Check if interface PlaylistSuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistSuccessCallback_notexist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_artists_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if VideoContent have duration attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_duration_attribute">
+ <testcase purpose="Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistSuccessCallback_onsuccess">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_duration_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if VideoContent have geolocation attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_geolocation_attribute">
+ <testcase purpose="Check if interface PlaylistItem exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_notexist">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_geolocation_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if VideoContent have height attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_height_attribute">
+ <testcase purpose="Check if interface PlaylistItem can have new properties" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_extend">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_height_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if VideoContent have width attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="VideoContent_width_attribute">
+ <testcase purpose="Check if interface PlaylistItem have content attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_content_attribute">
<description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_width_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_content_attribute.html</test_script_entry>
</description>
</testcase>
</set>
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist\r
+//==== LABEL Check if ContentManager createPlaylist method without optional arguments works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MMINA MR\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, removePlaylistSuccess, removePlaylistFail, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_equals(retVal, undefined, "createPlaylist should return undefined");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ retVal = tizen.content.createPlaylist(randomString(5), createSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_errorCallback_TypeMismatch\r
+//==== LABEL Check if createPlaylist throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;\r
+\r
+t.step(function () {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+ successCallback = t.step_func(function (playlist) {\r
+ assert_unreached("createPlaylist() success callback should not be invoked.");\r
+ });\r
+\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ errorCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.createPlaylist("My new playlist", successCallback, errorCallback);\r
+ }, "Given incorrect error callback.");\r
+ }\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_errorCallback_invalid_cb\r
+//==== LABEL Check if createPlaylist throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), successCallback, incorrectCallback;\r
+\r
+t.step(function () {\r
+ incorrectCallback = {\r
+ onerror: t.step_func(function (error) {\r
+ assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);\r
+ })\r
+ };\r
+\r
+ successCallback = t.step_func(function (playlist) {\r
+ assert_unreached("createPlaylist() success callback should not be invoked.");\r
+ });\r
+\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.createPlaylist("newplaylist", successCallback, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_errorCallback_invoked</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_errorCallback_invoked\r
+//==== LABEL Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MERRCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), createSuccess, createFail;\r
+\r
+t.step(function () {\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_unreached("createPlaylist() success callback unreachable");\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_equals(error.name, "InvalidValuesError", "Incorrect error name");\r
+ assert_type(error.message, "string", "Error message is not a string");\r
+ assert_not_equals(error.message, "","Error message is empty");\r
+ t.done();\r
+ });\r
+\r
+ tizen.content.createPlaylist("", createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_exist\r
+//==== LABEL Check if createPlaylist exists\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+test(function () {\r
+ assert_true("createPlaylist" in tizen.content, "ContentManager should have createPlaylist method");\r
+ check_method_exists(tizen.content, "createPlaylist");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_misarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_misarg\r
+//==== LABEL Check if createPlaylist method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+test(function () {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.createPlaylist("newPlaylist");\r
+ }, "Invoked with non-optional arguments.");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_noarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_noarg\r
+//==== LABEL Check if createPlaylist method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+test(function () {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.createPlaylist();\r
+ }, "Invoked with non-optional arguments.");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_sourcePlaylist_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_sourcePlaylist_TypeMismatch\r
+//==== LABEL Check if createPlaylist throws exception when sourcePlaylist is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i, sourcePlaylist;\r
+\r
+t.step(function () {\r
+ conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+ successCallback = t.step_func(function (playlist) {\r
+ assert_unreached("createPlaylist() success callback should not be invoked.");\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback should not be invoked.");\r
+ });\r
+\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ sourcePlaylist = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.createPlaylist("My new playlist", successCallback, errorCallback, sourcePlaylist);\r
+ }, "Given incorrect error callback.");\r
+ }\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_successCallback_TypeMismatch\r
+//==== LABEL Check if createPlaylist throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;\r
+\r
+t.step(function () {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ successCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.createPlaylist("My new playlist", successCallback, errorCallback);\r
+ }, "Given incorrect success callback.");\r
+ }\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_successCallback_invalid_cb\r
+//==== LABEL Check if createPlaylist throws exception when success callback is invalid\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+test(function () {\r
+ var incorrectCallback;\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function (playlist) {\r
+ assert_unreached("Invalid success callback invoked.");\r
+ }\r
+ };\r
+\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+ function () {\r
+ tizen.content.createPlaylist("newplaylist", incorrectCallback);\r
+ }, "Given invalid successCallback.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_createPlaylist_with_sourcePlaylist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_createPlaylist_with_sourcePlaylist\r
+//==== LABEL Check if ContentManager createPlaylist method with all optional arguments works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:createPlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), successCallback, errorCallback, getSuccessCallback, getErrorCallback, gPlaylist,\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail, successCb, errorCb, beforelength = 0, afterlength = 0, id;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCb = t.step_func(function (playlists) {\r
+ afterlength = playlists.length;\r
+ assert_greater_than(afterlength, beforelength, "length increase");\r
+ tizen.content.removePlaylist(id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCb = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback(after create) was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ id = playlist.id;\r
+ tizen.content.getPlaylists(successCb, errorCb);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getSuccessCallback = t.step_func(function (playlists) {\r
+ beforelength = playlists.length;\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail, gPlaylist);\r
+ });\r
+\r
+ getErrorCallback = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.getPlaylists(getSuccessCallback, getErrorCallback);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), successCallback, errorCallback);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists\r
+//==== LABEL Check if ContentManager getPlaylists method without optional error callback works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MMINA MR\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), successCallback, createSuccess, createFail, gPlaylist, removePlaylistSuccess, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ successCallback = t.step_func(function (playlists) {\r
+ assert_equals(retVal, undefined, "getPlaylists should return undefined");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ retVal = tizen.content.getPlaylists(successCallback);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_errorCallback_TypeMismatch\r
+//==== LABEL Check if getPlaylists throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;\r
+\r
+t.step(function () {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("getPlaylists() success callback should not be invoked.");\r
+ });\r
+\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ errorCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.getPlaylists(successCallback, errorCallback);\r
+ }, "Given incorrect error callback.");\r
+ }\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_errorCallback_invalid_cb\r
+//==== LABEL Check if getPlaylists throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), successCallback, incorrectCallback;\r
+\r
+t.step(function () {\r
+\r
+ incorrectCallback = {\r
+ onerror: t.step_func(function (error) {\r
+ assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);\r
+ })\r
+ };\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("getPlaylists() success callback should not be invoked.");\r
+ });\r
+\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.getPlaylists(successCallback, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_exist\r
+//==== LABEL Check if getPlaylists exists\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+test(function () {\r
+ assert_true("getPlaylists" in tizen.content, "ContentManager should have getPlaylists method");\r
+ check_method_exists(tizen.content, "getPlaylists");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_misarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_misarg\r
+//==== LABEL Check if getPlaylists method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+test(function () {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.getPlaylists();\r
+ }, "Invoked with non-optional arguments.");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_successCallback_TypeMismatch\r
+//==== LABEL Check if getPlaylists throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i;\r
+\r
+t.step(function () {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ successCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.getPlaylists(successCallback, errorCallback);\r
+ }, "Given incorrect success callback.");\r
+ }\r
+\r
+ t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_successCallback_invalid_cb\r
+//==== LABEL Check if getPlaylists throws exception when success callback is invalid\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+test(function () {\r
+ var incorrectCallback;\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function (playlists) {\r
+ assert_unreached("Invalid success callback invoked.");\r
+ }\r
+ };\r
+\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+ function () {\r
+ tizen.content.getPlaylists(incorrectCallback);\r
+ }, "Given invalid successCallback.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_getPlaylists_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_getPlaylists_with_errorCallback\r
+//==== LABEL Check if ContentManager getPlaylists method with optional error callback is invoked properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:getPlaylists M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MOA MR\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), successCallback, errorCallback, createSuccess, createFail, removePlaylistSuccess, gPlaylist, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ successCallback = t.step_func(function (playlists) {\r
+ assert_equals(retVal, undefined, "getPlaylists should return undefined");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ retVal = tizen.content.getPlaylists(successCallback, errorCallback);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist\r
+//==== LABEL Check if ContentManager removePlaylist method without optional arguments works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MMINA MR\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ assert_equals(retVal, undefined, "removePlaylist should return undefined");\r
+ t.done();\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ retVal = tizen.content.removePlaylist(playlist.id, removePlaylistSuccess);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_errorCallback_TypeMismatch\r
+//==== LABEL Check if removePlaylist throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, exceptionName, conversionTable, i, successCallback, errorCallback, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("removePlaylist() success callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ errorCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.removePlaylist(playlist.id, successCallback, errorCallback);\r
+ }, "Given incorrect success callback.");\r
+ }\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_errorCallback_invalid_cb\r
+//==== LABEL Check if removePlaylist throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, incorrectCallback, successCallback, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onerror: function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ }\r
+ };\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("removePlaylist() success callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.removePlaylist(playlist.id, successCallback, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_exist\r
+//==== LABEL Check if removePlaylist exists\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+test(function () {\r
+ assert_true("removePlaylist" in tizen.content, "ContentManager should have removePlaylist method");\r
+ check_method_exists(tizen.content, "removePlaylist");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_misarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_misarg\r
+//==== LABEL Check if removePlaylist method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+test(function () {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.removePlaylist();\r
+ }, "Invoked with non-optional arguments.");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_successCallback_TypeMismatch\r
+//==== LABEL Check if removePlaylist throws exception when success callback is invalid\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, exceptionName, conversionTable, i, successCallback, errorCallback, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ successCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ tizen.content.removePlaylist(playlist.id, successCallback, errorCallback);\r
+ }, "Given incorrect success callback.");\r
+ }\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_successCallback_invalid_cb\r
+//==== LABEL Check if createPlaylist throws exception when successCallback is invalid\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, incorrectCallback, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function () {\r
+ assert_unreached("Invalid successCallback invoked.");\r
+ }\r
+ };\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ tizen.content.removePlaylist(playlist.id, incorrectCallback);\r
+ }, "Given incorrect successCallback.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail)\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>ContentManager_removePlaylist_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: ContentManager_removePlaylist_with_errorCallback\r
+//==== LABEL Check if ContentManager removePlaylist method with optional arguments works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removePlaylist M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, successCallback, errorCallback, removePlaylistSuccess, removePlaylistFail, successCb, errorCb,\r
+ beforelength = 0, afterlength = 0, id;\r
+\r
+t.step(function () {\r
+ successCb = t.step_func(function (playlists) {\r
+ afterlength = playlists.length;\r
+ assert_less_than(afterlength, beforelength, "length shoulddecrease");\r
+ assert_equals(afterlength, beforelength-1, "length should decrease");\r
+ t.done();\r
+ });\r
+\r
+ errorCb = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ tizen.content.getPlaylists(successCb, errorCb);\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (playlists) {\r
+ beforelength = playlists.length;\r
+ tizen.content.removePlaylist(id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ id = playlist.id;\r
+ tizen.content.getPlaylists(successCallback, errorCallback);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistArraySuccessCallback_notexist\r
+//==== LABEL Check if interface PlaylistArraySuccessCallback exists,it should not\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistArraySuccessCallback:PlaylistArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+ check_no_interface_object("PlaylistArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistArraySuccessCallback_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistArraySuccessCallback_onsuccess\r
+//==== LABEL Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), successCallback, errorCallback, createSuccess, createFail, removePlaylistSuccess, gPlaylist, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ successCallback = t.step_func(function (playlists) {\r
+ assert_equals(retVal, undefined, "getPlaylists should return undefined");\r
+ assert_type(playlists, "array", "playlists should be an array");\r
+ assert_type(playlists[0], "object", "Incorrect type.");\r
+ assert_type(playlists[0].id, "string", "id type check");\r
+ assert_type(playlists[0].name, "string", "name type check");\r
+ assert_type(playlists[0].numberOfTracks, "long", "numberOfTracks type check");\r
+ assert_equals(playlists[0].thumbnailURI, null, "thumbnailURI type check");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("getPlaylists() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ retVal = tizen.content.getPlaylists(successCallback, errorCallback);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistItemArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST:PlaylistItemArraySuccessCallback_notexist\r
+//==== LABEL Check if interface PlaylistItemArraySuccessCallback exists,it should not\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistItemArraySuccessCallback:PlaylistItemArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+ check_no_interface_object("PlaylistItemArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistItemArraySuccessCallback_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistItemArraySuccessCallback_onsuccess\r
+//==== LABEL Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistItemArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+ findSuccess, findFail, createSuccess, createFail, onSuccess, onError,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ onSuccess = t.step_func(function (items) {\r
+ assert_type(items, "array", "items should be an array");\r
+ assert_type(items[0].content, "object", "content type check");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ onError = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ gPlaylist.get(onSuccess, onError);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistItem_content_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistItem_content_attribute\r
+//==== LABEL Check if interface PlaylistItem have content attribute with proper type and is readonly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistItem:content A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_equals(items.length, 1 ,"Playlist items is not found");\r
+ assert_own_property(items[0], "content", "items does not own content property.");\r
+ assert_type(items[0].content, "object", "content should be an object");\r
+ items[0].content = null;\r
+ assert_not_equals(items[0].content, null, "content should not be modified");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ assert_greater_than(contents.length, 0, "length should greater than 0");\r
+ gPlaylist.add(contents[0]);\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistItem_extend</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistItem_extend\r
+//==== LABEL Check if interface PlaylistItem can have new properties\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistItem:PlaylistItem U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA OBX\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_greater_than(items.length, 0 ,"Playlist items is not found");\r
+ check_extensibility(items);\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistItem_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistItem_notexist\r
+//==== LABEL Check if interface PlaylistItem exists,it should not\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistItem:PlaylistItem U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+ check_no_interface_object("PlaylistItem");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistSuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistSuccessCallback_notexist\r
+//==== LABEL Check if interface PlaylistSuccessCallback exists,it should not\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistSuccessCallback:PlaylistSuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+ check_no_interface_object("PlaylistSuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>PlaylistSuccessCallback_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: PlaylistSuccessCallback_onsuccess\r
+//==== LABEL Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:PlaylistSuccessCallback:PlaylistSuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ onSuccess, onError, removePlaylistSuccess;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ onSuccess = t.step_func(function (playlist) {\r
+ assert_not_equals(playlist , null, "Argument should not be null.");\r
+ assert_type(playlist, "object", "Incorrect type.");\r
+ assert_type(playlist.id, "string", "id type check");\r
+ assert_type(playlist.name, "string", "name type check");\r
+ assert_type(playlist.numberOfTracks, "long", "numberOfTracks type check");\r
+ assert_equals(playlist.thumbnailURI, null, "thumbnailURI type check");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess);\r
+ });\r
+\r
+ onError = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), onSuccess, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_add</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_add\r
+//==== LABEL Check if Playlist add method works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:add M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist, successCallback, errorCallback, i, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_equals(retVal, undefined, "add should return undefined");\r
+ assert_not_equals(items, 0, "items should not be 0");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ retVal = gPlaylist.add(contents[0]);\r
+ }\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch\r
+//==== LABEL Check if Playlist addBatch method works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MAST MMINA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, removePlaylistSuccess, removePlaylistFail, successCallback, errorCallback, gPlaylist ,retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_equals(retVal, undefined, "addBatch should return undefined");\r
+ assert_not_equals(items, 0, "items should not be 0");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ retVal = gPlaylist.addBatch([contents[0], contents[1]]);\r
+ }\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_errorCallback_TypeMismatch\r
+//==== LABEL Check if Playlist addBatch method throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("addBatch() success callback should not be invoked.");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ errorCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.addBatch([contents[0], contents[1]], successCallback, errorCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_errorCallback_invalid_cb\r
+//==== LABEL Check if Playlist addBatch method throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, incorrectCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onerror: function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ }\r
+ };\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("addBatch() success callback should not be invoked.");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.addBatch([contents[0], contents[1]], successCallback, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_exist\r
+//==== LABEL Check if addBatch exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("addBatch" in playlist, "Playlist should have addBatch method");\r
+ check_method_exists(playlist, "addBatch");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_items_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_items_TypeMismatch\r
+//==== LABEL Check if addBatch throws exception when content is incorrect\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, conversionTable, item, i, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ conversionTable = getTypeConversionExceptions("object", false);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ item = conversionTable[i][0];\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.addBatch(item);\r
+ }, "Invoked with non-optional arguments.");\r
+ }\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_misarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_misarg\r
+//==== LABEL Check if addBatch method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.addBatch();\r
+ }, "Invoked with non-optional arguments.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_successCallback_TypeMismatch\r
+//==== LABEL Check if Playlist addBatch method throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ errorCallback = t.step_func(function () {\r
+ assert_unreached("addBatch() error callback should not be invoked.");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ successCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.addBatch([contents[0], contents[1]], successCallback, errorCallback);\r
+ }, "Given incorrect successCallback.");\r
+ }\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_successCallback_invalid_cb\r
+//==== LABEL Check if Playlist addBatch method throws exception when successCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, incorrectCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function () {\r
+ assert_unreached("Invalid successCallback invoked.");\r
+ }\r
+ };\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.addBatch([contents[0], contents[1]], incorrectCallback);\r
+ }, "Given incorrect successCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_addBatch_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_addBatch_with_errorCallback\r
+//==== LABEL Check if Playlist addBatch method works properly with all optional arguments\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:addBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function () {\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], successCallback, errorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_add_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_add_exist\r
+//==== LABEL Check if add exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:add M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("add" in playlist, "Playlist should have add method");\r
+ check_method_exists(playlist, "add");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_add_item_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_add_item_TypeMismatch\r
+//==== LABEL Check if add throws exception when content is incorrect\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:add M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, conversionTable, item, exceptionName, i, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ conversionTable = getTypeConversionExceptions("object", false);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ item = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.add(item);\r
+ }, "Invoked with non-optional arguments.");\r
+ }\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_add_misarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_add_misarg\r
+//==== LABEL Check if add method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:add M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.add();\r
+ }, "Invoked with non-optional arguments.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_extend</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_extend\r
+//==== LABEL Check if interface Playlist can have new properties\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:Playlist U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA OBX\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}), createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ check_extensibility(playlist);\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get\r
+//==== LABEL Check if Playlist get method works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MMINA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_equals(retVal, undefined, "get should return undefined");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ retVal = gPlaylist.get(successCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_errorCallback_TypeMismatch\r
+//==== LABEL Check if Playlist get method throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("get() success callback should not be invoked.");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ errorCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_errorCallback_invalid_cb\r
+//==== LABEL Check if Playlist get method throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, incorrectCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onerror: t.step_func(function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ })\r
+ };\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("get() success callback should not be invoked.");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.get(successCallback, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_errorCallback_invoked</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_errorCallback_invoked\r
+//==== LABEL Check if Playlist get method with invalid arguments would invoke errorCallback\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MERRCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, count = 1, offset = -1,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_unreached("get() success callback unreachable");\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_equals(error.name, "InvalidValuesError", "Incorrect error name");\r
+ assert_type(error.message, "string", "Error message is not a string");\r
+ assert_not_equals(error.message, "","Error message is empty");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ gPlaylist.get(successCallback, errorCallback, count, offset);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_exist\r
+//==== LABEL Check if get exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("get" in playlist, "Playlist should have get method");\r
+ check_method_exists(playlist, "get");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_misarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_misarg\r
+//==== LABEL Check if get method called with missing non-optional argument throws an exception\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.get();\r
+ }, "Invoked with non-optional arguments.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_successCallback_TypeMismatch\r
+//==== LABEL Check if Playlist get method throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, conversionTable, i, exceptionName,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback should not be invoked.");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ successCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ }, "Given incorrect successCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_successCallback_invalid_cb\r
+//==== LABEL Check if Playlist get method throws exception when successCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, incorrectCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function (items) {\r
+ assert_unreached("Invalid successCallback invoked.");\r
+ }\r
+ };\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+ function () {\r
+ gPlaylist.get(incorrectCallback);\r
+ }, "Given incorrect successCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_get_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_get_with_offset\r
+//==== LABEL Check if Playlist get method works properly with all optional arguments\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:get M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, count = 1, offset = 1,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ gPlaylist.get(successCallback, errorCallback, count, offset);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_id_attribute\r
+//==== LABEL Check if Playlist have id attribute with proper type and is readonly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_own_property(playlist, "id", "playlist does not own id property.");\r
+ assert_type(playlist.id, "string", "id should be an string");\r
+ check_readonly(playlist, "id", playlist.id, "string", playlist.id + "abc");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move\r
+//==== LABEL Check if Playlist move method works properly without optional arguments\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MMINA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, removePlaylistSuccess, removePlaylistFail, gPlaylist, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveSuccess = t.step_func(function () {\r
+ assert_equals(retVal, undefined, "move should return undefined");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ retVal = gPlaylist.move(items[1], -1, moveSuccess);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_errorCallback_TypeMismatch\r
+//==== LABEL Check if Playlist move method throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveSuccess = t.step_func(function () {\r
+ assert_unreached("move() success callback should not be invoked.");\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ moveFail = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.move(items[1], -1, moveSuccess, moveFail);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_errorCallback_invalid_cb\r
+//==== LABEL Check if Playlist move method throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveSuccess = t.step_func(function () {\r
+ assert_unreached("move() success callback should not be invoked.");\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ }\r
+ };\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+ function () {\r
+ gPlaylist.move(items[1], -1, moveSuccess, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_errorCallback_invoked</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_errorCallback_invoked\r
+//==== LABEL Check if Playlist move method with invalid arguments would invoke errorCallback\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MERRCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveSuccess = t.step_func(function () {\r
+ assert_unreached("move() success callback should not be invoked.");\r
+ });\r
+\r
+ moveFail = t.step_func(function (error) {\r
+ assert_equals(error.name, "InvalidValuesError", "Incorrect error name");\r
+ assert_type(error.message, "string", "Error message is not a string");\r
+ assert_not_equals(error.message, "","Error message is empty");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ gPlaylist.remove(items[0]);\r
+ gPlaylist.move(items[0], items.length, moveSuccess, moveFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ assert_greater_than(contents.length, 2, "length should greater than 2");\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_exist\r
+//==== LABEL Check if move exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("move" in playlist, "Playlist should have move method");\r
+ check_method_exists(playlist, "move");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_item_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_item_TypeMismatch\r
+//==== LABEL Check if Playlist move method throws exception when item is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveSuccess = t.step_func(function () {\r
+ assert_unreached("move() success callback should not be invoked.");\r
+ });\r
+\r
+ moveFail = t.step_func(function (error) {\r
+ assert_unreached("move() error callback should not be invoked.");\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ conversionTable = getTypeConversionExceptions("object", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ items = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.move(items, -1, moveSuccess, moveFail);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_noarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_noarg\r
+//==== LABEL Check if move method called with missing non-optional argument throws an exception\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.move();\r
+ }, "miss argument");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_successCallback_TypeMismatch\r
+//==== LABEL Check if Playlist move method throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveFail = t.step_func(function (error) {\r
+ assert_unreached("move() error callback should not be invoked.");\r
+ });\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ moveSuccess = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.move(items[1], -1, moveSuccess, moveFail);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_successCallback_invalid_cb\r
+//==== LABEL Check if Playlist move method throws exception when successCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, successCallback, errorCallback, addsuccessCallback, adderrorCallback,\r
+ moveFail, incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveFail = t.step_func(function (error) {\r
+ assert_unreached("move() error callback should not be invoked.");\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ }\r
+ };\r
+\r
+ successCallback = t.step_func(function (items) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+ function () {\r
+ gPlaylist.move(items[1], -1, incorrectCallback, moveFail);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(successCallback, errorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_move_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_move_with_errorCallback\r
+//==== LABEL Check if Playlist move method works properly with all optional arguments\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:move M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addsuccessCallback, adderrorCallback,\r
+ moveSuccess, moveFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItmes, get2successCallback, get2errorCallback;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ get2successCallback = t.step_func(function (items) {\r
+ assert_equals(items[0].content.id, gItmes[1].content.id, "after moving items[0] should be the same with gItmes[1]");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ get2errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback (after move)was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ moveSuccess = t.step_func(function () {\r
+ gPlaylist.get(get2successCallback, get2errorCallback);\r
+ });\r
+\r
+ moveFail = t.step_func(function (error) {\r
+ assert_unreached("move() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItmes = items;\r
+ gPlaylist.move(items[1], -1, moveSuccess, moveFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ assert_greater_than(contents.length, 2, "length should greater than 2");\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_name_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_name_attribute\r
+//==== LABEL Check if Playlist have name attribute with proper type\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_own_property(playlist, "name", "playlist does not own name property.");\r
+ assert_type(playlist.name, "string", "name should be an string");\r
+ check_attribute(playlist, "name", playlist.name, "string", playlist.name + "abc");\r
+ check_not_nullable(playlist, "name");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_notexist\r
+//==== LABEL Check if interface Playlist exists, it should not\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:Playlist U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P3\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+ check_no_interface_object("Playlist");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_numberOfTracks_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_numberOfTracks_attribute\r
+//==== LABEL Check if Playlist have numberOfTracks attribute with proper type and is readonly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:numberOfTracks A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_own_property(playlist, "numberOfTracks", "playlist does not own numberOfTracks property.");\r
+ assert_type(playlist.numberOfTracks, "long", "numberOfTracks should be an long");\r
+ check_readonly(playlist, "numberOfTracks", playlist.numberOfTracks, "long", playlist.numberOfTracks + 1);\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_remove</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_remove\r
+//==== LABEL Check if Playlist remove method works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:remove M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getSuccess, getFail, get2Success, get2Fail,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist, beforelenght, afterlength, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ get2Success = t.step_func(function (items) {\r
+ assert_equals(retVal, undefined, "remove should return undefined");\r
+ afterlength = items.length;\r
+ assert_less_than(afterlength, beforelenght, "length should be decrease");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ get2Fail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback(after remove) was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ beforelenght = items.length;\r
+ retVal = gPlaylist.remove(items[0]);\r
+ gPlaylist.get(get2Success, get2Fail);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 0) {\r
+ gPlaylist.add(contents[0]);\r
+ gPlaylist.get(getSuccess, getFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch\r
+//==== LABEL Check if Playlist removeBatch method works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MAST MMINA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getSuccess, getFail, get2Success, get2Fail, addsuccessCallback, adderrorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist , afterlength, beforelenght, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ get2Success = t.step_func(function (items) {\r
+ assert_equals(retVal, undefined, "remove should return undefined");\r
+ afterlength = items.length;\r
+ assert_equals(afterlength, 0, "length should be zero")\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ get2Fail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback(after removeBatch) was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ beforelenght = items.length;\r
+ retVal = gPlaylist.removeBatch([items[0], items[1]]);\r
+ setTimeout(function(){gPlaylist.get(get2Success, get2Fail);}, 1000);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getSuccess, getFail);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ assert_greater_than(contents.length, 2, "length should greater than 2");\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_errorCallback_TypeMismatch\r
+//==== LABEL Check if Playlist removeBatch method throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, successCallback, errorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("removeBatch() success callback should not be invoked.");\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ errorCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.removeBatch([items[0], items[1]], successCallback, errorCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getSuccess, getFail);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_errorCallback_invalid_cb\r
+//==== LABEL Check if Playlist removeBatch method throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, successCallback, incorrectCallback,\r
+ removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onerror: t.step_func(function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ })\r
+ };\r
+\r
+ successCallback = t.step_func(function () {\r
+ assert_unreached("removeBatch() success callback should not be invoked.");\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.removeBatch([items[0], items[1]], successCallback, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getSuccess, getFail);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_exist\r
+//==== LABEL Check if removeBatch exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("removeBatch" in playlist, "Playlist should have removeBatch method");\r
+ check_method_exists(playlist, "removeBatch");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_items_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_items_TypeMismatch\r
+//==== LABEL Check if removeBatch throws exception when content is incorrect\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, conversionTable, item, exceptionName, i, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ conversionTable = getTypeConversionExceptions("object", false);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ item = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.removeBatch(item);\r
+ }, "Invoked with non-optional arguments.");\r
+ }\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_noarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_noarg\r
+//==== LABEL Check if removeBatch method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.removeBatch();\r
+ }, "Invoked with non-optional arguments.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_successCallback_TypeMismatch\r
+//==== LABEL Check if Playlist removeBatch method throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, successCallback, errorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ errorCallback = t.step_func(function () {\r
+ assert_unreached("removeBatch() success callback should not be invoked.");\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ successCallback = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.removeBatch([items[0], items[1]], successCallback, errorCallback);\r
+ }, "Given incorrect successCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getSuccess, getFail);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_successCallback_invalid_cb\r
+//==== LABEL Check if Playlist removeBatch method throws exception when successCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, errorCallback, incorrectCallback,\r
+ removePlaylistSuccess, removePlaylistFail, getSuccess, getFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function () {\r
+ assert_unreached("Invalid successCallback invoked:" + error.name + " msg: " + error.message);\r
+ }\r
+ };\r
+\r
+ errorCallback = t.step_func(function () {\r
+ assert_unreached("removeBatch() error callback should not be invoked.");\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.removeBatch([items[0], items[1]], incorrectCallback, errorCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getSuccess, getFail);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_removeBatch_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_removeBatch_with_errorCallback\r
+//==== LABEL Check if Playlist removeBatch method works properly with all optional arguments\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:removeBatch M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, addsuccessCallback, adderrorCallback, getSuccess, getFail, successCallback, errorCallback,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ successCallback = t.step_func(function () {\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ errorCallback = t.step_func(function (error) {\r
+ assert_unreached("removeBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getSuccess = t.step_func(function (items) {\r
+ gPlaylist.removeBatch([items[0], items[1]], successCallback, errorCallback);\r
+ });\r
+\r
+ getFail = t.step_func(function (error) {\r
+ assert_unreached("get() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ addsuccessCallback = t.step_func(function () {\r
+ gPlaylist.get(getSuccess, getFail);\r
+ });\r
+\r
+ adderrorCallback = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addsuccessCallback, adderrorCallback);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_remove_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_remove_exist\r
+//==== LABEL Check if remove exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:remove M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("remove" in playlist, "Playlist should have remove method");\r
+ check_method_exists(playlist, "remove");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_remove_item_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_remove_item_TypeMismatch\r
+//==== LABEL Check if remove throws exception when item is incorrect\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:remove M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, conversionTable, item, exceptionName, i, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ conversionTable = getTypeConversionExceptions("object", false);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ item = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.remove(item);\r
+ }, "Invoked with non-optional arguments.");\r
+ }\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_remove_noarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_remove_noarg\r
+//==== LABEL Check if remove method called with missing non-optional argument throws an exception\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:remove M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ playlist.remove();\r
+ }, "Invoked with non-optional arguments.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder\r
+//==== LABEL Check if Playlist setOrder method works properly\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,\r
+ setOrderSuccess, get2successCallback, get2errorCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder, retVal = null;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ get2successCallback = t.step_func(function (items) {\r
+ assert_equals(items[0].content.name, gItems[items.length-1].content.name, "name should be the same");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ get2errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable(after set order)");\r
+ });\r
+\r
+ setOrderSuccess = t.step_func(function () {\r
+ assert_equals(retVal, undefined, "setOrder should return undefined");\r
+ gPlaylist.get(get2successCallback, get2errorCallback);\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ retVal = gPlaylist.setOrder(gExpectedOrder, setOrderSuccess);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_errorCallback_TypeMismatch\r
+//==== LABEL Check if Playlist get method throws exception when errorCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable, i, exceptionName,\r
+ setOrderSuccess, setOrderFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ setOrderSuccess = t.step_func(function () {\r
+ assert_unreached("setOrder() success callback unreachable");\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ setOrderFail = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_errorCallback_invalid_cb\r
+//==== LABEL Check if Playlist get method throws exception when errorCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable,\r
+ setOrderSuccess, incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder, i, j;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ setOrderSuccess = t.step_func(function () {\r
+ assert_unreached("setOrder() success callback unreachable");\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function (error) {\r
+ assert_unreached("Invalid errorCallback invoked:" + error.name + " msg: " + error.message);\r
+ }\r
+ };\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, incorrectCallback);\r
+ }, "Given incorrect errorCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_errorCallback_invoked</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_errorCallback_invoked\r
+//==== LABEL Check if ContentManager setOrder method with invalid arguments would invoke errorCallback\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MERRCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,\r
+ setOrderSuccess, setOrderFail, removePlaylistSuccess, removePlaylistFail, gPlaylist, gExpectedOrder;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ setOrderSuccess = t.step_func(function () {\r
+ assert_unreached("setOrder() success callback unreachable(after set order)");\r
+ });\r
+\r
+ setOrderFail = t.step_func(function (error) {\r
+ assert_equals(error.name, "InvalidValuesError", "Incorrect error name");\r
+ assert_type(error.message, "string", "Error message is not a string");\r
+ assert_not_equals(error.message, "","Error message is empty");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gExpectedOrder = items.slice(items.length);\r
+ gExpectedOrder.reverse();\r
+ gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_exist</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_exist\r
+//==== LABEL Check if setOrder exists\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P0\r
+//==== TEST_CRITERIA ME\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_true("setOrder" in playlist, "Playlist should have setOrder method");\r
+ check_method_exists(playlist, "setOrder");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_items_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_items_TypeMismatch\r
+//==== LABEL Check if Playlist get method throws exception when items is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable, i, exceptionName,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ conversionTable = getTypeConversionExceptions("array", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ items = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.setOrder(items);\r
+ }, "Given incorrect items.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_noarg</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_noarg\r
+//==== LABEL Check if setOrder method called with missing non-optional argument throws an exception\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,\r
+ removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+ function () {\r
+ gPlaylist.setOrder();\r
+ }, "missing non-optional argument should throw an exception");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_successCallback_TypeMismatch\r
+//==== LABEL Check if Playlist get method throws exception when successCallback is incorrect\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail, conversionTable, i, exceptionName,\r
+ setOrderSuccess, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ conversionTable = getTypeConversionExceptions("functionObject", true);\r
+ for (i = 0; i < conversionTable.length; i++) {\r
+ setOrderSuccess = conversionTable[i][0];\r
+ exceptionName = conversionTable[i][1];\r
+ assert_throws({name: exceptionName},\r
+ function () {\r
+ gPlaylist.setOrder(gExpectedOrder, setOrderSuccess);\r
+ }, "Given incorrect errorCallback.");\r
+ }\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_successCallback_invalid_cb\r
+//==== LABEL Check if Playlist get method throws exception when successCallback is invalid\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P2\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,\r
+ incorrectCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ incorrectCallback = {\r
+ onsuccess: function () {\r
+ assert_unreached("Invalid successCallback invoked.");\r
+ }\r
+ };\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+ gPlaylist.setOrder(gExpectedOrder, incorrectCallback);\r
+ }, "Given incorrect successCallback.");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_setOrder_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_setOrder_with_errorCallback\r
+//==== LABEL Check if Playlist setOrder method works properly with all optional arguments\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:setOrder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA MOA MAST\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ findSuccess, findFail, createSuccess, createFail, getsuccessCallback, geterrorCallback, addSuccess, addFail,\r
+ setOrderSuccess, setOrderFail, get2successCallback, get2errorCallback, removePlaylistSuccess, removePlaylistFail, gPlaylist, gItems, gExpectedOrder;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ get2successCallback = t.step_func(function (items) {\r
+ assert_equals(items[0].content.name, gItems[items.length-1].content.name, "name should be the same");\r
+ tizen.content.removePlaylist(gPlaylist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ get2errorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable(after set order)");\r
+ });\r
+\r
+ setOrderSuccess = t.step_func(function () {\r
+ gPlaylist.get(get2successCallback, get2errorCallback);\r
+ });\r
+\r
+ setOrderFail = t.step_func(function (error) {\r
+ assert_unreached("setOrder() error callback unreachable");\r
+ });\r
+\r
+ getsuccessCallback = t.step_func(function (items) {\r
+ gItems = items;\r
+ gExpectedOrder = gItems.slice(0);\r
+ gExpectedOrder.reverse();\r
+ gPlaylist.setOrder(gExpectedOrder, setOrderSuccess, setOrderFail);\r
+ });\r
+\r
+ geterrorCallback = t.step_func(function (error) {\r
+ assert_unreached("get() error callback unreachable");\r
+ });\r
+\r
+ addSuccess = t.step_func(function () {\r
+ gPlaylist.get(getsuccessCallback, geterrorCallback);\r
+ });\r
+\r
+ addFail = t.step_func(function (error) {\r
+ assert_unreached("addBatch() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ findSuccess = t.step_func(function (contents) {\r
+ if (contents.length > 2) {\r
+ gPlaylist.addBatch([contents[0], contents[1]], addSuccess, addFail);\r
+ }\r
+ });\r
+\r
+ findFail = t.step_func(function (error) {\r
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ gPlaylist = playlist;\r
+ tizen.content.find(findSuccess, findFail, null, new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"));\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Author:\r
+ Xiaoyan Qian <xy.qian@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Playlist_thumbnailURI_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/content_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Playlist_thumbnailURI_attribute\r
+//==== LABEL Check if Playlist have thumbnailURI attribute with proper type\r
+//==== ONLOAD_DELAY 30\r
+//==== SPEC Tizen Web API:Content:Content:Playlist:thumbnailURI A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html\r
+//==== PRIORITY P1\r
+//==== TEST_CRITERIA AE AT ASG ADV\r
+\r
+setup({timeout: 30000});\r
+\r
+var t = async_test(document.title, {timeout: 30000}),\r
+ createSuccess, createFail, removePlaylistSuccess, removePlaylistFail;\r
+\r
+t.step(function () {\r
+ removePlaylistSuccess = t.step_func(function () {\r
+ t.done();\r
+ });\r
+\r
+ removePlaylistFail = t.step_func(function (error) {\r
+ assert_unreached("removePlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ createSuccess = t.step_func(function (playlist) {\r
+ assert_own_property(playlist, "thumbnailURI", "playlist does not own thumbnailURI property.");\r
+ assert_equals(playlist.thumbnailURI, null, "playlist.thumbnailURI should be null by default.");\r
+ tizen.content.removePlaylist(playlist.id, removePlaylistSuccess, removePlaylistFail);\r
+ });\r
+\r
+ createFail = t.step_func(function (error) {\r
+ assert_unreached("createPlaylist() error callback was invoked: " + error.name + " msg: " + error.message);\r
+ });\r
+\r
+ tizen.content.createPlaylist(randomString(5), createSuccess, createFail);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
</spec>
</specs>
</testcase>
- <testcase purpose="Check if attribute ageRating of MediaControllerPlaybackInfo exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerPlaybackInfo_ageRating_attribute">
- <description>
- <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MediaControllerPlaybackInfo_ageRating_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="MediaControllerPlaybackInfo" element_type="attribute" element_name="ageRating" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if MediaControllerServer updatePlaybackAgeRating method works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_updatePlaybackAgeRating">
<description>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/MediaControllerServer_updatePlaybackAgeRating.html</test_script_entry>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_createPlaylist_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager createPlaylist method without optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if ContentManager createPlaylist method with all optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist_with_sourcePlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_with_sourcePlaylist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when sourcePlaylist is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_sourcePlaylist_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_sourcePlaylist_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="createPlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager getPlaylists method without optional error callback works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_getPlaylists">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_getPlaylists_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager getPlaylists method with optional error callback is invoked properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="getPlaylists" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removePlaylist_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager removePlaylist method without optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if removePlaylist method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if ContentManager removePlaylist method with optional arguments works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when success callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removePlaylist" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface Playlist can have new properties" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_extend">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_extend.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface Playlist exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have id attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_id_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_id_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="id" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have name attribute with proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_name_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_name_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="name" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have numberOfTracks attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_numberOfTracks_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_numberOfTracks_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="numberOfTracks" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist have thumbnailURI attribute with proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_thumbnailURI_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_thumbnailURI_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="attribute" element_name="thumbnailURI" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if add exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_add_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist add method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_add">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if add method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if add throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_item_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="add" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if addBatch exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_addBatch_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if addBatch method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if addBatch throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_items_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="addBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if get exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_get_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if get method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get_with_offset">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_with_offset.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="get" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setOrder exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_setOrder_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist setOrder method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setOrder method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist setOrder method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when items is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_items_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if ContentManager setOrder method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="setOrder" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method works properly without optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if move exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_move_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if move method called with missing non-optional argument throws an exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist move method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when item is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_item_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist move method with invalid arguments would invoke errorCallback" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="move" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if remove exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_remove_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist remove method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_remove">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if remove throws exception when item is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_item_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if remove method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="remove" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removeBatch exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist removeBatch method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase> -->
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removeBatch throws exception when content is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_items_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if removeBatch method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_noarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method works properly with all optional arguments" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="Playlist" element_type="method" element_name="removeBatch" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistArraySuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistArraySuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistArraySuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistArraySuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistArraySuccessCallback" element_type="method" element_name="onsuccess" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItemArraySuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItemArraySuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItemArraySuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItemArraySuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItemArraySuccessCallback" element_type="method" element_name="onsuccess" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistSuccessCallback exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistSuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistSuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistSuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistSuccessCallback" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem exists,it should not" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItem" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem can have new properties" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_extend">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_extend.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItem" usage="true" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem have content attribute with proper type and is readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItem_content_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_content_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="PlaylistItem" element_type="attribute" element_name="content" 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_statement>TBD</spec_statement>
+ </spec>
+ </specs>
</testcase>
</set>
</suite>
<test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/VideoContent_width_attribute.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="Check if createPlaylist exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_createPlaylist_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if ContentManager createPlaylist method without optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if ContentManager createPlaylist method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invoked.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <!-- <testcase purpose="Check if ContentManager createPlaylist method with all optional arguments works properly" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_createPlaylist_with_sourcePlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_with_sourcePlaylist.html</test_script_entry>
+ </description>
+ </testcase> -->
+ <testcase purpose="Check if createPlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_noarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when sourcePlaylist is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_createPlaylist_sourcePlaylist_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_createPlaylist_sourcePlaylist_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if ContentManager getPlaylists method without optional error callback works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_getPlaylists">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if getPlaylists exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_getPlaylists_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if getPlaylists method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if ContentManager getPlaylists method with optional error callback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if getPlaylists throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_getPlaylists_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_getPlaylists_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removePlaylist exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removePlaylist_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if ContentManager removePlaylist method without optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist.html</test_script_entry>
+ </description>
+ </testcase>
+ <!-- <testcase purpose="Check if removePlaylist method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_misarg.html</test_script_entry>
+ </description>
+ </testcase> -->
+ <testcase purpose="Check if ContentManager removePlaylist method with optional arguments works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removePlaylist_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removePlaylist throws exception when success callback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if createPlaylist throws exception when successCallback is invalid" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_removePlaylist_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ContentManager_removePlaylist_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface Playlist can have new properties" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_extend">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_extend.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface Playlist exists, it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="Playlist_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist have id attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_id_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_id_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist have name attribute with proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_name_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_name_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist have numberOfTracks attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_numberOfTracks_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_numberOfTracks_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist have thumbnailURI attribute with proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_thumbnailURI_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_thumbnailURI_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if add exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_add_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist add method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_add">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if add method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if add throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_add_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_add_item_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if addBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_addBatch_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if addBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if addBatch throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_items_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_addBatch_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist addBatch method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_addBatch_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_addBatch_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if get exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_get_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if get method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_misarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_get_with_offset">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_with_offset.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_get_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_get_errorCallback_invoked.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if setOrder exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_setOrder_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist setOrder method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if setOrder method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_noarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist setOrder method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_setOrder_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when items is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_items_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist get method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if ContentManager setOrder method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_setOrder_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_setOrder_errorCallback_invoked.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist move method works properly without optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if move exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_move_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if move method called with missing non-optional argument throws an exception" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_noarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist move method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_move_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase> -->
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when item is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_item_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist move method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist move method with invalid arguments would invoke errorCallback" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_move_errorCallback_invoked">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_move_errorCallback_invoked.html</test_script_entry>
+ </description>
+ </testcase> -->
+ <testcase purpose="Check if remove exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_remove_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist remove method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_remove">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if remove throws exception when item is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_item_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_item_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if remove method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_remove_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_remove_noarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removeBatch exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch_exist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <!-- <testcase purpose="Check if Playlist removeBatch method works properly" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="Playlist_removeBatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch.html</test_script_entry>
+ </description>
+ </testcase> -->
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removeBatch throws exception when content is incorrect" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_items_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_items_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if removeBatch method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_noarg">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_noarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is invalid" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method throws exception when successCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="Playlist_removeBatch_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if Playlist removeBatch method works properly with all optional arguments" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="Playlist_removeBatch_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/Playlist_removeBatch_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistArraySuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistArraySuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if PlaylistArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistArraySuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistArraySuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItemArraySuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItemArraySuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if PlaylistItemArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistItemArraySuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItemArraySuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistSuccessCallback exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistSuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if PlaylistSuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="PlaylistSuccessCallback_onsuccess">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistSuccessCallback_onsuccess.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem exists,it should not" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_notexist">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem can have new properties" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_extend">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_extend.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if interface PlaylistItem have content attribute with proper type and is readonly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="PlaylistItem_content_attribute">
+ <description>
+ <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PlaylistItem_content_attribute.html</test_script_entry>
+ </description>
+ </testcase>
</set>
</suite>
</test_definition>