From: Andrzej Popowski Date: Wed, 28 Jan 2015 11:25:58 +0000 (+0100) Subject: [Messaging] - Testing an argument type of the function stopSync X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~552^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c648b90bb44a36eaf1e4624f875f7c90d5b9a323;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Messaging] - Testing an argument type of the function stopSync Change-Id: I1151e78ffac7af8b67daf84a4e788743828bbc0c Signed-off-by: Andrzej Popowski --- diff --git a/src/messaging/messaging_api.js b/src/messaging/messaging_api.js index d4bfbfca..c57b69c4 100644 --- a/src/messaging/messaging_api.js +++ b/src/messaging/messaging_api.js @@ -922,6 +922,11 @@ MessageService.prototype.stopSync = function () { {name: 'opId', type: types_.LONG} ]); + // Additionally to pass the MessageService_email_stopSync_opId_TypeMismatch test + if (!isFinite(arguments[0])) { + throw new tizen.WebAPIException(tizen.WebAPIException.TYPE_MISMATCH_ERR); + } + var self = this; bridge.sync({ cmd: 'MessageService_stopSync',