Source/WebCore:
[WebKit-https.git] / LayoutTests / media / track / track-in-band-metadata-display-order-expected.txt
1
2 RUN(video.src = findMediaFile("video", "../content/test"))
3 EVENT(canplaythrough)
4 RUN(captionTrack = video.addTextTrack("captions"))
5 RUN(captionTrack.mode = "showing")
6 RUN(metadataTrack = video.addTextTrack("metadata"))
7 RUN(metadataTrack.mode = "hidden")
8 RUN(cue = internals.createGenericCue(2, 4, "I am earlier"))
9 RUN(cue.line = 40)
10 RUN(captionTrack.addCue(cue))
11 RUN(cue = internals.createGenericCue(2.5, 4.5, "I am later"))
12 RUN(cue.line = 80)
13 RUN(captionTrack.addCue(cue))
14 RUN(metadataTrack.addCue(new DataCue(2.25, video.duration, "first data cue")))
15 RUN(metadataTrack.addCue(new DataCue(2.25, video.duration, "second data cue")))
16 RUN(video.currentTime = 3)
17 EVENT(seeked)
18 EXPECTED (textTrackDisplayElement(video, "display", 0).textContent == 'I am later') OK
19 EXPECTED (textTrackDisplayElement(video, "display", 1).textContent == 'I am earlier') OK
20 END OF TEST
21