Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing in Safari (11.1, macOS High Sierra) #257

Closed
janpio opened this issue Sep 30, 2018 · 2 comments
Closed

Tests failing in Safari (11.1, macOS High Sierra) #257

janpio opened this issue Sep 30, 2018 · 2 comments
Labels

Comments

@janpio
Copy link
Member

janpio commented Sep 30, 2018

Tests are consistently failing on Safari:

**************************************************
*                    Failures                    *
**************************************************
1) cordova-plugin-file-tests.tests >> File API LocalFileSystem window.resolveLocalFileSystemURL file.spec.9 should resolve a valid file name
  - window.resolveLocalFileSystemURL - Error resolving file URL: file:///persistent/file.spec.9
{"code":1}: NOT_FOUND_ERR
2) cordova-plugin-file-tests.tests >> File API LocalFileSystem window.resolveLocalFileSystemURL file.spec.9.1 should resolve a file even with a terminating slash
  - window.resolveLocalFileSystemURL - Error resolving file URL: file:///persistent/file.spec.9.1/
{"code":1}: NOT_FOUND_ERR
3) cordova-plugin-file-tests.tests >> File API LocalFileSystem window.resolveLocalFileSystemURL file.spec.10 resolve valid file name with parameters
  - window.resolveLocalFileSystemURL - Error resolving file URI: file:///persistent/resolve.file.uri.params
{"code":1}: NOT_FOUND_ERR
4) cordova-plugin-file-tests.tests >> File API DirectoryEntry file.spec.20 getFile: create file that already exists (exclusive)
  - root.getFile - getFile function - Error unexpected callback, file should exists: de.create.exclusive.existing.file
5) cordova-plugin-file-tests.tests >> File API DirectoryEntry file.spec.21 DirectoryEntry.getFile: get Entry for existing file
  - root.getFile - Error getting file entry: de.get.file
{"code":1}: NOT_FOUND_ERR
6) cordova-plugin-file-tests.tests >> File API DirectoryEntry file.spec.32 DirectoryEntry.getDirectory: get DirectoryEntry for existing file
  - Expected FileError with code NOT_FOUND_ERR (1) to be TYPE_MISMATCH_ERR(11)
7) cordova-plugin-file-tests.tests >> File API DirectoryReader interface readEntries file.spec.37.1 should read contents of existing directory
  - Expected 0 to be 1.
  - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. in http://localhost:8000/cdvtests/jasmine-2.4.1/jasmine.js (line 1909)
