JSZip Testing

Rerunning selected tests: ef940f16 Run all tests

QUnit 1.23.0; Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/137.0.0.0 Safari/537.36 Prerender (+https://github.com/prerender/prerender)

Tests completed in 45 milliseconds.
82 assertions of 82 passed, 0 failed.

  1. constructor: JSZip existsRerun
    1. constructor: new JSZip()Rerun
      1. constructor: JSZip()Rerun
        1. version: JSZip.version is correctRerun
          1. delete: Delete fileRerun
            1. delete: Delete file in folderRerun
              1. delete: Delete file in folder, with a relative pathRerun
                1. delete: Delete folderRerun
                  1. delete: Delete folder with a final /Rerun
                    1. delete: Delete unknown pathRerun
                      1. delete: Delete nested foldersRerun
                        1. delete: Delete nested folders from relative pathRerun
                          1. deprecated: Removed load method throws an exceptionRerun
                            1. deprecated: Removed constructor with data throws an exceptionRerun
                              1. deprecated: Removed asText method throws an exceptionRerun
                                1. deprecated: Removed generate method throws an exceptionRerun
                                  1. external: JSZip.external.PromiseRerun
                                    1. external: load JSZip doesn't override the global PromiseRerun
                                      1. external: external.Promise can be replaced in .async()Rerun
                                        1. external: external.Promise can be replaced in .generateAsync()Rerun
                                          1. external: external.Promise can be replaced in .loadAsync()Rerun
                                            1. file > add: Zip text file !Rerun
                                              1. file > add: Zip text, folder and imageRerun
                                                1. file > add: Add a file to overwriteRerun
                                                  1. file > add: Zip text file with dateRerun
                                                    1. file > add: Zip image fileRerun
                                                      1. file > add: add file: from XHR (with bytes > 255)Rerun
                                                        1. file > add: add file: wrong string as base64Rerun
                                                          1. file > add: add file: data url instead of base64Rerun
                                                            1. file > add: add file: file(name, undefined)Rerun
                                                              1. file > add: add file: file(name, null)Rerun
                                                                1. file > add: add file: file(name, stringAsText)Rerun
                                                                  1. file > add: add file: file(name, stringAsBinary)Rerun
                                                                    1. file > add: add file: file(name, array)Rerun
                                                                      1. file > add: add file: file(name, base64)Rerun
                                                                        1. file > add: add file: file(name, unsupported)Rerun
                                                                          1. file > add: add file: file(name, Uint8Array)Rerun
                                                                            1. file > add: add file: file(name, ArrayBuffer)Rerun
                                                                              1. file > add: add file: file(name, Blob)Rerun
                                                                                1. file > add: add file: file(name, native Promise)Rerun
                                                                                  1. file > add: add file: file(name, polyfill Promise[string] as binary) (82)Rerun36 ms
                                                                                    1. [test = utf8] [method = async(string)] basic check stream, the stream callback is async@ 1 ms
                                                                                    2. [test = utf8] [method = async(text)] basic check stream, the stream callback is async@ 1 ms
                                                                                    3. [test = utf8] [method = async(base64)] basic check stream, the stream callback is async@ 1 ms
                                                                                    4. [test = utf8] [method = async(array)] basic check stream, the stream callback is async@ 1 ms
                                                                                    5. [test = utf8] [method = async(binarystring)] basic check stream, the stream callback is async@ 1 ms
                                                                                    6. [test = utf8] [method = async(arraybuffer)] basic check stream, the stream callback is async@ 1 ms
                                                                                    7. [test = utf8] [method = async(uint8array)] basic check stream, the stream callback is async@ 1 ms
                                                                                    8. [test = utf8] [method = async(nodebuffer)] basic check stream, the stream callback is async@ 2 ms
                                                                                    9. [test = utf8] [method = async(blob)] basic check stream, the stream callback is async@ 2 ms
                                                                                    10. [test = utf8] [method = async(unknown)] basic check stream, the stream callback is async@ 3 ms
                                                                                    11. [test = utf8] [method = async(null)] basic check stream, the stream callback is async@ 3 ms
                                                                                    12. [test = utf8] [method = async(nodebuffer)] basic check stream, error event handler, error is defined@ 15 ms
                                                                                    13. [test = utf8] [method = async(nodebuffer)] no data@ 15 ms
                                                                                    14. [test = utf8] [method = async(nodebuffer)] the error message is useful@ 15 ms
                                                                                    15. [test = utf8] [method = async(unknown)] basic check stream, error event handler, error is defined@ 15 ms
                                                                                    16. [test = utf8] [method = async(unknown)] no data@ 15 ms
                                                                                    17. [test = utf8] [method = async(unknown)] the error message is useful@ 15 ms
                                                                                    18. [test = utf8] [method = async(null)] basic check stream, error event handler, error is defined@ 15 ms
                                                                                    19. [test = utf8] [method = async(null)] no data@ 15 ms
                                                                                    20. [test = utf8] [method = async(null)] the error message is useful@ 15 ms
                                                                                    21. [test = utf8] [method = async(string)] no error@ 16 ms
                                                                                    22. [test = utf8] [method = async(string)] content ok@ 16 ms
                                                                                    23. [test = utf8] [method = async(text)] no error@ 16 ms
                                                                                    24. [test = utf8] [method = async(text)] content ok@ 16 ms
                                                                                    25. [test = utf8] [method = async(base64)] no error@ 16 ms
                                                                                    26. [test = utf8] [method = async(base64)] content ok@ 16 ms
                                                                                    27. [test = utf8] [method = async(array)] no error@ 16 ms
                                                                                    28. [test = utf8] [method = async(array)] the result is a instance of Array@ 16 ms
                                                                                    29. [test = utf8] [method = async(array)] content ok@ 16 ms
                                                                                    30. [test = utf8] [method = async(binarystring)] no error@ 16 ms
                                                                                    31. [test = utf8] [method = async(binarystring)] content ok@ 16 ms
                                                                                    32. [test = utf8] [method = async(arraybuffer)] no error@ 16 ms
                                                                                    33. [test = utf8] [method = async(arraybuffer)] the result is a instance of ArrayBuffer@ 16 ms
                                                                                    34. [test = utf8] [method = async(arraybuffer)] content ok@ 16 ms
                                                                                    35. [test = utf8] [method = async(uint8array)] no error@ 16 ms
                                                                                    36. [test = utf8] [method = async(uint8array)] the result is a instance of Uint8Array@ 16 ms
                                                                                    37. [test = utf8] [method = async(uint8array)] content ok@ 16 ms
                                                                                    38. [test = utf8] [method = async(blob)] no error@ 17 ms
                                                                                    39. [test = utf8] [method = async(blob)] the result is a instance of Blob@ 17 ms
                                                                                    40. [test = utf8] [method = async(blob)] the result has the rigth mime type@ 17 ms
                                                                                    41. [test = utf8] [method = async(blob)] the result has the right length@ 17 ms
                                                                                    42. [test = (reloaded) utf8] [method = async(string)] basic check stream, the stream callback is async@ 18 ms
                                                                                    43. [test = (reloaded) utf8] [method = async(text)] basic check stream, the stream callback is async@ 18 ms
                                                                                    44. [test = (reloaded) utf8] [method = async(base64)] basic check stream, the stream callback is async@ 18 ms
                                                                                    45. [test = (reloaded) utf8] [method = async(array)] basic check stream, the stream callback is async@ 18 ms
                                                                                    46. [test = (reloaded) utf8] [method = async(binarystring)] basic check stream, the stream callback is async@ 18 ms
                                                                                    47. [test = (reloaded) utf8] [method = async(arraybuffer)] basic check stream, the stream callback is async@ 18 ms
                                                                                    48. [test = (reloaded) utf8] [method = async(uint8array)] basic check stream, the stream callback is async@ 18 ms
                                                                                    49. [test = (reloaded) utf8] [method = async(nodebuffer)] basic check stream, the stream callback is async@ 18 ms
                                                                                    50. [test = (reloaded) utf8] [method = async(blob)] basic check stream, the stream callback is async@ 18 ms
                                                                                    51. [test = (reloaded) utf8] [method = async(unknown)] basic check stream, the stream callback is async@ 18 ms
                                                                                    52. [test = (reloaded) utf8] [method = async(null)] basic check stream, the stream callback is async@ 18 ms
                                                                                    53. [test = (reloaded) utf8] [method = async(nodebuffer)] basic check stream, error event handler, error is defined@ 22 ms
                                                                                    54. [test = (reloaded) utf8] [method = async(nodebuffer)] no data@ 22 ms
                                                                                    55. [test = (reloaded) utf8] [method = async(nodebuffer)] the error message is useful@ 22 ms
                                                                                    56. [test = (reloaded) utf8] [method = async(unknown)] basic check stream, error event handler, error is defined@ 22 ms
                                                                                    57. [test = (reloaded) utf8] [method = async(unknown)] no data@ 22 ms
                                                                                    58. [test = (reloaded) utf8] [method = async(unknown)] the error message is useful@ 22 ms
                                                                                    59. [test = (reloaded) utf8] [method = async(null)] basic check stream, error event handler, error is defined@ 22 ms
                                                                                    60. [test = (reloaded) utf8] [method = async(null)] no data@ 22 ms
                                                                                    61. [test = (reloaded) utf8] [method = async(null)] the error message is useful@ 22 ms
                                                                                    62. [test = (reloaded) utf8] [method = async(string)] no error@ 22 ms
                                                                                    63. [test = (reloaded) utf8] [method = async(string)] content ok@ 22 ms
                                                                                    64. [test = (reloaded) utf8] [method = async(text)] no error@ 23 ms
                                                                                    65. [test = (reloaded) utf8] [method = async(text)] content ok@ 23 ms
                                                                                    66. [test = (reloaded) utf8] [method = async(base64)] no error@ 23 ms
                                                                                    67. [test = (reloaded) utf8] [method = async(base64)] content ok@ 23 ms
                                                                                    68. [test = (reloaded) utf8] [method = async(array)] no error@ 23 ms
                                                                                    69. [test = (reloaded) utf8] [method = async(array)] the result is a instance of Array@ 23 ms
                                                                                    70. [test = (reloaded) utf8] [method = async(array)] content ok@ 23 ms
                                                                                    71. [test = (reloaded) utf8] [method = async(binarystring)] no error@ 23 ms
                                                                                    72. [test = (reloaded) utf8] [method = async(binarystring)] content ok@ 23 ms
                                                                                    73. [test = (reloaded) utf8] [method = async(arraybuffer)] no error@ 23 ms
                                                                                    74. [test = (reloaded) utf8] [method = async(arraybuffer)] the result is a instance of ArrayBuffer@ 23 ms
                                                                                    75. [test = (reloaded) utf8] [method = async(arraybuffer)] content ok@ 23 ms
                                                                                    76. [test = (reloaded) utf8] [method = async(uint8array)] no error@ 23 ms
                                                                                    77. [test = (reloaded) utf8] [method = async(uint8array)] the result is a instance of Uint8Array@ 23 ms
                                                                                    78. [test = (reloaded) utf8] [method = async(uint8array)] content ok@ 23 ms
                                                                                    79. [test = (reloaded) utf8] [method = async(blob)] no error@ 23 ms
                                                                                    80. [test = (reloaded) utf8] [method = async(blob)] the result is a instance of Blob@ 23 ms
                                                                                    81. [test = (reloaded) utf8] [method = async(blob)] the result has the rigth mime type@ 23 ms
                                                                                    82. [test = (reloaded) utf8] [method = async(blob)] the result has the right length@ 23 ms

                                                                                    Source: at Object. (https://d33wubrfki0l68.cloudfront.net/bundles/1c37cd451d24d2103485f70891ca95bff74c98dc.js:1:22842)

                                                                                  2. file > add: add file: file(name, polyfill Promise[string] force text)Rerun
                                                                                    1. file > add: add file: file(name, polyfill Promise[Blob])Rerun
                                                                                      1. file > about folders: Zip folder() shouldn't throw an exceptionRerun
                                                                                        1. file > about folders: Zip empty folderRerun
                                                                                          1. file > about folders: file() creates a folder with dir:trueRerun
                                                                                            1. file > about folders: file() creates a folder with the right unix permissionsRerun
                                                                                              1. file > about folders: file() creates a folder with the right dos permissionsRerun
                                                                                                1. file > about folders: A folder stays a folder when created with fileRerun
                                                                                                  1. file > about folders: file() adds a slash for directoriesRerun
                                                                                                    1. file > about folders: folder() doesn't overwrite existing entriesRerun
                                                                                                      1. file > about folders: createFolders works on a fileRerun
                                                                                                        1. file > about folders: createFolders works on a folderRerun
                                                                                                          1. file > about folders: folder follows the default createFolders settingsRerun
                                                                                                            1. file > about folders: A folder stays a folderRerun
                                                                                                              1. file > about folders: Folders are created by defaultRerun
                                                                                                                1. file > about folders: Folders can be avoided with createFoldersRerun
                                                                                                                  1. file > find entries: Finding a fileRerun
                                                                                                                    1. file > find entries: Finding a file (text search) with a relative folderRerun
                                                                                                                      1. file > find entries: Finding files (regex) with a relative folderRerun
                                                                                                                        1. file > find entries: Finding foldersRerun
                                                                                                                          1. file > find entries: Finding folders with relative pathRerun
                                                                                                                            1. file > find entries: ZipObject attributesRerun
                                                                                                                              1. file > find entries: generate uses updated ZipObject date attributeRerun
                                                                                                                                1. filter: Filtering a zipRerun
                                                                                                                                  1. filter: Filtering a zip from a relative pathRerun
                                                                                                                                    1. filter: Filtering a zip : the full path is still accessibleRerun
                                                                                                                                      1. forEach: forEach works on /Rerun
                                                                                                                                        1. forEach: forEach works on a sub folderRerun
                                                                                                                                          1. generate: generate : type:string. no streamRerun
                                                                                                                                            1. generate: generate : type:base64. no streamRerun
                                                                                                                                              1. generate: generate : type:uint8array. no streamRerun
                                                                                                                                                1. generate: generate : type:arraybuffer. no streamRerun
                                                                                                                                                  1. generate: generate : type:nodebuffer. no streamRerun
                                                                                                                                                    1. generate: generate : type:blob. no streamRerun
                                                                                                                                                      1. generate: generate : type:blob mimeType:application/ods. no streamRerun
                                                                                                                                                        1. generate: generate : type:string. with streamRerun
                                                                                                                                                          1. generate: generate : type:base64. with streamRerun
                                                                                                                                                            1. generate: generate : type:uint8array. with streamRerun
                                                                                                                                                              1. generate: generate : type:arraybuffer. with streamRerun
                                                                                                                                                                1. generate: generate : type:nodebuffer. with streamRerun
                                                                                                                                                                  1. generate: generate : type:blob. with streamRerun
                                                                                                                                                                    1. generate: generate : type:blob mimeType:application/ods. with streamRerun
                                                                                                                                                                      1. generate: STORE doesn't compress, no streamRerun
                                                                                                                                                                        1. generate: STORE doesn't compress, with streamRerun
                                                                                                                                                                          1. generate: DEFLATE compress, no streamRerun
                                                                                                                                                                            1. generate: DEFLATE compress, with streamRerun
                                                                                                                                                                              1. generate: STORE is the default methodRerun
                                                                                                                                                                                1. generate: Lazy decompression worksRerun
                                                                                                                                                                                  1. generate: empty zipRerun
                                                                                                                                                                                    1. generate: unknown compression throws an exceptionRerun
                                                                                                                                                                                      1. generate: missing type throws an exceptionRerun
                                                                                                                                                                                        1. generate: generateAsync uses the current folder levelRerun
                                                                                                                                                                                          1. generate: generateAsync keep the explicit / folderRerun
                                                                                                                                                                                            1. generate: generate with promises as filesRerun
                                                                                                                                                                                              1. load: load(string) worksRerun
                                                                                                                                                                                                1. load: load(string) handles bytes > 255Rerun
                                                                                                                                                                                                  1. load: load(Array) worksRerun
                                                                                                                                                                                                    1. load: load(array) handles bytes > 255Rerun
                                                                                                                                                                                                      1. load: load(ArrayBuffer) worksRerun
                                                                                                                                                                                                        1. load: load(Uint8Array) worksRerun
                                                                                                                                                                                                          1. load: zip with DEFLATERerun
                                                                                                                                                                                                            1. load: read zip with commentRerun
                                                                                                                                                                                                              1. load: generate zip with commentRerun
                                                                                                                                                                                                                1. load: zip with extra attributesRerun
                                                                                                                                                                                                                  1. load: zip 64Rerun
                                                                                                                                                                                                                    1. load: zip with data descriptorRerun
                                                                                                                                                                                                                      1. load: nested zipRerun
                                                                                                                                                                                                                        1. load: nested zip with data descriptorsRerun
                                                                                                                                                                                                                          1. load: nested zip 64Rerun
                                                                                                                                                                                                                            1. load: Zip text file with UTF-8 characters in filenameRerun
                                                                                                                                                                                                                              1. load: Zip text file with UTF-8 characters in filename and windows compatibilityRerun
                                                                                                                                                                                                                                1. load: Zip text file with backslash in filenameRerun
                                                                                                                                                                                                                                  1. load: Zip text file from windows with \ in central dirRerun
                                                                                                                                                                                                                                    1. load: zip file with prepended bytesRerun
                                                                                                                                                                                                                                      1. load: zip file with appended bytesRerun
                                                                                                                                                                                                                                        1. load: zip64 file with extra bytesRerun
                                                                                                                                                                                                                                          1. load: zip64 file with extra bytes Rerun
                                                                                                                                                                                                                                            1. load: load(promise) worksRerun
                                                                                                                                                                                                                                              1. load: load(blob) worksRerun
                                                                                                                                                                                                                                                1. load: valid crc32Rerun
                                                                                                                                                                                                                                                  1. load: loading in a sub folderRerun
                                                                                                                                                                                                                                                    1. load: loading overwrite filesRerun
                                                                                                                                                                                                                                                      1. load > not supported features: basic encryptionRerun
                                                                                                                                                                                                                                                        1. load > corrupted zip: bad compression methodRerun
                                                                                                                                                                                                                                                          1. load > corrupted zip: zip file with missing bytesRerun
                                                                                                                                                                                                                                                            1. load > corrupted zip: zip64 file with missing bytesRerun
                                                                                                                                                                                                                                                              1. load > corrupted zip: not a zip fileRerun
                                                                                                                                                                                                                                                                1. load > corrupted zip: truncated zip fileRerun
                                                                                                                                                                                                                                                                  1. load > corrupted zip: invalid crc32 but no checkRerun
                                                                                                                                                                                                                                                                    1. load > corrupted zip: invalid crc32Rerun
                                                                                                                                                                                                                                                                      1. load > corrupted zip: bad offsetRerun
                                                                                                                                                                                                                                                                        1. load > corrupted zip: bad decompressed size, read a fileRerun
                                                                                                                                                                                                                                                                          1. load > corrupted zip: bad decompressed size, generate a zipRerun
                                                                                                                                                                                                                                                                            1. permissions: permissions on linux : file created by zipRerun
                                                                                                                                                                                                                                                                              1. permissions: permissions on linux : file created by zip, reloadedRerun
                                                                                                                                                                                                                                                                                1. permissions: permissions on linux : file created by 7zRerun
                                                                                                                                                                                                                                                                                  1. permissions: permissions on linux : file created by 7z, reloadedRerun
                                                                                                                                                                                                                                                                                    1. permissions: permissions on linux : file created by file-roller on ubuntuRerun
                                                                                                                                                                                                                                                                                      1. permissions: permissions on linux : file created by file-roller on ubuntu, reloadedRerun
                                                                                                                                                                                                                                                                                        1. permissions: permissions on linux : file created by file-roller on xubuntuRerun
                                                                                                                                                                                                                                                                                          1. permissions: permissions on linux : file created by file-roller on xubuntu, reloadedRerun
                                                                                                                                                                                                                                                                                            1. permissions: permissions on linux : file created by arkRerun
                                                                                                                                                                                                                                                                                              1. permissions: permissions on linux : file created by ark, reloadedRerun
                                                                                                                                                                                                                                                                                                1. permissions: permissions on mac : file created by finderRerun
                                                                                                                                                                                                                                                                                                  1. permissions: permissions on mac : file created by finder, reloadedRerun
                                                                                                                                                                                                                                                                                                    1. permissions: permissions on windows : file created by the compressed folders featureRerun
                                                                                                                                                                                                                                                                                                      1. permissions: permissions on windows : file created by the compressed folders feature, reloadedRerun
                                                                                                                                                                                                                                                                                                        1. permissions: permissions on windows : file created by 7zRerun
                                                                                                                                                                                                                                                                                                          1. permissions: permissions on windows : file created by 7z, reloadedRerun
                                                                                                                                                                                                                                                                                                            1. permissions: permissions on windows : file created by izarcRerun
                                                                                                                                                                                                                                                                                                              1. permissions: permissions on windows : file created by izarc, reloadedRerun
                                                                                                                                                                                                                                                                                                                1. permissions: permissions on windows : file created by winrarRerun
                                                                                                                                                                                                                                                                                                                  1. permissions: permissions on windows : file created by winrar, reloadedRerun
                                                                                                                                                                                                                                                                                                                    1. stream > internal: A stream is pausableRerun
                                                                                                                                                                                                                                                                                                                      1. stream > nodejs: generateNodeStream generates an errorRerun
                                                                                                                                                                                                                                                                                                                        1. stream > nodejs: ZipObject#nodeStream generates an errorRerun
                                                                                                                                                                                                                                                                                                                          1. unicode: Zip text file with UTF-8 charactersRerun
                                                                                                                                                                                                                                                                                                                            1. unicode: Text file with long unicode stringRerun
                                                                                                                                                                                                                                                                                                                              1. unicode: Zip text file with UTF-8 characters in filenameRerun
                                                                                                                                                                                                                                                                                                                                1. unicode: Zip text file with non unicode characters in filename: loadAsync without decodeFileNameRerun
                                                                                                                                                                                                                                                                                                                                  1. unicode: Zip text file with non unicode characters in filename: loadAsync with decodeFileNameRerun
                                                                                                                                                                                                                                                                                                                                    1. unicode: Zip text file with non unicode characters in filename: generateAsync with encodeFileNameRerun
                                                                                                                                                                                                                                                                                                                                      1. unicode: Zip text file and UTF-8, Pile Of Poo testRerun