blob: 8758e238d023527ef5d57e3a2bc27af0c60b59ef [file] [log] [blame]
Ensure that a TextTrack won't be collected if it has a custom property.
** Validate.
EXPECTED (video.textTracks.length == '1') OK
EXPECTED (video.textTracks[0].kind == 'captions') OK
** Add a custom property to the track.
RUN(video.textTracks[0].myProperty = 'egg salad!?')
EXPECTED (video.textTracks[0].myProperty == 'egg salad!?') OK
** Force garbage collection.
EXPECTED (video.textTracks[0].cues.length == '4') OK
EXPECTED (video.textTracks[0].myProperty == 'egg salad!?') OK
END OF TEST