[Filesystem] URI without prefix 'file://' are handled now.
authorTomasz Marciniak <t.marciniak@samsung.com>
Thu, 17 Sep 2015 11:26:18 +0000 (13:26 +0200)
committerTomasz Marciniak <t.marciniak@samsung.com>
Thu, 17 Sep 2015 11:26:18 +0000 (13:26 +0200)
[Verification] Code compiles. One TCT test is failed.
FileSystemManager_resolve_error_invoked is incorrect.

Change-Id: I204814828962d6e1f5b015f2fd5b4fd7f02ca55f
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/filesystem/js/file_system_manager.js

index 6f24d906d81ff5c8349d886f554b734428ca05d8..b1f14cc64ebb8ded3925bda89a998578a2b84ae3 100755 (executable)
@@ -44,15 +44,6 @@ FileSystemManager.prototype.resolve = function(location, onsuccess, onerror, mod
     args.mode = 'rw';
   }
 
-  if (args.location[0] === '/') {
-    setTimeout(function() {
-      native_.callIfPossible(args.onerror,
-          new WebAPIException(WebAPIException.NOT_FOUND_ERR,
-          'Global path without \'file://\' prefix is not valid.'));
-    }, 0);
-    return;
-  }
-
   // resolving a path on unmounted storage should result in exception
   var storage = commonFS_.getStorage(args.location.split('/')[0]);
   if (storage && FileSystemStorageState.MOUNTED !== storage.state) {