@@ -29,7 +29,7 @@ exports.defineAutoTests = function () {
2929 var isIE = isBrowser && ( window . msIndexedDB ) ;
3030 var isIndexedDBShim = isBrowser && ! isChrome ; // Firefox and IE for example
3131
32- var isWindows = ( cordova . platformId === 'windows' || cordova . platformId === 'windows8' ) ;
32+ var isWindows = cordova . platformId === 'windows' ;
3333 /* eslint-enable no-undef */
3434 var MEDIUM_TIMEOUT = 15000 ;
3535
@@ -417,7 +417,7 @@ exports.defineAutoTests = function () {
417417 } ) ;
418418
419419 it ( 'file.spec.11 should error (NOT_FOUND_ERR) when resolving (non-existent) invalid file name' , function ( done ) {
420- var fileName = cordova . platformId === 'windowsphone' ? root . toURL ( ) + '/' + 'this.is.not.a.valid.file.txt' : joinURL ( root . toURL ( ) , 'this.is.not.a.valid.file.txt' ) ; // eslint-disable-line no-undef
420+ var fileName = joinURL ( root . toURL ( ) , 'this.is.not.a.valid.file.txt' ) ;
421421 var fail = function ( error ) {
422422 expect ( error ) . toBeDefined ( ) ;
423423 if ( isChrome ) {
@@ -2453,7 +2453,7 @@ exports.defineAutoTests = function () {
24532453 // FileReader
24542454 describe ( 'Read method' , function ( ) {
24552455 it ( 'file.spec.82 should error out on non-existent file' , function ( done ) {
2456- var fileName = cordova . platformId === 'windowsphone' ? root . toURL ( ) + '/' + ' somefile.txt' : 'somefile.txt' ; // eslint-disable-line no-undef
2456+ var fileName = ' somefile.txt';
24572457 var verifier = function ( evt ) {
24582458 expect ( evt ) . toBeDefined ( ) ;
24592459 if ( isChrome ) {
@@ -3440,8 +3440,6 @@ exports.defineAutoTests = function () {
34403440 if ( cordova . platformId === 'android' ) {
34413441 // Starting from Cordova-Android 10.x, the app content is served from the https scheme
34423442 pathExpect = 'https://' ;
3443- } else if ( cordova . platformId === 'windowsphone' ) {
3444- pathExpect = '//nativ' ;
34453443 } else if ( isChrome ) {
34463444 pathExpect = 'filesystem:http://' ;
34473445 }
@@ -3788,14 +3786,12 @@ exports.defineAutoTests = function () {
37883786 it ( 'file.spec.129 cordova.file.*Directory are set' , function ( ) {
37893787 var expectedPaths = [ 'applicationDirectory' , 'applicationStorageDirectory' , 'dataDirectory' , 'cacheDirectory' ] ;
37903788 /* eslint-disable no-undef */
3791- if ( cordova . platformId === 'android' || cordova . platformId === 'amazon-fireos' ) {
3789+ if ( cordova . platformId === 'android' ) {
37923790 if ( cordova . file . externalApplicationStorageDirectory !== null ) {
37933791 // https://issues.apache.org/jira/browse/CB-10411
37943792 // If external storage can't be mounted, the cordova.file.external* properties are null.
37953793 expectedPaths . push ( 'externalApplicationStorageDirectory' , 'externalRootDirectory' , 'externalCacheDirectory' , 'externalDataDirectory' ) ;
37963794 }
3797- } else if ( cordova . platformId === 'blackberry10' ) {
3798- expectedPaths . push ( 'externalRootDirectory' , 'sharedDirectory' ) ;
37993795 } else if ( cordova . platformId === 'ios' ) {
38003796 expectedPaths . push ( 'syncedDataDirectory' , 'documentsDirectory' , 'tempDirectory' ) ;
38013797 } else if ( cordova . platformId === 'osx' ) {
@@ -3817,10 +3813,10 @@ exports.defineAutoTests = function () {
38173813 var cdvfileApplicationDirectoryFsRootNameURL ;
38183814 if ( cordova . platformId === 'android' ) {
38193815 cdvfileApplicationDirectoryFsRootName = 'assets' ;
3820- cdvfileApplicationDirectoryFsRootNameURL = 'https://localhost/__cdvfile_' + cdvfileApplicationDirectoryFsRootName + '__/'
3816+ cdvfileApplicationDirectoryFsRootNameURL = 'https://localhost/__cdvfile_' + cdvfileApplicationDirectoryFsRootName + '__/' ;
38213817 } else if ( cordova . platformId === 'ios' ) {
38223818 cdvfileApplicationDirectoryFsRootName = 'bundle' ;
3823- cdvfileApplicationDirectoryFsRootNameURL = 'cdvfile://localhost/' + cdvfileApplicationDirectoryFsRootName + '/'
3819+ cdvfileApplicationDirectoryFsRootNameURL = 'cdvfile://localhost/' + cdvfileApplicationDirectoryFsRootName + '/' ;
38243820 } else {
38253821 pending ( ) ;
38263822 }
@@ -4206,7 +4202,6 @@ exports.defineManualTests = function (contentEl, createActionButton) {
42064202 ios : 'library,library-nosync,documents,documents-nosync,cache,bundle,root,private' ,
42074203 osx : 'library,library-nosync,documents,documents-nosync,cache,bundle,root,private' ,
42084204 android : 'files,files-external,documents,sdcard,cache,cache-external,assets,root' ,
4209- 'amazon-fireos' : 'files,files-external,documents,sdcard,cache,cache-external,root' ,
42104205 windows : 'temporary,persistent'
42114206 } ;
42124207
0 commit comments