mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
@@ -358,6 +358,18 @@ describe('TtmlTextParser', () => {
|
||||
{startTime: 62.05, endTime: 3723.2});
|
||||
});
|
||||
|
||||
it('supports colon formatted time with 0 or 1 dp', () => {
|
||||
verifyHelper(
|
||||
[
|
||||
{startTime: 62, endTime: 3723.2, payload: 'Test'},
|
||||
],
|
||||
'<tt><body><div>' +
|
||||
'<p begin="01:02" end="01:02:03.2">Test</p>' +
|
||||
'</div></body></tt>',
|
||||
{periodStart: 0, segmentStart: 60, segmentEnd: 3730, vttOffset: 0},
|
||||
{startTime: 62, endTime: 3723.2});
|
||||
});
|
||||
|
||||
it('accounts for offset', () => {
|
||||
verifyHelper(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user