[common][mediacontroller][TWDAPI-226, modify 11 tc due to spec change] 36/212136/3
authorzhongyuan <zy123.yuan@samsung.com>
Thu, 15 Aug 2019 06:43:00 +0000 (14:43 +0800)
committerzhongyuan <zy123.yuan@samsung.com>
Thu, 15 Aug 2019 07:37:53 +0000 (15:37 +0800)
Change-Id: If3a4607a509409abf59a660c3642151cfc5d1979

common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerReceiveCommandCallback_onsuccess.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSendCommandSuccessCallback_onsuccess.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand_data_TypeMismatch.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand_errorCallback_TypeMismatch.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand_errorCallback_invalid_cb.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand_successCallback_TypeMismatch.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand_successCallback_invalid_cb.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendCommand_with_errorCallback.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_addCommandListener.html
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_removeCommandListener.html

index cd33b5847391a7f1ddd09e9c94982e56001741fc..84fbb5877e36efa3ec3fdd9cfb84dd05e0c22a62 100755 (executable)
@@ -57,12 +57,10 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
     watcherId = mcServer.addCommandListener(commandReceiveListener);
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
 });
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 9962311a649da4d02971b2856450432cfb6c703e..9e42628405afaedfd9aaf5b73b1fad0c9d178457 100755 (executable)
@@ -41,8 +41,9 @@ var t = async_test(document.title, {timeout: 90000}), watcherId, mcClient, mcSer
     commandReceiveListener, exampleCustomCommandData;
 
 t.step(function () {
-    onsuccessCB = t.step_func(function (data){
+    onsuccessCB = t.step_func(function (data, code){
         assert_type(data, "object", "data isn't an object");
+        assert_type(code, "number", "code isn't a number");
         mcServer.removeCommandListener(watcherId);
         t.done();
     });
@@ -55,13 +56,11 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
     watcherId = mcServer.addCommandListener(commandReceiveListener);
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
 });
 
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 9061c5fc6d5ada2f612aa9f2bd1afbbba213105d..d15c078f741eb18c4e9f2b4b031e9b1e17dc945d 100755 (executable)
@@ -62,9 +62,7 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
     watcherId = mcServer.addCommandListener(commandReceiveListener);
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     retValue = mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
 });
 
index bf2fd6e94b4c9d347db652be2f1843decec8eef9..e6c9a4f34db1d11d436c0e353be36f4659874e15 100755 (executable)
@@ -50,7 +50,7 @@ t.step(function () {
         assert_unreached("sendCommand() success callback invoked");
     });
 
-    conversionTable = getTypeConversionExceptions("object", false);
+    conversionTable = getTypeConversionExceptions("object", true);
 
     for (i = 0; i < conversionTable.length; i++) {
         data = conversionTable[i][0];
@@ -65,4 +65,4 @@ t.step(function () {
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 1eb8eb8eb1a4f9d6b1963b3ed380d1c43443b22a..444d48415937f0702c1007dd63461a1d4bb17029 100755 (executable)
@@ -45,9 +45,7 @@ t.step(function () {
     mcClient = tizen.mediacontroller.getClient();
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
 
     successCallback = t.step_func(function () {
         assert_unreached("sendCommand() success callback invoked");
@@ -68,4 +66,4 @@ t.step(function () {
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index f01c02043d3caf1f52ebb8509bca1bcb04ba97b6..345ab03dda03eda9185908c218f12250c986f291 100755 (executable)
@@ -46,9 +46,7 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
 
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
 
     incorrectCallback = {
         onerror: t.step_func(function () {
@@ -69,4 +67,4 @@ t.step(function () {
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 010e158b0e896df168834b1392b41635508ae5cd..89afbb663b77fcc0780f96bd21503a3d861dc8e5 100755 (executable)
@@ -40,9 +40,7 @@ test(function () {
     tizen.mediacontroller.createServer();
     mcClient = tizen.mediacontroller.getClient();
     mcServerInfo = mcClient.getLatestServerInfo();
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     conversionTable = getTypeConversionExceptions("functionObject", false);
 
     for (i = 0; i < conversionTable.length; i++) {
@@ -58,4 +56,4 @@ test(function () {
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 4ce35c7ce8657e8c268c0fe8a33e8f31f765b291..f04e0b308a4b568447208cc739844f74911ce0a3 100755 (executable)
@@ -46,9 +46,7 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
 
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
 
     incorrectCallback = {
         onsuccess: t.step_func(function () {
@@ -65,4 +63,4 @@ t.step(function () {
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 89caba2510b58601d2ebce9d81f83485b38f035c..b09b6e819b0d6bc239cca92b69db4337fb791178 100755 (executable)
@@ -58,12 +58,10 @@ test(function () {
     mcClient = tizen.mediacontroller.getClient();
     mcServerInfo = mcClient.getLatestServerInfo();
     mcServer.addCommandListener(commandReceiveListener);
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     retValue = mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB, onerrorCB);
 });
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index f1de36599aebe684a8d2f2b89ae124de4f26614c..5b971be2638ae63ce04fc886ec1c5ae3c156ae37 100755 (executable)
@@ -56,12 +56,10 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
     watcherId = mcServer.addCommandListener(commandReceiveListener);
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
 });
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>
index 25258c5e22a9d76adae3ebb7c985ab4431f2ec1c..cc87f5682e4e91a3b640b54959c7ab2a26f6fd25 100755 (executable)
@@ -60,12 +60,10 @@ t.step(function () {
     mcServer.updatePlaybackState("PLAY");
     mcServerInfo = mcClient.getLatestServerInfo();
     watcherId = mcServer.addCommandListener(commandReceiveListener);
-    exampleCustomCommandData = {
-        myFilter: "rock"
-    };
+    exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
     mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
 });
 
 </script>
 </body>
-</html>
\ No newline at end of file
+</html>