From: Michal Michalski Date: Fri, 26 Oct 2018 13:05:39 +0000 (+0200) Subject: [Common][MediaController] Fix for TCT test checking undocumented behavior. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00dd31599f28b089fe12040e57a58dbd52f45b08;p=test%2Ftct%2Fweb%2Fapi.git [Common][MediaController] Fix for TCT test checking undocumented behavior. Function removeDeviceStateChangeListener was throwing exception if listener id was not registered. This was undocumented behavior and will be removed in separate commit. Test changed to pass when exception is not thrown. [Verification] TCT tests which call changed api functions passed. Change-Id: Ie71f12d6c429f9094c482630f952276837acaaef Signed-off-by: Michal Michalski --- diff --git a/common/tct-sound-tizen-tests/sound/SoundManager_removeDeviceStateChangeListener.html b/common/tct-sound-tizen-tests/sound/SoundManager_removeDeviceStateChangeListener.html index 2d844a358..3174dec54 100755 --- a/common/tct-sound-tizen-tests/sound/SoundManager_removeDeviceStateChangeListener.html +++ b/common/tct-sound-tizen-tests/sound/SoundManager_removeDeviceStateChangeListener.html @@ -45,14 +45,10 @@ t.step(function () { changeCallback = t.step_func(function (info) { retValue = tizen.sound.removeDeviceStateChangeListener(listenerId); assert_equals(retValue, undefined, "removeDeviceStateChangeListener returns wrong value"); - assert_throws(INVALID_VALUES_EXCEPTION, function () { - tizen.sound.removeDeviceStateChangeListener(listenerId); - }, "Method should throw an exception caused by removing nonexist listener."); t.done(); }); listenerId = tizen.sound.addDeviceStateChangeListener(changeCallback); - });