tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

regions-id.test (791B)


      1 regions, id
      2 <link rel="help" href="https://w3c.github.io/webvtt/#collect-webvtt-region-settings">
      3 
      4 assert_equals(cues.length, 4);
      5 
      6 var region1 = cues[0].region;
      7 assert_equals(region1.lines, 2);
      8 
      9 var region2 = cues[1].region;
     10 assert_equals(region2.lines, 1);
     11 
     12 var region3 = cues[2].region;
     13 assert_equals(region3.lines, 3);
     14 
     15 var region4 = cues[3].region;
     16 assert_equals(region4.lines, 4);
     17 
     18 ===
     19 WEBVTT
     20 
     21 NOTE No API for accessing region ids, so using lines to uniquely identify regions
     22 
     23 REGION
     24 id:foo
     25 id:bar
     26 lines:1
     27 
     28 REGION
     29 id:bar id:foo
     30 lines:2
     31 
     32 REGION
     33 id:id
     34 id: foo
     35 id :bar
     36 lines:3
     37 
     38 REGION
     39 id:\v
     40 lines:4
     41 
     42 00:00:00.000 --> 00:00:01.000 region:foo
     43 valid
     44 
     45 00:00:00.000 --> 00:00:01.000 region:bar
     46 valid
     47 
     48 00:00:00.000 --> 00:00:01.000 region:id
     49 valid
     50 
     51 00:00:00.000 --> 00:00:01.000 region:\v
     52 valid