[Filesystem] File.resolve throws NOT_FOUND exception when fails
authorWojciech Kosowicz <w.kosowicz@samsung.com>
Mon, 2 Mar 2015 11:49:54 +0000 (12:49 +0100)
committerRafal Galka <r.galka@samsung.com>
Tue, 3 Mar 2015 13:29:01 +0000 (22:29 +0900)
This fix is required for increase passrate of TCT tests

Change-Id: Iba629bda3ad38dcb89aaf3c51a4ab4918924517b
Signed-off-by: Wojciech Kosowicz <w.kosowicz@samsung.com>
src/filesystem/js/file.js

index f031ed8668820d315c008f4e58d7dd5c81acccb6..6e2299ad167eb10562a50fd98aef776db23ce60d 100644 (file)
@@ -442,7 +442,7 @@ File.prototype.resolve = function(filePath) {
   var _realPath = commonFS_.toRealPath(_newPath);
   var _result = native_.callSync('File_statSync', {location: _realPath});
   if (native_.isFailure(_result)) {
-    throw new tizen.WebAPIException(tizen.WebAPIException.IO_ERR, native_.getErrorObject(_result));
+    throw new tizen.WebAPIException(tizen.WebAPIException.NOT_FOUND_ERR, native_.getErrorObject(_result));
   }
   var _statObj = native_.getResultObject(_result);
   var _fileInfo = commonFS_.getFileInfo(_newPath, _statObj, false, this.mode);