3 **Set preferences so subtitles and descriptions load, but captions do not
4 RUN(internals.settings.setShouldDisplayTrackKind('Subtitles', true))
5 EXPECTED (internals.settings.shouldDisplayTrackKind('Subtitles') == 'true') OK
6 RUN(internals.settings.setShouldDisplayTrackKind('Captions', false))
7 EXPECTED (internals.settings.shouldDisplayTrackKind('Captions') == 'false') OK
8 RUN(internals.settings.setShouldDisplayTrackKind('TextDescriptions', true))
9 EXPECTED (internals.settings.shouldDisplayTrackKind('TextDescriptions') == 'true') OK
10
11 **Create track elements dynamically so they aren't processed by the media element until after preferences have been configured.
12 - creating 'subtitles' track.
13 - creating 'captions' track.
14 - creating 'descriptions' track.
15
16 EVENT(load)
17 EXPECTED (track.readyState == '2') OK
18 EXPECTED (track.kind != 'captions') OK
19
20 EVENT(load)
21 EXPECTED (track.readyState == '2') OK
22 EXPECTED (track.kind != 'captions') OK
23
24 END OF TEST
25