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

Side by Side Diff: LayoutTests/media/track/track-cue-rendering-empty-cue-crash.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 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 5
6 <script src=../media-file.js></script> 6 <script src=../media-file.js></script>
7 <script src=../video-test.js></script> 7 <script src=../video-test.js></script>
8 <script> 8 <script>
9 function startTest() 9 function startTest()
10 { 10 {
11 findMediaElement(); 11 findMediaElement();
12 video.src = findMediaFile('video', '../content/test'); 12 video.src = findMediaFile('video', '../content/test');
13 13
14 consoleWrite("** Add a text track to the video element **"); 14 consoleWrite("** Add a text track to the video element **");
15 video.addTextTrack("captions", "regular captions track", "en"); 15 video.addTextTrack("captions", "regular captions track", "en");
16 16
17 consoleWrite("** Add an empty cue to the track **"); 17 consoleWrite("** Add an empty cue to the track **");
18 video.textTracks[0].addCue(new TextTrackCue(0.00, 4.00, "")); 18 video.textTracks[0].addCue(new VTTCue(0.00, 4.00, ""));
19 19
20 consoleWrite("** Play the video and render the cue **"); 20 consoleWrite("** Play the video and render the cue **");
21 video.play(); 21 video.play();
22 22
23 consoleWrite(""); 23 consoleWrite("");
24 consoleWrite("No crash. PASS."); 24 consoleWrite("No crash. PASS.");
25 consoleWrite(""); 25 consoleWrite("");
26 26
27 endTest(); 27 endTest();
28 } 28 }
29 </script> 29 </script>
30 </head> 30 </head>
31 31
32 <body onload="startTest()"> 32 <body onload="startTest()">
33 <p>Tests that having empty cues does not crash the browser.</p> 33 <p>Tests that having empty cues does not crash the browser.</p>
34 <video controls /> 34 <video controls />
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698