[Verification] 'setVolume' called without argument throws
InvalidValuesError.
Change-Id: I2f847be94a46342916cd3fb791b87f3882e98ca6
Signed-off-by: Piotr Czaja <p.czaja@samsung.com>
'Volume is out of range: ' + args.volume, 'InvalidValuesError');
}
+ if (arguments.length < 1) {
+ throw new tizen.WebAPIException(tizen.WebAPIException.INVALID_VALUES_ERR,
+ 'no volume argument: ' + arguments.length, 'InvalidValuesError');
+ }
+
var ret = native.callSync('AudioControlManager_setVolume', {
volume: args.volume
});