Index: LayoutTests/media/track/track-add-remove-cue-expected.txt |
diff --git a/LayoutTests/media/track/track-add-remove-cue-expected.txt b/LayoutTests/media/track/track-add-remove-cue-expected.txt |
index 0f88ac4a1e4a79f6b56cb8c8ca7edae07fcf1848..448ad8b917877bdb13c13791818794bfab93def8 100644 |
--- a/LayoutTests/media/track/track-add-remove-cue-expected.txt |
+++ b/LayoutTests/media/track/track-add-remove-cue-expected.txt |
@@ -1,4 +1,4 @@ |
-Tests TextTrackCue's addCue and removeCue |
+Tests TextTrack's addCue and removeCue |
*** Test cues loaded from the file. |
@@ -10,7 +10,7 @@ EXPECTED (cues.getCueById('4').startTime == '121') OK |
EXPECTED (cues.getCueById('junk') == 'undefined') OK |
*** Create a new cue, check values |
-RUN(textCue = new TextTrackCue(33, 3.4, 'Sausage?')) |
+RUN(textCue = new VTTCue(33, 3.4, 'Sausage?')) |
EXPECTED (textCue.track == 'null') OK |
EXPECTED (textCue.id == '') OK |
EXPECTED (textCue.startTime == '33') OK |
@@ -32,7 +32,7 @@ EXPECTED (cues[3].startTime == '61') OK |
*** create a new cue and add it to a track created with video.addTextTrack, make sure it is inserted correctly. |
RUN(newTrack = video.addTextTrack("subtitles", "French subtitles", "fr")) |
-RUN(newTrack.addCue(new TextTrackCue(0.0, 1.0, "Test!"))) |
+RUN(newTrack.addCue(new VTTCue(0.0, 1.0, "Test!"))) |
RUN(newCue = newTrack.cues[0]) |
EXPECTED (newCue.track == '[object TextTrack]') OK |
EXPECTED (newCue.id == '') OK |
@@ -47,7 +47,7 @@ EXPECTED (newCue.size == '100') OK |
EXPECTED (newCue.align == 'middle') OK |
*** Create an old-style cue with an id. |
-RUN(oldStyleCue = new TextTrackCue('sausage-cue', 33, 3.4, 'Sausage?')) |
+RUN(oldStyleCue = new VTTCue('sausage-cue', 33, 3.4, 'Sausage?')) |
EXPECTED (oldStyleCue.id == '') OK |
EXPECTED (oldStyleCue.startTime.toString() == 'NaN') OK |
EXPECTED (oldStyleCue.endTime == '33') OK |
@@ -73,7 +73,7 @@ EXPECTED (cues[2].startTime == '121') OK |
TEST(testTrack.track.removeCue(textCue)) THROWS(DOMException.NOT_FOUND_ERR) OK |
*** Add a cue before all the existing cues. |
-RUN(testTrack.track.addCue(new TextTrackCue(0, 31, 'I am first'))) |
+RUN(testTrack.track.addCue(new VTTCue(0, 31, 'I am first'))) |
EXPECTED (cues[0].startTime == '0') OK |
EXPECTED (cues[0].endTime == '31') OK |
EXPECTED (cues[1].startTime == '0') OK |