- SingleShot.openModel should throw TypeError when no arguments provided
[Verification] Tested in chrome-dev console
Change-Id: I13b7946aa90f86ff4becccb9834b76d4f6bf6d22
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
optional: true
}
]);
+
+ if (!args.has.modelPath) {
+ throw new WebAPIException(
+ WebAPIException.TYPE_MISMATCH_ERR,
+ 'Invalid parameter: modelPath is undefined'
+ );
+ }
+
try {
// get normalized URI of a file
args.modelPath = tizen.filesystem.toURI(args.modelPath);