summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webvtt/parsing/file-parsing/support/arrows.test
blob: 72207a241704de2244f88f3de4e2fa72e17ee8d0 (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
33
34
35
36
37
38
arrows
<link rel="help" href="https://w3c.github.io/webvtt/#cue-timings-and-settings-parsing">

assert_equals(cues.length, 6);

for (var i = 0; i < cues.length; i++) {
    assert_equals(cues[i].id, '', 'Failed with cue ' + i);
    assert_equals(cues[i].text, 'text' + i, 'Failed with cue ' + i);
}

===
WEBVTT

-->
00:00:00.000 --> 00:00:01.000
text0
foo-->
00:00:00.000 --> 00:00:01.000
text1
-->foo
00:00:00.000 --> 00:00:01.000
text2
--->
00:00:00.000 --> 00:00:01.000
text3
-->-->
00:00:00.000 --> 00:00:01.000
text4
00:00:00.000 --> 00:00:01.000
text5

00:00:00.000 -a -->

00:00:00.000 --a -->

00:00:00.000 - -->

00:00:00.000 -- -->