mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Also check the lang in case insensitive
This commit is contained in:
parent
33e7f7384e
commit
2a9630258f
22658 changed files with 3562773 additions and 3562767 deletions
58
node_modules/mpd-parser/test/segment/durationTimeParser.test.js
generated
vendored
58
node_modules/mpd-parser/test/segment/durationTimeParser.test.js
generated
vendored
|
@ -1,29 +1,29 @@
|
|||
import QUnit from 'qunit';
|
||||
import { segmentRange } from '../../src/segment/durationTimeParser.js';
|
||||
|
||||
QUnit.module('segmentRange');
|
||||
|
||||
QUnit.test('static range uses periodDuration if available', function(assert) {
|
||||
assert.deepEqual(
|
||||
segmentRange.static({
|
||||
periodDuration: 10,
|
||||
sourceDuration: 20,
|
||||
duration: 2,
|
||||
timescale: 1
|
||||
}),
|
||||
{ start: 0, end: 5 },
|
||||
'uses periodDuration if available'
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test('static range uses sourceDuration if available', function(assert) {
|
||||
assert.deepEqual(
|
||||
segmentRange.static({
|
||||
sourceDuration: 20,
|
||||
duration: 2,
|
||||
timescale: 1
|
||||
}),
|
||||
{ start: 0, end: 10 },
|
||||
'uses periodDuration if available'
|
||||
);
|
||||
});
|
||||
import QUnit from 'qunit';
|
||||
import { segmentRange } from '../../src/segment/durationTimeParser.js';
|
||||
|
||||
QUnit.module('segmentRange');
|
||||
|
||||
QUnit.test('static range uses periodDuration if available', function(assert) {
|
||||
assert.deepEqual(
|
||||
segmentRange.static({
|
||||
periodDuration: 10,
|
||||
sourceDuration: 20,
|
||||
duration: 2,
|
||||
timescale: 1
|
||||
}),
|
||||
{ start: 0, end: 5 },
|
||||
'uses periodDuration if available'
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test('static range uses sourceDuration if available', function(assert) {
|
||||
assert.deepEqual(
|
||||
segmentRange.static({
|
||||
sourceDuration: 20,
|
||||
duration: 2,
|
||||
timescale: 1
|
||||
}),
|
||||
{ start: 0, end: 10 },
|
||||
'uses periodDuration if available'
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue