1 Test that hiding volume / mute buttons works as expected.
5 RUN(window.internals.setAllowHiddenVolumeControls(video, true))
6 RUN(window.internals.settings.setPreferHiddenVolumeControls(false))
7 RUN(video.muted = false)
8 EXPECTED (getComputedStyle(muteButton).display != 'none') OK
9 EXPECTED (getComputedStyle(volumeSlider).display != 'none') OK
10 RUN(video.muted = true)
11 EXPECTED (getComputedStyle(muteButton).display != 'none') OK
12 EXPECTED (getComputedStyle(volumeSlider).display != 'none') OK
13 RUN(window.internals.settings.setPreferHiddenVolumeControls(true))
14 RUN(video.muted = false)
15 EXPECTED (getComputedStyle(muteButton).display != 'none') OK
16 EXPECTED (getComputedStyle(volumeSlider).display == 'none') OK
17 RUN(video.muted = true)
18 EXPECTED (getComputedStyle(muteButton).display != 'none') OK
19 EXPECTED (getComputedStyle(volumeSlider).display == 'none') OK