mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
refactor(multiple-subtitles): [PKG-MULTI-SUB-04] type runtime modules and vendor boundaries
This commit is contained in:
1 parent
beaa93d6cc
commit
da64aae267
28 files changed
+7075
-86
No files matched your search
@@ -257,4 +257,10 @@ for (const implementation of implementations) {
|
||||
assert(env.utils.unescape(await env.latestText()).includes('art-subtitle-renamed'))
|
||||
assert.deepEqual(env.requests, ['a.vtt'])
|
||||
})
|
||||
|
||||
test(`Multiple-subtitles ${implementation.name} failure baseline: inline timestamp nodes become invalid serialized times`, async () => {
|
||||
const env = create({ responses: { 'a.vtt': 'WEBVTT\n\n00:00.000 --> 00:08.000\nBefore <00:02.000> after\n' } })
|
||||
await env.factory(options(subtitle()))(env.art)
|
||||
assert((await env.latestText()).includes('<NaN:NaN.NaN>'))
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user