3
4
5
6 *** Creating <video> element with "content/counting.mp4" not in the document, should support fullscreen because it has video
7 EVENT(loadstart)
8 EVENT(durationchange)
9 EVENT(canplaythrough)
10 * event handler NOT triggered by a user gesture
11 EXPECTED (mediaElement.webkitSupportsFullscreen == 'true') OK
12 EXPECTED (mediaElement.webkitDisplayingFullscreen == 'false') OK
13 TEST(mediaElement.webkitEnterFullScreen()) THROWS(DOMException.INVALID_STATE_ERR) OK
14 * clicking on button
15 EVENT(mouseup)
16 * event handler triggered by user gesture
17 RUN(mediaElement.webkitEnterFullScreen())
18 EVENT(webkitbeginfullscreen)
19 EXPECTED (mediaElement.webkitDisplayingFullscreen == 'true') OK
20 RUN(mediaElement.webkitExitFullScreen())
21 EVENT(webkitendfullscreen)
22
23 *** Creating <audio> element with "content/silence.mpg" not in the document, should NOT support fullscreen
24 EVENT(loadstart)
25 EVENT(durationchange)
26 EVENT(canplaythrough)
27 * event handler NOT triggered by a user gesture
28 EXPECTED (mediaElement.webkitSupportsFullscreen == 'undefined') OK
29 EXPECTED (mediaElement.webkitDisplayingFullscreen == 'undefined') OK
30 * clicking on button
31 EVENT(mouseup)
32 * event handler triggered by user gesture
33
34 END OF TEST
35