Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-controls-toggling-expected.txt
blobec950f7e4bc4743068df8b01fcc2cc01d8ff13f0
1 Tests that showing / hiding video controls uses the sets the display:none property
3 ** Playing the video **
4 RUN(video.play())
6 ** Move mouse somewhere over the panel **
7 RUN(eventSender.mouseMoveTo(muteButtonCoordinates[0], muteButtonCoordinates[1]))
9 ** Test that controls are shown when controls attribute is present **
10 EXPECTED (panel.style['display'] != 'none') OK
12 ** Move mouse outside the video **
13 RUN(eventSender.mouseMoveTo(video.offsetLeft, video.offsetTop + 2 * video.offsetHeight))
15 ** The controls should have the display property set to none
16 EXPECTED (panel.style['display'] == 'none') OK
18 ** Remove controls attribute**
19 RUN(video.removeAttribute('controls'))
21 ** Move mouse back over the panel **
22 RUN(eventSender.mouseMoveTo(muteButtonCoordinates[0], muteButtonCoordinates[1]))
24 ** Video controls should not be shown **
25 EXPECTED (panel.style['display'] == 'none') OK
27 END OF TEST