Skip to content

Commit f432e64

Browse files
committed
2 parents b9a5016 + 73a5173 commit f432e64

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/tests.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3022,7 +3022,7 @@ exports.defineAutoTests = function () {
30223022
});
30233023
it("file.spec.129 cordova.file.*Directory are set", function () {
30243024
var expectedPaths = ['applicationDirectory', 'applicationStorageDirectory', 'dataDirectory', 'cacheDirectory'];
3025-
if (cordova.platformId == 'android') {
3025+
if (cordova.platformId == 'android' || cordova.platformId == 'amazon-fireos') {
30263026
expectedPaths.push('externalApplicationStorageDirectory', 'externalRootDirectory', 'externalCacheDirectory', 'externalDataDirectory');
30273027
} else if (cordova.platformId == 'blackberry10') {
30283028
expectedPaths.push('externalRootDirectory', 'sharedDirectory');
@@ -3111,7 +3111,8 @@ exports.defineManualTests = function (contentEl, createActionButton) {
31113111

31123112
var fsRoots = {
31133113
"ios" : "library,library-nosync,documents,documents-nosync,cache,bundle,root,private",
3114-
"android" : "files,files-external,documents,sdcard,cache,cache-external,root"
3114+
"android" : "files,files-external,documents,sdcard,cache,cache-external,root",
3115+
"amazon-fireos" : "files,files-external,documents,sdcard,cache,cache-external,root"
31153116
};
31163117

31173118
//Add title and align to content

www/resolveLocalFileSystemURI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports.resolveLocalFileSystemURL = function(uri, successCallback, errorC
4040
};
4141
// sanity check for 'not:valid:filename' or '/not:valid:filename'
4242
// file.spec.12 window.resolveLocalFileSystemURI should error (ENCODING_ERR) when resolving invalid URI with leading /.
43-
if(!uri || uri.split(":").length > 2 || uri.indexOf('/') == 0) {
43+
if(!uri || uri.split(":").length > 2) {
4444
setTimeout( function() {
4545
fail(FileError.ENCODING_ERR);
4646
},0);

0 commit comments

Comments
 (0)