Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: LayoutTests/media/track/opera/interfaces/TextTrackCueList/length.html

Issue 72543003: Update TextTrackCue tests to use VTTCue where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <title>TextTrackCueList.length</title> 2 <title>TextTrackCueList.length</title>
3 <script src=../../../../../resources/testharness.js></script> 3 <script src=../../../../../resources/testharness.js></script>
4 <script src=../../../../../resources/testharnessreport.js></script> 4 <script src=../../../../../resources/testharnessreport.js></script>
5 <div id=log></div> 5 <div id=log></div>
6 <script> 6 <script>
7 setup(function(){ 7 setup(function(){
8 window.video = document.createElement('video'); 8 window.video = document.createElement('video');
9 window.t1 = video.addTextTrack('subtitles'); 9 window.t1 = video.addTextTrack('subtitles');
10 document.body.appendChild(video); 10 document.body.appendChild(video);
11 }); 11 });
12 test(function(){ 12 test(function(){
13 var cues = t1.cues; 13 var cues = t1.cues;
14 assert_equals(cues.length, 0); 14 assert_equals(cues.length, 0);
15 var c1 = new TextTrackCue(0, 1, 'text1'); 15 var c1 = new VTTCue(0, 1, 'text1');
16 t1.addCue(c1); 16 t1.addCue(c1);
17 assert_equals(cues.length, 1); 17 assert_equals(cues.length, 1);
18 t1.removeCue(c1); 18 t1.removeCue(c1);
19 assert_equals(cues.length, 0); 19 assert_equals(cues.length, 0);
20 }); 20 });
21 21
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698