8) cordova-plugin-file-tests.tests >> File API FileEntry file.spec.42 createWriter should return a FileWriter object
  - fileEntry.createWriter - Error creating Writer from entry
{"code":1}: NOT_FOUND_ERR
9) cordova-plugin-file-tests.tests >> File API FileEntry file.spec.43 file should return a File object
  - fileEntry.file - Error reading file using fileEntry: fe.file
{"code":1}: NOT_FOUND_ERR
10) cordova-plugin-file-tests.tests >> File API Entry file.spec.46 Entry.getMetadata on file
  - entry.getMetadata - Error getting metadata from entry : entry.metadata.file
{"code":1}: NOT_FOUND_ERR
11) cordova-plugin-file-tests.tests >> File API Entry file.spec.57 copyTo: file
  - fileEntry.copyTo - Error copying file : entry copy.file2
{"code":1}: NOT_FOUND_ERR
12) cordova-plugin-file-tests.tests >> File API Entry file.spec.65 moveTo: file to same parent
  - entry.moveTo - Error moving file : entry.move.fsp.file1 to root as: entry.move.fsp.file2
{"code":1}: NOT_FOUND_ERR
13) cordova-plugin-file-tests.tests >> File API Entry file.spec.66 moveTo: file to new parent
  - entry.moveTo - Error moving file : entry.move.fnp.file1 to: entry.move.fnp.dir with the same name
{"code":1}: NOT_FOUND_ERR
14) cordova-plugin-file-tests.tests >> File API Entry file.spec.72 moveTo: file onto itself
  - root.getFile - Error getting file, making sure that original file still exists: entry.move.fos.file1
{"code":1}: NOT_FOUND_ERR
15) cordova-plugin-file-tests.tests >> File API Entry file.spec.73 moveTo: file onto existing directory
  - Expected FileError with code NOT_FOUND_ERR (1) to be INVALID_MODIFICATION_ERR(9)
  - root.getFile - Error getting file, making sure that original file still exists: entry.move.fod.file1
{"code":1}: NOT_FOUND_ERR
16) cordova-plugin-file-tests.tests >> File API Entry file.spec.77 moveTo: file replace existing file
  - entry.moveTo - Error moving file : entry.move.frf.file1 to root as: entry.move.frf.file2
{"code":1}: NOT_FOUND_ERR
17) cordova-plugin-file-tests.tests >> File API Read method file.spec.82 should error out on non-existent file
  - entry.file - Error reading file: somefile.txt
{"code":1}: NOT_FOUND_ERR
18) cordova-plugin-file-tests.tests >> File API Read method file.spec.84 should read file properly, readAsText
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
19) cordova-plugin-file-tests.tests >> File API Read method file.spec.84.1 should read JSON file properly, readAsText
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
20) cordova-plugin-file-tests.tests >> File API Read method file.spec.85 should read file properly, Data URI
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
21) cordova-plugin-file-tests.tests >> File API Read method file.spec.86 should read file properly, readAsBinaryString
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
22) cordova-plugin-file-tests.tests >> File API Read method file.spec.87 should read file properly, readAsArrayBuffer
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
23) cordova-plugin-file-tests.tests >> File API Read method file.spec.88 should read sliced file: readAsText
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
24) cordova-plugin-file-tests.tests >> File API Read method file.spec.89 should read sliced file: slice past eof
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
25) cordova-plugin-file-tests.tests >> File API Read method file.spec.90 should read sliced file: slice to eof
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
26) cordova-plugin-file-tests.tests >> File API Read method file.spec.91 should read empty slice
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
27) cordova-plugin-file-tests.tests >> File API Read method file.spec.92 should read sliced file properly, readAsDataURL
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
28) cordova-plugin-file-tests.tests >> File API Read method file.spec.93 should read sliced file properly, readAsBinaryString
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
29) cordova-plugin-file-tests.tests >> File API Read method file.spec.94 should read sliced file properly, readAsArrayBuffer
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
30) cordova-plugin-file-tests.tests >> File API Read method file.spec.94.5 should read large file in multiple chunks, readAsArrayBuffer
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
31) cordova-plugin-file-tests.tests >> File API Read method file.spec.94.6 should read large file in multiple chunks, readAsDataURL
  - fileEntry.createWriter - Error reading file: dummy.txt
{"code":1}: NOT_FOUND_ERR
32) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.95 should have correct methods
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.methods
{"code":1}: NOT_FOUND_ERR
33) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.96 should be able to write and append to file, createWriter
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.append.createWriter
{"code":1}: NOT_FOUND_ERR
34) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.97 should be able to write and append to file, File object
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.append.File
{"code":1}: NOT_FOUND_ERR
35) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.98 should be able to seek to the middle of the file and write more data than file.length
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.seek.write
{"code":1}: NOT_FOUND_ERR
36) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.100 should be able to write XML data
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.xml
{"code":1}: NOT_FOUND_ERR
37) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.101 should be able to write JSON data
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.json
{"code":1}: NOT_FOUND_ERR
38) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.102 should be able to seek
  - fileEntry.createWriter - Error creating writer using fileEntry: writer.seek
{"code":1}: NOT_FOUND_ERR
39) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.104 should be able to write binary data from an ArrayBuffer
  - fileEntry.createWriter - Error creating writer using fileEntry: bufferwriter.bin
{"code":1}: NOT_FOUND_ERR
40) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.105 should be able to write binary data from a Blob
  - fileEntry.createWriter - Error creating writer using fileEntry: blobwriter.bin
{"code":1}: NOT_FOUND_ERR
41) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.106 should be able to write a File to a FileWriter
  - fileEntry.createWriter - Error creating writer using fileEntry: dummy.txt
{"code":1}: NOT_FOUND_ERR
42) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.107 should be able to write a sliced File to a FileWriter
  - fileEntry.createWriter - Error creating writer using fileEntry: dummy2.txt
{"code":1}: NOT_FOUND_ERR
43) cordova-plugin-file-tests.tests >> File API FileWriter file.spec.108 should be able to write binary data from a File
  - fileEntry.createWriter - Error creating writer using fileEntry: blobwriter.bin
{"code":1}: NOT_FOUND_ERR
44) cordova-plugin-file-tests.tests >> File API Parent References file.spec.110 should not throw exception resolving parent refefences
  - window.resolveLocalFileSystemURL - Error resolving URI: file:///persistent/resolve.file.uri
{"code":1}: NOT_FOUND_ERR
45) cordova-plugin-file-tests.tests >> File API Parent References file.spec.111 should not traverse above above the root directory
  - root.getFile - Error getting file: ../traverse.file.uri
{"code":1}: NOT_FOUND_ERR
46) cordova-plugin-file-tests.tests >> File API Parent References file.spec.112 should traverse above above the current directory
  - entry.getFile - Error getting file: traverse2.file.uri recently created above: traverse2.subdir
{"code":1}: NOT_FOUND_ERR
47) cordova-plugin-file-tests.tests >> File API toNativeURL interface file.spec.115 DirectoryReader should return entries with toNativeURL method
  - Expected 0 to be 1.
  - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. in http://localhost:8000/cdvtests/jasmine-2.4.1/jasmine.js (line 1909)
