blob: 327a484fcb72301748f8fc02e65902af2cb2e92b [file] [log] [blame]
Test that style to all cues is applied correctly.
EVENT(canplaythrough)
** Check initial in-band track states
RUN(inbandTrack1 = video.textTracks[0])
EXPECTED (video.textTracks.length == '1') OK
EXPECTED (inbandTrack1.language == 'en') OK
EXPECTED (inbandTrack1.kind == 'captions') OK
RUN(inbandTrack1.mode = 'showing')
EVENT(change)
RUN(video.play())
EVENT(cuechange)
** Test current cue colors
EXPECTED (cueNode.style.color == 'rgb(255, 255, 255)') OK
EXPECTED (cueNode.style.backgroundColor == 'rgb(0, 0, 0)') OK
END OF TEST