-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc9ab5f
commit b915497
Showing
21 changed files
with
119 additions
and
112 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+2.09 KB
test/files/archives/test.tar.gz → test/files/archives/tar/test.tar.gz
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* eslint-disable no-undef */ | ||
const {checksum} = require('../checksum'); | ||
const {navigate,inputFile,response,setup,cleanup} = require('../testutils'); | ||
|
||
let browser,page; | ||
|
||
beforeAll(async () => { | ||
let tmp = await setup(); | ||
browser = tmp.browser; | ||
page = tmp.page; | ||
}); | ||
|
||
describe("Extract 7Z files with various compressions", () => { | ||
test("Extract 7Z with LZMA", async () => { | ||
await navigate(page); | ||
await inputFile('archives/7z/lzma.7z',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
test("Extract 7Z with LZMA2", async () => { | ||
await navigate(page); | ||
await inputFile('archives/7z/lzma2.7z',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
test("Extract 7Z with BZIP2", async () => { | ||
await navigate(page); | ||
await inputFile('archives/7z/bzip2.7z',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
}); | ||
|
||
afterAll(() => { | ||
cleanup(browser); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint-disable no-undef */ | ||
const {checksum} = require('../checksum'); | ||
const {navigate,inputFile,response,setup,cleanup} = require('../testutils'); | ||
|
||
let browser,page; | ||
|
||
beforeAll(async () => { | ||
let tmp = await setup(); | ||
browser = tmp.browser; | ||
page = tmp.page; | ||
}); | ||
|
||
describe("Extract RAR files", () => { | ||
test("Extract RAR v4", async () => { | ||
await navigate(page); | ||
await inputFile('archives/rar/test-v4.rar',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
test("Extract RAR v5", async () => { | ||
await navigate(page); | ||
await inputFile('archives/rar/test-v5.rar',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
}); | ||
|
||
afterAll(() => { | ||
cleanup(browser); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* eslint-disable no-undef */ | ||
const {checksum} = require('../checksum'); | ||
const {navigate,inputFile,response,setup,cleanup} = require('../testutils'); | ||
|
||
let browser,page; | ||
|
||
beforeAll(async () => { | ||
let tmp = await setup(); | ||
browser = tmp.browser; | ||
page = tmp.page; | ||
}); | ||
|
||
describe("Extract TAR files with various compressions", () => { | ||
test("Extract TAR without compression", async () => { | ||
await navigate(page); | ||
await inputFile('archives/tar/test.tar',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
test("Extract TAR BZIP2", async () => { | ||
await navigate(page); | ||
await inputFile('archives/tar/test.tar.bz2',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
test("Extract TAR GZIP", async () => { | ||
await navigate(page); | ||
await inputFile('archives/tar/test.tar.gz',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
test("Extract TAR LZMA2", async () => { | ||
await navigate(page); | ||
await inputFile('archives/tar/test.tar.xz',page); | ||
const files = await response(page); | ||
expect(files).toEqual(checksum); | ||
}, 16000); | ||
}); | ||
|
||
afterAll(() => { | ||
cleanup(browser); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters