OLD | NEW |
---|---|
(Empty) | |
1 Ensure that a TextTrack won't be collected if it has a custom property. | |
2 | |
3 ** Validate. | |
4 EXPECTED (video.textTracks.length == '1') OK | |
5 EXPECTED (video.textTracks[0].kind == 'captions') OK | |
6 | |
7 ** Add a custom property to the track. | |
8 RUN(video.textTracks[0].myProperty = 'egg salad!?') | |
9 EXPECTED (video.textTracks[0].myProperty == 'egg salad!?') OK | |
10 | |
11 ** Force garbage collection. | |
12 EXPECTED (video.textTracks[0].cues.length == '4') OK | |
13 EXPECTED (video.textTracks[0].myProperty == 'egg salad!?') OK | |
14 | |
15 END OF TEST | |
16 | |
OLD | NEW |