blob: 38e4b9f16e47227b825c9d7535784459b4ec7a1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
comment-in-cue-text
<link rel="help" href="https://www.w3.org/TR/webvtt1/#introduction-comments">
assert_equals(cues.length, 2);
assert_equals(cues[0].text, 'NOTE text');
assert_equals(cues[0].startTime, 0);
assert_equals(cues[0].endTime, 1);
assert_equals(cues[1].text, 'NOTE text\nNOTE text2');
assert_equals(cues[1].startTime, 1);
assert_equals(cues[1].endTime, 2);
===
WEBVTT
NOTE this is real comment that should be ignored
00:00:00.000 --> 00:00:01.000
NOTE text
NOTE
this is also a real comment that should be ignored
this is also a real comment that should be ignored
00:00:01.000 --> 00:00:02.000
NOTE text
NOTE text2
|