blob: 04493762375b4897914ae4fccaa40247280db2cd [file] [log] [blame]
Tests that showing / hiding video controls uses the display:none property
** Playing the video **
RUN(video.play())
** Move mouse somewhere over the panel **
RUN(eventSender.mouseMoveTo(muteButtonCoordinates[0], muteButtonCoordinates[1]))
** Test that controls are shown when controls attribute is present **
EXPECTED (getComputedStyle(panel).display != 'none') OK
** Move mouse outside the video **
RUN(eventSender.mouseMoveTo(video.offsetLeft, video.offsetTop + 2 * video.offsetHeight))
** The controls should have the display property set to none
EXPECTED (getComputedStyle(panel).display == 'none') OK
** Remove controls attribute**
RUN(video.removeAttribute('controls'))
** Move mouse back over the panel **
RUN(eventSender.mouseMoveTo(muteButtonCoordinates[0], muteButtonCoordinates[1]))
** Video controls should not be shown **
EXPECTED (getComputedStyle(panel).display == 'none') OK
END OF TEST