[common][mediacontrol][TSIX-3049, fix 1 tc issue] 35/232235/1
authorzhongyuan <zy123.yuan@samsung.com>
Wed, 29 Apr 2020 07:25:47 +0000 (15:25 +0800)
committerzhongyuan <zy123.yuan@samsung.com>
Wed, 29 Apr 2020 07:25:47 +0000 (15:25 +0800)
Change-Id: I14e28f619a914b04e5874711fbe60f90ed517566

common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaybackInfoChangeCallback_onplaybackchanged.html

index 1d155e209248b4fa9b996101811770cb10ab48af..e25154fe9e7b176aaefd6cb8ce6f36bb80566a9e 100755 (executable)
@@ -41,12 +41,14 @@ var t = async_test(document.title, {timeout: 30000}), mcServer, mcClient, mcServ
 
 t.step(function () {
     add_result_callback(function(){
+        mcServer.playback.state = "PLAY";
         mcServerInfo.playback.removePlaybackInfoChangeListener(watcherId);
+            
     });
     playbackListener =  {
         onplaybackchanged: t.step_func(function(state, position) {
             assert_type(state, "string", "state should be a string");
-            assert_equals(state, "STOP", "state should be PLAY");
+            assert_equals(state, "STOP", "state should be STOP");
             assert_type(position, "long", "position should be a long");
             t.done();
         })
@@ -58,7 +60,6 @@ t.step(function () {
     mcServer.playback.state = "PLAY";
     watcherId = mcServerInfo.playback.addPlaybackInfoChangeListener(playbackListener);
     mcServer.playback.state = "STOP";
-    mcServer.playback.state = "PLAY";
 });
 
 </script>