Throw exception when nStart or number arguments are lower
than 0.
[Verification]
Fixes tests:
ChannelManager_getChannelList_negative_nStart
ChannelManager_getChannelList_negative_number
Change-Id: I94f5cb55c92c352724c872e91a190d3204aef783
Signed-off-by: Przemyslaw Ciezkowski <p.ciezkowski@samsung.com>
type: validator.Types.LONG
}
]);
+ if (args.nStart < 0) {
+ throw new tizen.WebAPIException(tizen.WebAPIException.INVALID_VALUES_ERR,
+ "nStart is lower than 0");
+ }
+ if (args.number < 0) {
+ throw new tizen.WebAPIException(tizen.WebAPIException.INVALID_VALUES_ERR,
+ "number is lower than 0");
+ }
native.call('TVChannelManager_getChannelList', {
tuneMode: args.tuneMode,
nStart: args.nStart,