mirror of
https://github.com/codedread/bitjs
synced 2025-10-04 01:59:15 +02:00
A couple more unit tests for matroska in codecs and update changelog for release.
This commit is contained in:
parent
bb0f40394e
commit
2d0bb47014
2 changed files with 41 additions and 0 deletions
|
@ -115,9 +115,21 @@ describe('codecs test suite', () => {
|
|||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'video', codec_name: 'vp8' } ],
|
||||
})).equals('video/webm');
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'video', codec_name: 'vp9' } ],
|
||||
})).equals('video/webm');
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'video', codec_name: 'av1' } ],
|
||||
})).equals('video/webm');
|
||||
});
|
||||
|
||||
it('detects WEBM audio', () => {
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'audio', codec_name: 'opus' } ],
|
||||
})).equals('audio/webm');
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'audio', codec_name: 'vorbis' } ],
|
||||
|
@ -129,9 +141,29 @@ describe('codecs test suite', () => {
|
|||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'video', codec_name: 'h264' } ],
|
||||
})).equals('video/x-matroska');
|
||||
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [
|
||||
{ codec_type: 'audio', codec_name: 'aac' },
|
||||
{ codec_type: 'video', codec_name: 'vp9' },
|
||||
],
|
||||
})).equals('video/x-matroska');
|
||||
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [
|
||||
{ codec_type: 'audio', codec_name: 'vorbis' },
|
||||
{ codec_type: 'video', codec_name: 'h264' },
|
||||
],
|
||||
})).equals('video/x-matroska');
|
||||
});
|
||||
|
||||
it('detects Matroska audio', () => {
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'audio', codec_name: 'aac' } ],
|
||||
})).equals('audio/x-matroska');
|
||||
expect(getShortMIMEString({
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [ { codec_type: 'audio', codec_name: 'dts' } ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue