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

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

Issue 11377110: Merge 133610 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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
OLDNEW
1 Tests TextTrackCue's addCue and removeCue 1 Tests TextTrackCue's addCue and removeCue
2 2
3 3
4 *** Test cues loaded from the file. 4 *** Test cues loaded from the file.
5 EXPECTED (cues.length == '4') OK 5 EXPECTED (cues.length == '4') OK
6 EXPECTED (cues.getCueById('1').startTime == '0') OK 6 EXPECTED (cues.getCueById('1').startTime == '0') OK
7 EXPECTED (cues[1].startTime == '31') OK 7 EXPECTED (cues[1].startTime == '31') OK
8 EXPECTED (cues[2].startTime == '61') OK 8 EXPECTED (cues[2].startTime == '61') OK
9 EXPECTED (cues.getCueById('4').startTime == '121') OK 9 EXPECTED (cues.getCueById('4').startTime == '121') OK
10 EXPECTED (cues.getCueById('junk') == 'undefined') OK 10 EXPECTED (cues.getCueById('junk') == 'undefined') OK
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 *** Remove a cue added from the WebVTT file. 65 *** Remove a cue added from the WebVTT file.
66 RUN(textCue = cues[2]) 66 RUN(textCue = cues[2])
67 RUN(testTrack.track.removeCue(textCue)) 67 RUN(testTrack.track.removeCue(textCue))
68 EXPECTED (textCue.track == 'null') OK 68 EXPECTED (textCue.track == 'null') OK
69 EXPECTED (cues[1].startTime == '31') OK 69 EXPECTED (cues[1].startTime == '31') OK
70 EXPECTED (cues[2].startTime == '121') OK 70 EXPECTED (cues[2].startTime == '121') OK
71 71
72 *** Try to remove the cue again. 72 *** Try to remove the cue again.
73 TEST(testTrack.track.removeCue(textCue)) THROWS(DOMException.INVALID_STATE_ERR) OK 73 TEST(testTrack.track.removeCue(textCue)) THROWS(DOMException.INVALID_STATE_ERR) OK
74
75 *** Add a cue before all the existing cues.
76 RUN(testTrack.track.addCue(new TextTrackCue(0, 31, 'I am first')))
77 EXPECTED (cues[0].startTime == '0') OK
78 EXPECTED (cues[0].endTime == '31') OK
79 EXPECTED (cues[1].startTime == '0') OK
80 EXPECTED (cues[1].endTime == '30.5') OK
81 EXPECTED (cues[2].startTime == '31') OK
74 END OF TEST 82 END OF TEST
75 83
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-add-remove-cue.html ('k') | Source/WebCore/html/track/TextTrackCueList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698