1regions, scroll
2<link rel="help" href="https://w3c.github.io/webvtt/#collect-webvtt-region-settings">
3
4assert_equals(cues.length, 6);
5
6var regions = Array.from(cues).map(function(cue) {
7    return cue.region;
8});
9
10var valid_lines = [
11    '',
12    'up',
13    'up',
14    '',
15    '',
16    'up',
17].forEach(function(valid, index) {
18    assert_equals(regions[index].scroll, valid, 'Failed with region ' + index);
19});
20
21===
22WEBVTT
23
24REGION
25id:0
26
27REGION
28id:1
29scroll:up
30
31REGION
32id:2
33scroll:up scroll:up scroll:up scroll:up scroll:up scroll:up scroll:up scroll:up
34scroll:up scroll:up scroll:up scroll:up scroll:up scroll:up scroll:up scroll:up
35
36REGION
37id:3
38scroll:down
39scroll:left
40scroll:right
41
42REGION
43id:4
44scroll: up
45scroll :up
46
47REGION
48id:5
49scroll:up scroll:
50
5100:00:00.000 --> 00:00:01.000 region:0
52text
53
5400:00:00.000 --> 00:00:01.000 region:1
55text
56
5700:00:00.000 --> 00:00:01.000 region:2
58text
59
6000:00:00.000 --> 00:00:01.000 region:3
61text
62
6300:00:00.000 --> 00:00:01.000 region:4
64text
65
6600:00:00.000 --> 00:00:01.000 region:5
67text
68