--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_addPlaylistUpdateListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdateListener
+//==== LABEL Check if addPlaylistUpdateListener() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), watcherId = null, mcClient, playlist, mcServerInfo, ondelete;
+
+t.step(function () {
+ add_result_callback(function () {
+ mcServer.playlists.deletePlaylist("list");
+ mcServerInfo.playlists.removePlaylistUpdateListener(watcherId);
+ });
+ ondelete = {
+ onplaylistdeleted: t.step_func(function(playlistName) {
+ assert_type(watcherId, "long", "watcherId should be type of number");
+ t.done();
+ })
+ };
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ playlist = mcServer.playlists.createPlaylist("list");
+ mcServer.playlists.savePlaylist(playlist);
+ watcherId = mcServerInfo.playlists.addPlaylistUpdateListener(ondelete);
+ mcServer.playlists.deletePlaylist("list");
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_addPlaylistUpdateListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdateListener_exist
+//==== LABEL Check if method addPlaylistUpdateListener of MediaControllerPlaylistsInfo exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcServer, mcClient, mcServerInfo;
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ check_method_exists(mcServerInfo.playlists, "addPlaylistUpdateListener");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_TypeMismatch
+//==== LABEL Check argument listener conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+var mcServer, mcClient, mcServerInfo, incorrectCallback, exceptionName, i, conversionTable;
+
+test(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ conversionTable = getTypeConversionExceptions("object", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ incorrectCallback = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.playlists.addPlaylistUpdateListener(incorrectCallback);
+ }, exceptionName + " should be thrown - given incorrect callback - " + incorrectCallback);
+ }
+
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_invalid</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_invalid
+//==== LABEL Check if addPlaylistUpdateListener throws exception when callback is invalid listener
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTL
+
+var mcServer, mcClient, mcServerInfo, statusChangeListener, exceptionName, incorrectListener, i;
+
+test(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ incorrectListener = getListenerConversionExceptions(["onplaylistupdated", "onplaylistdeleted"]);
+
+ for (i = 0; i < incorrectListener.length; i++) {
+ statusChangeListener = incorrectListener[i][0];
+ exceptionName = incorrectListener[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.playlists.addPlaylistUpdateListener(statusChangeListener);
+ }, exceptionName + " should be thrown - given incorrect listener.");
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_addPlaylistUpdateListener_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdateListener_misarg
+//==== LABEL Check if addPlaylistUpdateListener method of MediaControllerPlaylistsInfo called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ var mcServer, mcClient, mcServerInfo;
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ mcServerInfo.playlists.addPlaylistUpdateListener();
+ }, "Invoked without non-optional arguments.");
+}, document.title);
+
+</script>
+</body>
+</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_addPlaylistUpdatedListener</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdatedListener
-//==== LABEL Check if addPlaylistUpdatedListener() works properly
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), watcherId = null, mcClient, playlist, mcServerInfo, ondelete;
-
-t.step(function () {
- add_result_callback(function () {
- mcServer.playlists.deletePlaylist("list");
- mcServerInfo.playlists.removePlaylistUpdateListener(watcherId);
- });
- ondelete = {
- onplaylistdeleted: t.step_func(function(playlistName) {
- assert_type(watcherId, "long", "watcherId should be type of number");
- t.done();
- })
- };
-
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- playlist = mcServer.playlists.createPlaylist("list");
- mcServer.playlists.savePlaylist(playlist);
- watcherId = mcServerInfo.playlists.addPlaylistUpdatedListener(ondelete);
- mcServer.playlists.deletePlaylist("list");
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_exist
-//==== LABEL Check if method addPlaylistUpdatedListener of MediaControllerPlaylistsInfo exists
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-test(function () {
- var mcServer, mcClient, mcServerInfo;
-
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- check_method_exists(mcServerInfo.playlists, "addPlaylistUpdatedListener");
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_TypeMismatch
-//==== LABEL Check argument listener conversions exception
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-var mcServer, mcClient, mcServerInfo, incorrectCallback, exceptionName, i, conversionTable;
-
-test(function () {
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- conversionTable = getTypeConversionExceptions("object", false);
-
- for (i = 0; i < conversionTable.length; i++) {
- incorrectCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
- assert_throws({name: exceptionName},
- function () {
- mcServerInfo.playlists.addPlaylistUpdatedListener(incorrectCallback);
- }, exceptionName + " should be thrown - given incorrect callback - " + incorrectCallback);
- }
-
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_invalid
-//==== LABEL Check if addPlaylistUpdatedListener throws exception when callback is invalid listener
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P2
-//==== TEST_CRITERIA MTL
-
-var mcServer, mcClient, mcServerInfo, statusChangeListener, exceptionName, incorrectListener, i;
-
-test(function () {
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- incorrectListener = getListenerConversionExceptions(["onplaylistupdated", "onplaylistdeleted"]);
-
- for (i = 0; i < incorrectListener.length; i++) {
- statusChangeListener = incorrectListener[i][0];
- exceptionName = incorrectListener[i][1];
- assert_throws({name: exceptionName},
- function () {
- mcServerInfo.playlists.addPlaylistUpdatedListener(statusChangeListener);
- }, exceptionName + " should be thrown - given incorrect listener.");
- }
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_misarg
-//==== LABEL Check if addPlaylistUpdatedListener method of MediaControllerPlaylistsInfo called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:addPlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
- var mcServer, mcClient, mcServerInfo;
-
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- mcServerInfo.playlists.addPlaylistUpdatedListener();
- }, "Invoked without non-optional arguments.");
-}, document.title);
-
-</script>
-</body>
-</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_removePlaylistUpdateListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_removePlaylistUpdateListener
+//==== LABEL Check if MediaControllerPlaylistsInfo removePlaylistUpdateListener method works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:removePlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+//==== ONLOAD_DELAY 30
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 90000}), watcherId = null, mcServer, mcClient, playlist, mcServerInfo, ondelete, retVal = null;
+
+t.step(function () {
+ add_result_callback(function () {
+ mcServer.playlists.deletePlaylist("list");
+ });
+ ondelete = {
+ onplaylistdeleted: t.step_func(function(playlistName) {
+ retVal = mcServerInfo.playlists.removePlaylistUpdateListener(watcherId);
+ assert_equals(retVal, undefined, "return value should be undefined");
+ t.done();
+ })
+ };
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ playlist = mcServer.playlists.createPlaylist("list");
+ mcServer.playlists.savePlaylist(playlist);
+ watcherId = mcServerInfo.playlists.addPlaylistUpdateListener(ondelete);
+
+ mcServer.playlists.deletePlaylist("list");
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_removePlaylistUpdateListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_removePlaylistUpdateListener_exist
+//==== LABEL check if removePlaylistUpdateListener exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:removePlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcServer, mcClient, mcServerInfo;
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ check_method_exists(mcServerInfo.playlists, "removePlaylistUpdateListener");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerPlaylistsInfo_removePlaylistUpdateListener_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerPlaylistsInfo_removePlaylistUpdateListener_misarg
+//==== LABEL Check if removePlaylistUpdateListener method called with missing non-optional argument does not throw any exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:removePlaylistUpdateListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ var mcServer, mcClient, mcServerInfo;
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ try {
+ mcServerInfo.playlists.removePlaylistUpdateListener();
+ } catch(e) {
+ assert_unreached("Calling removePlaylistUpdateListener without arguments should not throw an exception.");
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_removePlaylistUpdatedListener</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_removePlaylistUpdatedListener
-//==== LABEL Check if MediaControllerPlaylistsInfo removePlaylistUpdatedListener method works properly
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:removePlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR
-//==== ONLOAD_DELAY 30
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 90000}), watcherId = null, mcServer, mcClient, playlist, mcServerInfo, ondelete, retVal = null;
-
-t.step(function () {
- add_result_callback(function () {
- mcServer.playlists.deletePlaylist("list");
- });
- ondelete = {
- onplaylistdeleted: t.step_func(function(playlistName) {
- retVal = mcServerInfo.playlists.removePlaylistUpdatedListener(watcherId);
- assert_equals(retVal, undefined, "return value should be undefined");
- t.done();
- })
- };
-
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- playlist = mcServer.playlists.createPlaylist("list");
- mcServer.playlists.savePlaylist(playlist);
- watcherId = mcServerInfo.playlists.addPlaylistUpdateListener(ondelete);
-
- mcServer.playlists.deletePlaylist("list");
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_exist
-//==== LABEL check if removePlaylistUpdatedListener exists
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:removePlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-test(function () {
- var mcServer, mcClient, mcServerInfo;
-
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- check_method_exists(mcServerInfo.playlists, "removePlaylistUpdatedListener");
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2019 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:
- Zhongyuan Yuan <zy123.yuan@samsung.com>
-
--->
-<html>
-<head>
-<title>MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_misarg
-//==== LABEL Check if removePlaylistUpdatedListener method called with missing non-optional argument does not throw any exception
-//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerPlaylistsInfo:removePlaylistUpdatedListener M
-//==== SPEC_URL TBD
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
- var mcServer, mcClient, mcServerInfo;
-
- mcServer = tizen.mediacontroller.createServer();
- mcClient = tizen.mediacontroller.getClient();
- mcServerInfo = mcClient.getLatestServerInfo();
- try {
- mcServerInfo.playlists.removePlaylistUpdatedListener();
- } catch(e) {
- assert_unreached("Calling removePlaylistUpdatedListener without arguments should not throw an exception.");
- }
-}, document.title);
-
-</script>
-</body>
-</html>
<test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_sendPlaybackItem_action_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdatedListener" onload_delay="30" priority="P1" purpose="Check if MediaControllerPlaylistsInfo addPlaylistUpdatedListener method works properly">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdateListener" onload_delay="30" priority="P1" purpose="Check if MediaControllerPlaylistsInfo addPlaylistUpdateListener method works properly">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdatedListener.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdateListener.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_exist" priority="P0" purpose="check if addPlaylistUpdatedListener exists">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdateListener_exist" priority="P0" purpose="check if addPlaylistUpdateListener exists">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdateListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_TypeMismatch" priority="P2" purpose="Check if addPlaylistUpdatedListener throws exception when listener is incorrect">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_TypeMismatch" priority="P2" purpose="Check if addPlaylistUpdateListener throws exception when listener is incorrect">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_invalid" priority="P2" purpose="Check if addPlaylistUpdatedListener throws exception when listener is invalid">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_invalid" priority="P2" purpose="Check if addPlaylistUpdateListener throws exception when listener is invalid">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_listener_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdateListener_listener_invalid.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_misarg" priority="P2" purpose="Check if addPlaylistUpdatedListener method called with missing non-optional argument throws an exception">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_addPlaylistUpdateListener_misarg" priority="P2" purpose="Check if addPlaylistUpdateListener method called with missing non-optional argument throws an exception">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdatedListener_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_addPlaylistUpdateListener_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_removePlaylistUpdatedListener" onload_delay="30" priority="P1" purpose="Check if MediaControllerPlaylistsInfo removePlaylistUpdatedListener method works properly">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_removePlaylistUpdateListener" onload_delay="30" priority="P1" purpose="Check if MediaControllerPlaylistsInfo removePlaylistUpdateListener method works properly">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_removePlaylistUpdatedListener.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_removePlaylistUpdateListener.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_exist" priority="P0" purpose="check if removePlaylistUpdatedListener exists">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_removePlaylistUpdateListener_exist" priority="P0" purpose="check if removePlaylistUpdateListener exists">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_removePlaylistUpdateListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_misarg" priority="P2" purpose="Check if removePlaylistUpdatedListener method called with missing non-optional argument does not throw any exception">
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerPlaylistsInfo_removePlaylistUpdateListener_misarg" priority="P2" purpose="Check if removePlaylistUpdateListener method called with missing non-optional argument does not throw any exception">
<description>
- <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_removePlaylistUpdatedListener_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaylistsInfo_removePlaylistUpdateListener_misarg.html</test_script_entry>
</description>
</testcase>
<testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_playlists_attribute" priority="P1" purpose="Check if attribute playlists of MediaControllerServerInfo exists, has type object and is readonly">