tor-browser

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

comment-in-cue-text.test (635B)


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