--- /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>MediaControllerClientInfo_extend</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_extend
+//==== LABEL Check if MediaControllerClientInfo object is extendable
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:MediaControllerClientInfo U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA OBX
+
+test(function () {
+ var mcServer, mcClient, mcClientsInfoAll;
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ check_extensibility(mcClientsInfoAll[0]);
+}, 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>MediaControllerClientInfo_name_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_name_attribute
+//==== LABEL Check if attribute name of MediaControllerClientInfo exists, has type string and is readonly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:name A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+test(function () {
+ var mcServer, mcClient, mcClientsInfoAll;
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ check_readonly(mcClientsInfoAll[0], "name", mcClientsInfoAll[0].name, "string", null);
+}, 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>MediaControllerClientInfo_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_notexist
+//==== LABEL Check if interface MediaControllerClientInfo exists, it should not.
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:MediaControllerClientInfo U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA NIO
+
+test(function () {
+ check_no_interface_object("MediaControllerClientInfo");
+}, 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>MediaControllerClientInfo_sendEvent</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_sendEvent
+//==== LABEL Check if sendEvent() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:sendEvent M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), listener, mcClient, mcServer, mcClientsInfoAll, successCallback, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcClient.unsetCustomEventListener();
+ });
+ listener = t.step_func(function (clientName, eventName, data){
+ return new tizen.mediacontroller.RequestReply({response: "response data"}, 123);
+ });
+ successCallback = t.step_func(function (response){
+ assert_equals(retValue, undefined, "Incorrect returned value.");
+ t.done();
+ });
+ mcClient = tizen.mediacontroller.getClient();
+ mcClient.setCustomEventListener(listener);
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ retValue = mcClientsInfoAll[0].sendEvent("test", new tizen.Bundle({param1: "value1", param2: "value2"}), successCallback);
+});
+
+</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>MediaControllerClientInfo_sendEvent_data_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_sendEvent_data_TypeMismatch
+//==== LABEL Check argument data conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:sendEvent M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcClient, mcServer, mcClientsInfoAll,
+ successCallback, data, exceptionName, i, conversionTable;
+
+t.step(function () {
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+
+ successCallback = t.step_func(function () {
+ assert_unreached("sendEvent() success callback invoked");
+ });
+
+ conversionTable = getTypeConversionExceptions("object", true);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ data = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcClientsInfoAll[0].sendEvent("test", data, successCallback);
+ }, "TypeMismatchError should be thrown");
+ }
+ t.done();
+});
+
+</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>MediaControllerClientInfo_sendEvent_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_sendEvent_exist
+//==== LABEL Check if method sendEvent of MediaControllerServerInfo exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:sendEvent M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcClient, mcServer, mcClientsInfoAll;
+
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ check_method_exists(mcClientsInfoAll[0], "sendEvent");
+}, 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>MediaControllerClientInfo_sendEvent_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_sendEvent_misarg
+//==== LABEL Check if sendEvent method of MediaControllerServerInfo called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:sendEvent M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ var mcClient, mcServer, mcClientsInfoAll;
+
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ mcClientsInfoAll[0].sendEvent();
+ }, "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>MediaControllerClientInfo_sendEvent_successCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_sendEvent_successCallback_TypeMismatch
+//==== LABEL Check argument successCallback conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:sendEvent M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+var mcClient, mcClientsInfoAll, incorrectCallback, data, exceptionName, i, conversionTable;
+
+test(function () {
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ incorrectCallback = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcClientsInfoAll[0].sendEvent("test", new tizen.Bundle({param1: "value1", param2: "value2"}), incorrectCallback);
+ }, "TypeMismatchError should be thrown");
+ }
+
+}, 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>MediaControllerClientInfo_sendEvent_successCallback_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClientInfo_sendEvent_successCallback_invalid_cb
+//==== LABEL Check if sendEvent throws exception when successCallback is invalid
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClientInfo:sendEvent M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", mcServer, mcClient,
+ mcClientsInfoAll, incorrectCallback;
+
+t.step(function () {
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+
+ incorrectCallback = {
+ onsuccess: t.step_func(function () {
+ assert_unreached("sendEvent() success callback invoked.");
+ })
+ };
+
+ assert_throws({name: exceptionName},
+ function () {
+ mcClientsInfoAll[0].sendEvent("test", new tizen.Bundle({param1: "value1", param2: "value2"}), incorrectCallback);
+ }, exceptionName + " should be thrown - given incorrect success callback");
+ t.done();
+});
+
+</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>MediaControllerClient_setCustomEventListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_setCustomEventListener
+//==== LABEL Check if setCustomEventListener() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:setCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), listener, mcClient, mcServer, mcClientsInfoAll, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcClient.unsetCustomEventListener();
+ });
+ listener = t.step_func(function (clientName, eventName, data){
+ assert_equals(retValue, undefined, "Incorrect returned value.");
+ assert_type(clientName, "string", "invalid type of clientName");
+ assert_type(eventName, "string", "invalid type of eventName");
+ assert_type(data, "object", "invalid type of data");
+ assert_equals(clientName, "apimediact.WebAPITizenMediaKeyTests", "invalid value of clientName");
+ assert_equals(eventName, "test", "invalid value of eventName");
+ assert_equals(JSON.stringify(data), '{\"param1\":\"value1\",\"param2\":\"value2\"}', "invalid value of data");
+ t.done();
+ });
+ mcClient = tizen.mediacontroller.getClient();
+ retValue = mcClient.setCustomEventListener(listener);
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ mcClientsInfoAll[0].sendEvent("test", new tizen.Bundle({param1: "value1", param2: "value2"}), function(){});
+});
+
+</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>MediaControllerClient_setCustomEventListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_setCustomEventListener_exist
+//==== LABEL Check if method setCustomEventListener of MediaControllerClient exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:setCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcClient = tizen.mediacontroller.getClient();
+
+ check_method_exists(mcClient, "setCustomEventListener");
+}, 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>MediaControllerClient_setCustomEventListener_listener_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_setCustomEventListener_listener_TypeMismatch
+//==== LABEL Check argument setCustomEventListener conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:setCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+ var mcClient, exceptionName, i, conversionTable, listener;
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+ mcClient = tizen.mediacontroller.getClient();
+
+ for (i = 0; i < conversionTable.length; i++) {
+ listener = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcClient.setCustomEventListener(listener);
+ }, 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>MediaControllerClient_setCustomEventListener_listener_invalid</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_setCustomEventListener_listener_invalid
+//==== LABEL Check if setCustomEventListener throws exception when callback is inavlid listener
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:setCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTL
+
+test(function () {
+ var mcClient, listener, incorrectListener, exceptionName, i;
+ mcClient = tizen.mediacontroller.getClient();
+ incorrectListener = getListenerConversionExceptions(["onsuccess"]);
+
+ for (i = 0; i < incorrectListener.length; i++) {
+ listener = incorrectListener[i][0];
+ exceptionName = incorrectListener[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcClient.setCustomEventListener(listener);
+ }, 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>MediaControllerClient_setCustomEventListener_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_setCustomEventListener_misarg
+//==== LABEL Check if setCustomEventListener method called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:setCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ var mcClient = tizen.mediacontroller.getClient();
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ mcClient.setCustomEventListener();
+ }, "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>MediaControllerClient_unsetCustomEventListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_unsetCustomEventListener
+//==== LABEL Check if unsetCustomEventListener() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:unsetCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), listener, mcClient, mcServer, mcClientsInfoAll, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcClient.unsetCustomEventListener();
+ });
+ listener = t.step_func(function (clientName, eventName, data){
+ retValue = mcClient.unsetCustomEventListener();
+ assert_equals(retValue, undefined, "Incorrect returned value.");
+ t.done();
+ });
+ mcClient = tizen.mediacontroller.getClient();
+ mcClient.setCustomEventListener(listener);
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ mcClientsInfoAll = mcServer.getAllClientsInfo();
+ mcClientsInfoAll[0].sendEvent("test", new tizen.Bundle({param1: "value1", param2: "value2"}), function(){});
+});
+
+</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>MediaControllerClient_unsetCustomEventListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_unsetCustomEventListener_exist
+//==== LABEL Check if method unsetCustomEventListener of MediaControllerClient exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:unsetCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcClient = tizen.mediacontroller.getClient();
+
+ check_method_exists(mcClient, "unsetCustomEventListener");
+}, 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>MediaControllerClient_unsetCustomEventListener_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerClient_unsetCustomEventListener_extra_argument
+//==== LABEL Check using unsetCustomEventListener method with extra argument
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerClient:unsetCustomEventListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MNAEX
+
+test(function () {
+ var mcClient = tizen.mediacontroller.getClient();
+
+ checkExtraArgument(mcClient, "unsetCustomEventListener");
+}, 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>MediaControllerServer_getAllClientsInfo</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_getAllClientsInfo
+//==== LABEL Check if getAllClientsInfo() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:getAllClientsInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+ var mcServer, mcClient, retValue;
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.updatePlaybackState("PLAY");
+ retValue = mcServer.getAllClientsInfo();
+ assert_type(retValue, "array", "Invalid type of return value");
+ assert_equals(retValue[0].name, "apimediact.WebAPITizenMediaKeyTests", "invalid value of client name");
+}, 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>MediaControllerServer_getAllClientsInfo_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_getAllClientsInfo_exist
+//==== LABEL Check if method getAllClientsInfo of MediaControllerServer exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:getAllClientsInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcServer = tizen.mediacontroller.createServer();
+
+ check_method_exists(mcServer, "getAllClientsInfo");
+}, 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>MediaControllerServer_getAllClientsInfo_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_getAllClientsInfo_extra_argument
+//==== LABEL Check using getAllClientsInfo method with extra argument
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:getAllClientsInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MNAEX
+
+test(function () {
+ var mcServer = tizen.mediacontroller.createServer();
+
+ checkExtraArgument(mcServer, "getAllClientsInfo");
+}, document.title);
+
+</script>
+</body>
+</html>
</spec>
</specs>
</testcase>
+ <testcase purpose="Check if getAllClientsInfo() works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_getAllClientsInfo">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_getAllClientsInfo.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="getAllClientsInfo" 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 method getAllClientsInfo of MediaControllerServer exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerServer_getAllClientsInfo_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_getAllClientsInfo_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="getAllClientsInfo" 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 using getAllClientsInfo() method with extra argument" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_getAllClientsInfo_extra_argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_getAllClientsInfo_extra_argument.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="getAllClientsInfo" 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 component="Tizen Device APIs/Multimedia/MediaController" type="compliance" status="approved" execution_type="auto" id="MediaControllerClientInfo_extend" priority="P3" purpose="Check if MediaControllerClientInfo object is extendable">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_extend.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" usage="true" 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 component="Tizen Device APIs/Multimedia/MediaController" type="compliance" status="approved" execution_type="auto" id="MediaControllerClientInfo_notexist" priority="P3" purpose="Check if interface MediaControllerClientInfo exists, it should not.">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" usage="true" 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 name of MediaControllerClientInfo exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerClientInfo_name_attribute">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_name_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="attribute" element_name="resolutionHeight" 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 sendEvent() works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerClientInfo_sendEvent">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="method" element_name="sendEvent" 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 argument data conversions exception" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClientInfo_sendEvent_data_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_data_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="method" element_name="sendEvent" 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 method sendEvent of MediaControllerClientInfo exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerClientInfo_sendEvent_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="method" element_name="sendEvent" 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 sendEvent method of MediaControllerClientInfo called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClientInfo_sendEvent_misarg">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="method" element_name="sendEvent" 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 argument successCallback conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClientInfo_sendEvent_successCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="method" element_name="sendEvent" 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 sendEvent throws exception when successCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClientInfo_sendEvent_successCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClientInfo" element_type="method" element_name="sendEvent" 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 MediaControllerClient setCustomEventListener method works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerClient_setCustomEventListener">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="setCustomEventListener" 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 setCustomEventListener exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerClient_setCustomEventListener_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="setCustomEventListener" 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 setCustomEventListener throws exception when listener is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClient_setCustomEventListener_listener_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_listener_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="setCustomEventListener" 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 setCustomEventListener throws exception when listener is invalid" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClient_setCustomEventListener_listener_invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_listener_invalid.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="setCustomEventListener" 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 setCustomEventListener method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerClient_setCustomEventListener_misarg">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="setCustomEventListener" 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 MediaControllerClient unsetCustomEventListener method works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerClient_unsetCustomEventListener">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_unsetCustomEventListener.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="unsetCustomEventListener" 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 unsetCustomEventListener exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerClient_unsetCustomEventListener_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_unsetCustomEventListener_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="unsetCustomEventListener" 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 using unsetCustomEventListener method with extra argument" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerClient_unsetCustomEventListener_extra_argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_unsetCustomEventListener_extra_argument.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerClient" element_type="method" element_name="unsetCustomEventListener" 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>
</set>
</suite>
</test_definition>
<test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerMetadata_resolutionHeight_attribute.html</test_script_entry>
</description>
</testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_getAllClientsInfo" priority="P1" purpose="Check if getAllClientsInfo() works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_getAllClientsInfo.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_getAllClientsInfo_exist" priority="P0" purpose="Check if method getAllClientsInfo of MediaControllerServer exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_getAllClientsInfo_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_getAllClientsInfo_extra_argument" priority="P1" purpose="Check using getAllClientsInfo() method with extra argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_getAllClientsInfo_extra_argument.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase comsponent="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_extend" priority="P3" purpose="Check if MediaControllerClientInfo object is extendable">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_extend.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_notexist" priority="P3" purpose="Check if interface MediaControllerClientInfo exists, it should not.">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_name_attribute" priority="P1" purpose="Check if attribute name of MediaControllerClientInfo exists, has type string and is readonly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_name_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_sendEvent" priority="P1" purpose="Check if sendEvent() works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_sendEvent_data_TypeMismatch" priority="P2" purpose="Check argument data conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_data_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_sendEvent_exist" priority="P0" purpose="Check if method sendEvent of MediaControllerClientInfo exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_sendEvent_misarg" priority="P2" purpose="Check if sendEvent method of MediaControllerClientInfo called with missing non-optional argument throws an exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_sendEvent_successCallback_TypeMismatch" priority="P2" purpose="Check argument successCallback conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_successCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClientInfo_sendEvent_successCallback_invalid_cb" onload_delay="90" priority="P2" purpose="Check if sendEvent throws exception when successCallback is invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClientInfo_sendEvent_successCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_setCustomEventListener" priority="P1" purpose="Check if MediaControllerClient setCustomEventListener method works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_setCustomEventListener_exist" priority="P0" purpose="check if setCustomEventListener exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_setCustomEventListener_listener_TypeMismatch" priority="P2" purpose="Check if setCustomEventListener throws exception when listener is incorrect">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_listener_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_setCustomEventListener_listener_invalid" priority="P2" purpose="Check if setCustomEventListener throws exception when listener is invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_listener_invalid.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_setCustomEventListener_misarg" priority="P2" purpose="Check if setCustomEventListener method called with missing non-optional argument throws an exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_setCustomEventListener_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_unsetCustomEventListener" priority="P1" purpose="Check if MediaControllerClient unsetCustomEventListener method works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_unsetCustomEventListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_unsetCustomEventListener_exist" priority="P0" purpose="check if unsetCustomEventListener exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_unsetCustomEventListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerClient_unsetCustomEventListener_extra_argument" priority="P1" purpose="Check using unsetCustomEventListener method with extra argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerClient_unsetCustomEventListener_extra_argument.html</test_script_entry>
+ </description>
+ </testcase>
</set>
</suite>
</test_definition>