blob: 135f1c6abc7630e8e47e0be6ecd41368e1016c33 (
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
29
30
31
32
|
ids
<link rel="help" href="https://w3c.github.io/webvtt/#collect-a-webvtt-block">
assert_equals(cues.length, 5);
assert_equals(cues[0].id, " leading space");
assert_equals(cues[1].id, "trailing space ");
assert_equals(cues[2].id, "-- >");
assert_equals(cues[3].id, "->");
assert_equals(cues[4].id, " ");
===
WEBVTT
\x20leading space
00:00:00.000 --> 00:00:01.000
text0
trailing space\x20
00:00:00.000 --> 00:00:01.000
text1
-- >
00:00:00.000 --> 00:00:01.000
text2
->
00:00:00.000 --> 00:00:01.000
text3
\x20
00:00:00.000 --> 00:00:01.000
text4
|