ACR: TWDAPI-279
[Verification] After disabling iotcon support in
/etc/config/model-config.xml, tizen.iotcon.initialize() throws
NotSupportedError, as expected.
Auto tct-iotcon-tizen-tests pass rate: 100% (with the iotcon support
enabled in model-config.xml)
No tct-iotcon-tizen-tests are run when the iotcon support is disabled
in model-config.xml
Change-Id: I41be8376bcc1bca5b919daa0a5d0a9651b14d335
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
}
Iotcon.prototype.initialize = function() {
+ var kIotconFeature = 'http://tizen.org/feature/iot.ocf';
+
+ if (!tizen.systeminfo.getCapability(kIotconFeature)) {
+ throw new WebAPIException(
+ 'NotSupportedError',
+ 'The feature "' + kIotconFeature + '" is not supported'
+ );
+ }
+
var args = validator.validateArgs(arguments, [
{
name: 'filePath',