[MessagingEmail] Fixed argument check in stopSync().
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Fri, 12 Jun 2015 08:55:28 +0000 (10:55 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Fri, 12 Jun 2015 08:55:28 +0000 (10:55 +0200)
[Verification] Following TCT should pass:
 MessageService_email_stopSync_missarg
 MessageService_email_stopSync_opId_invalid

Change-Id: If3e8f6296cf98543a449197a11d167836875abff
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/messaging/messaging_api.js

index 46f11095cf886ee0ffeef2bd567ff1e87182145d..4ce117e29238002f6c4177dbd2b4b471c6d81232 100755 (executable)
@@ -938,11 +938,6 @@ 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 WebAPIException(WebAPIException.TYPE_MISMATCH_ERR);
-    }
-
     var self = this;
     bridge.sync({
         cmd: 'MessageService_stopSync',