blob: 3420bba3ed372699bdb02ef7a2a8abcfb3690eb2 [file] [log] [blame]
Tests that the TextTrack "id" attribute is appropriately set.
++ Test default attribute value
EXPECTED (textTrack.id == 'LoremIpsum') OK
EXPECTED (video.textTracks[0].id == 'LoremIpsum') OK
++ Make sure we can look tracks up by id
EXPECTED (video.textTracks.getTrackById('LoremIpsum') == '[object TextTrack]') OK
++ Test that it's readonly
RUN(textTrack.id = 'newvalue';)
EXPECTED (textTrack.id == 'LoremIpsum') OK
END OF TEST