[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / media-captions-no-controls-expected.txt
1
2 Tests that adding a text track does not make controls visible.
3
4 EVENT(canplaythrough)
5
6 ** Initial state: no text tracks, controls should not be visible **
7 EXPECTED (video.textTracks.length == '0') OK
8 EXPECTED (video.controls == 'false') OK
9 EXPECTED (internals.shadowRoot(video) == 'null') OK
10
11 ** Add a text track, controls should not become visible **
12 RUN(video.addTextTrack('captions'))
13 EXPECTED (video.textTracks.length == '1') OK
14 EXPECTED (video.controls == 'false') OK
15 EXPECTED (internals.shadowRoot(video) == 'null') OK
16
17 ** Enable controls **
18 RUN(video.setAttribute('controls','controls'))
19 EXPECTED (video.textTracks.length == '1') OK
20 EXPECTED (video.controls == 'true') OK
21 EXPECTED (internals.shadowRoot(video) != 'null') OK
22 EXPECTED (controlsElement.style['display'] != 'none') OK
23
24 END OF TEST
25