mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
fix(jassub): [PKG-JASSUB-07] repair vendor lifecycle and subtitle frame clock
This commit is contained in:
1 parent
5e445b1af6
commit
0f3c068aae
29 files changed
+14064
-267
No files matched your search
+2
-2
@@ -59,12 +59,12 @@ for (const implementation of implementations) {
|
||||
assert.equal(result.instance.resize(640, 360, 4, 5, false), undefined)
|
||||
assert.equal(result.instance.setVideo(option.video), undefined)
|
||||
assert.equal(result.instance.setTrack('[Script Info]'), undefined)
|
||||
assert.equal(result.instance.destroy(), undefined)
|
||||
await env.flush()
|
||||
assert.equal(env.workers[0].terminated, 1)
|
||||
const resize = env.workers[0].messages.find(message => message.target === 'canvas')
|
||||
assert.equal(resize.width, 640)
|
||||
assert.equal(resize.height, 360)
|
||||
assert.equal(result.instance.destroy(), undefined)
|
||||
assert.equal(env.workers[0].terminated, 1)
|
||||
})
|
||||
test(`JASSUB ${implementation.name}: omitted options retain worker and font defaults`, async () => {
|
||||
const env = jassubEnvironment(implementation)
|
||||
|
||||
Reference in new issue
Block a user