Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-controls-hidden-audio-expected.txt
blob53b2d955c09eaaeb88558456204691fdd1a758df
1 Test that hiding volume / mute buttons works as expected.
3 RUN(video.load())
4 EVENT(canplaythrough)
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
20 END OF TEST