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

Side by Side Diff: LayoutTests/media/track/track-add-remove-cue.html

Issue 965683002: Fix TextTrackMode test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « no previous file | LayoutTests/media/track/track-add-remove-cue-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 var cues; 10 var cues;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 consoleWrite("<br>*** Add the new cue to a track, make sure it i s inserted correctly."); 42 consoleWrite("<br>*** Add the new cue to a track, make sure it i s inserted correctly.");
43 run("testTrack.track.addCue(textCue)"); 43 run("testTrack.track.addCue(textCue)");
44 testExpected("textCue.track", testTrack.track); 44 testExpected("textCue.track", testTrack.track);
45 testExpected("cues[1].startTime", 31); 45 testExpected("cues[1].startTime", 31);
46 testExpected("cues[2].startTime", 33); 46 testExpected("cues[2].startTime", 33);
47 testExpected("cues[3].startTime", 61); 47 testExpected("cues[3].startTime", 61);
48 48
49 consoleWrite("<br>*** create a new cue and add it to a track cre ated with video.addTextTrack, make sure it is inserted correctly."); 49 consoleWrite("<br>*** create a new cue and add it to a track cre ated with video.addTextTrack, make sure it is inserted correctly.");
50 findMediaElement(); 50 findMediaElement();
51 run('newTrack = video.addTextTrack("subtitles", "French subtitle s", "fr")'); 51 run('newTrack = video.addTextTrack("subtitles", "French subtitle s", "fr")');
52 newTrack.mode = 2; 52 run('newTrack.mode = "showing"');
53 run('newTrack.addCue(new VTTCue(0.0, 1.0, "Test!"))'); 53 run('newTrack.addCue(new VTTCue(0.0, 1.0, "Test!"))');
54 run('newCue = newTrack.cues[0]'); 54 run('newCue = newTrack.cues[0]');
55 testExpected("newCue.track", newTrack); 55 testExpected("newCue.track", newTrack);
56 testExpected("newCue.id", ""); 56 testExpected("newCue.id", "");
57 testExpected("newCue.startTime", 0.0); 57 testExpected("newCue.startTime", 0.0);
58 testExpected("newCue.endTime", 1.0); 58 testExpected("newCue.endTime", 1.0);
59 testExpected("newCue.pauseOnExit", false); 59 testExpected("newCue.pauseOnExit", false);
60 testExpected("newCue.vertical", ""); 60 testExpected("newCue.vertical", "");
61 testExpected("newCue.snapToLines", true); 61 testExpected("newCue.snapToLines", true);
62 testExpected("newCue.line", -1); 62 testExpected("newCue.line", -1);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 </script> 103 </script>
104 </head> 104 </head>
105 <body> 105 <body>
106 <p>Tests TextTrack's addCue and removeCue</p> 106 <p>Tests TextTrack's addCue and removeCue</p>
107 <video> 107 <video>
108 <track id="testTrack" src="captions-webvtt/tc013-settings.vtt" kind= "captions" onload="trackLoaded()" default> 108 <track id="testTrack" src="captions-webvtt/tc013-settings.vtt" kind= "captions" onload="trackLoaded()" default>
109 </video> 109 </video>
110 </body> 110 </body>
111 </html> 111 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/track/track-add-remove-cue-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698