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();
})
mcServer.playback.state = "PLAY";
watcherId = mcServerInfo.playback.addPlaybackInfoChangeListener(playbackListener);
mcServer.playback.state = "STOP";
- mcServer.playback.state = "PLAY";
});
</script>