Skip to content

Commit

Permalink
Removes incorrectly merged code segment
Browse files Browse the repository at this point in the history
  • Loading branch information
bloomtom committed Jan 27, 2023
1 parent 42218d0 commit 051ee99
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions test/text/vtt_text_parser_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,33 +672,6 @@ describe('VttTextParser', () => {
{periodStart: 0, segmentStart: 0, segmentEnd: 0, vttOffset: 0});
});

it('supports an extra newline inside the cue body', () => {
verifyHelper(
[
{startTime: 20, endTime: 40, payload: 'Test'},
{startTime: 40, endTime: 50, payload: 'Test2'},
],
'WEBVTT\n\n' +
'00:00:20.000 --> 00:00:40.000\n' +
'Test\n\nExtra line\n\n' +
'00:00:40.000 --> 00:00:50.000\n' +
'Test2',
{periodStart: 0, segmentStart: 0, segmentEnd: 0});
});

it('supports an extra newline before the cue body', () => {
verifyHelper(
[
{startTime: 20, endTime: 40, payload: ''},
{startTime: 40, endTime: 50, payload: 'Test2'},
],
'WEBVTT\n\n' +
'00:00:20.000 --> 00:00:40.000\n' +
'\nTest\n\n' +
'00:00:40.000 --> 00:00:50.000\n' +
'Test2',
{periodStart: 0, segmentStart: 0, segmentEnd: 0});

it('supports global style blocks without blank lines', () => {
verifyHelper(
[
Expand Down Expand Up @@ -1217,7 +1190,7 @@ describe('VttTextParser', () => {
'test\n\n',
{periodStart: 0, segmentStart: 0, segmentEnd: 0, vttOffset: 0});
});

it('supports an extra newline inside the cue body', () => {
verifyHelper(
[
Expand Down

0 comments on commit 051ee99

Please sign in to comment.