Index: LayoutTests/media/track/track-add-remove-cue-expected.txt |
=================================================================== |
--- LayoutTests/media/track/track-add-remove-cue-expected.txt (revision 134272) |
+++ LayoutTests/media/track/track-add-remove-cue-expected.txt (working copy) |
@@ -71,5 +71,13 @@ |
*** Try to remove the cue again. |
TEST(testTrack.track.removeCue(textCue)) THROWS(DOMException.INVALID_STATE_ERR) OK |
+ |
+*** Add a cue before all the existing cues. |
+RUN(testTrack.track.addCue(new TextTrackCue(0, 31, 'I am first'))) |
+EXPECTED (cues[0].startTime == '0') OK |
+EXPECTED (cues[0].endTime == '31') OK |
+EXPECTED (cues[1].startTime == '0') OK |
+EXPECTED (cues[1].endTime == '30.5') OK |
+EXPECTED (cues[2].startTime == '31') OK |
END OF TEST |