[HAM] fix web tct issue 69/107569/2
authorjk.pu <jk.pu@samsung.com>
Wed, 28 Dec 2016 12:34:27 +0000 (21:34 +0900)
committerJeongkyun Pu <jk.pu@samsung.com>
Wed, 28 Dec 2016 12:45:59 +0000 (04:45 -0800)
fail tct : HumanActivityMonitorManager_getHumanActivityData_with_errorCallback

ServiceNotavailable Exception invoked instead of error callback
when start is not called prior to getHumanActivityData().

verificaiton : HAM auto tct 100% passed.

Change-Id: I4803dc239a45cf4ef0d40b88e29898b320aab6bb
Signed-off-by: jk.pu <jk.pu@samsung.com>
src/humanactivitymonitor/humanactivitymonitor_api.js

index 2d2d65e1c7172665684ae15ebad506e570a6de32..d1393cdc18ca956bc0de03467e47cd7c0033f52b 100755 (executable)
@@ -196,9 +196,6 @@ HumanActivityMonitorManager.prototype.getHumanActivityData = function(type, succ
   }
 
   var listenerId = 'HumanActivityMonitor_'  + args.type;
-  if (!native_.isListenerSet(listenerId)) {
-    throw new WebAPIException(WebAPIException.SERVICE_NOT_AVAILABLE_ERR);
-  }
 
   var data = {
     type: args.type