48) cordova-plugin-file-tests.tests >> File API toNativeURL interface file.spec.116 resolveLocalFileSystemURL should return entries with toNativeURL method
  - resolveLocalFileSystemURL - Error resolving file URL: file:///persistent/native.resolve.uri
{"code":1}: NOT_FOUND_ERR
49) cordova-plugin-file-tests.tests >> File API resolveLocalFileSystemURL on file:// file.spec.121 should resolve native URLs returned by API
  - resolveLocalFileSystemURL - Error resolving file URL: file:///persistent/native.resolve.uri1
{"code":1}: NOT_FOUND_ERR
50) cordova-plugin-file-tests.tests >> File API resolveLocalFileSystemURL on file:// file.spec.122 should resolve native URLs returned by API with localhost
  - resolveLocalFileSystemURL - Error resolving file URL: file://localhost/persistent/native.resolve.uri2
{"code":1}: NOT_FOUND_ERR
51) cordova-plugin-file-tests.tests >> File API resolveLocalFileSystemURL on file:// file.spec.123 should resolve native URLs returned by API with query string
  - resolveLocalFileSystemURL - Error resolving file URL: file:///persistent/native.resolve.uri3?test/test
{"code":1}: NOT_FOUND_ERR
52) cordova-plugin-file-tests.tests >> File API resolveLocalFileSystemURL on file:// file.spec.124 should resolve native URLs returned by API with localhost and query string
  - resolveLocalFileSystemURL - Error resolving file URL: file://localhost/persistent/native.resolve.uri4?test/test
{"code":1}: NOT_FOUND_ERR
53) cordova-plugin-file-tests.tests >> File API cross-file-system copy and move file.spec.125 copyTo: temporary -> persistent
  - entry.copyTo - Error copying file: entry.copy.file1a to PERSISTENT root as: entry.copy.file2a
{"code":1}: NOT_FOUND_ERR
54) cordova-plugin-file-tests.tests >> File API cross-file-system copy and move file.spec.126 copyTo: persistent -> temporary
  - entry.copyTo - Error copying file: entry.copy.file1b to TEMPORAL root as: entry.copy.file2b
{"code":1}: NOT_FOUND_ERR
55) cordova-plugin-file-tests.tests >> File API cross-file-system copy and move file.spec.127 moveTo: temporary -> persistent
  - entry.moveTo - Error moving file: entry.copy.file1a to PERSISTENT root as: entry.copy.file2a
{"code":1}: NOT_FOUND_ERR
56) cordova-plugin-file-tests.tests >> File API cross-file-system copy and move file.spec.128 moveTo: persistent -> temporary
  - entry.moveTo - Error moving file: entry.copy.file1b to TEMPORAL root as: entry.copy.file2b
{"code":1}: NOT_FOUND_ERR
57) cordova-plugin-file-tests.tests >> File API IndexedDB-based impl file.spec.133 A file being removed should not affect another file with name being a prefix of the removed file name.
  - getFile - Error getting file after deleting deletedFile : deletedFile.0.1
{"code":1}: NOT_FOUND_ERR
Executed 120 of 148 specs (57 FAILED) (28 PENDING) in 12 secs.

https://travis-ci.org/apache/cordova-plugin-file/jobs/350939965

More examples:
https://travis-ci.org/apache/cordova-plugin-file/jobs/359003240
https://travis-ci.org/apache/cordova-plugin-file/builds/337808956
https://travis-ci.org/apache/cordova-plugin-file/builds/359003238
https://travis-ci.org/apache/cordova-plugin-file/jobs/286810468
https://travis-ci.org/apache/cordova-plugin-file/jobs/429328635
https://travis-ci.org/apache/cordova-plugin-file/jobs/419738829
https://travis-ci.org/apache/cordova-plugin-file/jobs/357620344
https://travis-ci.org/apache/cordova-plugin-file/jobs/337820193
https://travis-ci.org/apache/cordova-plugin-file/jobs/398898102

@janpio janpio added the bug label Sep 30, 2018
@janpio janpio changed the title Tests failing on Safari 11.1, macOS High Sierra Tests failing in Safari (11.1, macOS High Sierra) Sep 30, 2018
@janpio
Copy link
Member Author

janpio commented Sep 30, 2018

This is not caused by the recent update to Safari 11.1 (from 11.0) and macOS High Sierra (from Sierra), as there was a previous JIRA issue at https://issues.apache.org/jira/browse/CB-13783

@janpio
Copy link
Member Author

janpio commented Apr 11, 2019

fixed via #301

@janpio janpio closed this as completed Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant