1 Tests that showing / hiding video controls uses the sets the display:none property
3 ** Playing the video **
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