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

Unified Diff: LayoutTests/media/track/opera/interfaces/TextTrackCueList/getCueById.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/track/opera/interfaces/TextTrackCueList/getCueById.html
diff --git a/LayoutTests/media/track/opera/interfaces/TextTrackCueList/getCueById.html b/LayoutTests/media/track/opera/interfaces/TextTrackCueList/getCueById.html
index 3e63d293dda445a2eb11a362072b3779b2dde2c8..5004a7d227ec310e55cf9b81430377ff12db37ef 100644
--- a/LayoutTests/media/track/opera/interfaces/TextTrackCueList/getCueById.html
+++ b/LayoutTests/media/track/opera/interfaces/TextTrackCueList/getCueById.html
@@ -9,7 +9,7 @@ test(function(){
var t = video.addTextTrack('subtitles');
document.body.appendChild(video);
var cues = t.cues;
- var c = new TextTrackCue(0, 1, 'text1');
+ var c = new VTTCue(0, 1, 'text1');
t.addCue(c);
assert_equals(cues.getCueById(""), null, '""');
assert_equals(cues.getCueById(null), null, 'null');
@@ -20,7 +20,7 @@ test(function(){
var t = video.addTextTrack('subtitles');
document.body.appendChild(video);
var cues = t.cues;
- var c = new TextTrackCue(0, 1, 'text1');
+ var c = new VTTCue(0, 1, 'text1');
c.id = 'foo';
t.addCue(c);
assert_equals(cues.getCueById(""), null, '""');
@@ -32,7 +32,7 @@ test(function(){
var t = video.addTextTrack('subtitles');
document.body.appendChild(video);
var cues = t.cues;
- var c = new TextTrackCue(0, 1, 'text1');
+ var c = new VTTCue(0, 1, 'text1');
c.id = '1';
t.addCue(c);
assert_equals(cues.getCueById(""), null, '""');
@@ -44,7 +44,7 @@ test(function(){
var t = video.addTextTrack('subtitles');
document.body.appendChild(video);
var cues = t.cues;
- var c = new TextTrackCue(0, 1, 'text1');
+ var c = new VTTCue(0, 1, 'text1');
c.id = 'a\u0000b';
t.addCue(c);
assert_equals(cues.getCueById("a\u0000b"), c, '"a\\u0000b"');

Powered by Google App Engine
This is Rietveld 408576698