2 <script src=
"full-screen-test.js"></script>
3 <div><span></span></div>
6 var fullscreenChanged = function(event
)
11 waitForEvent(document
, 'webkitfullscreenchange', fullscreenChanged
);
13 var span
= document
.getElementsByTagName('span')[0];
14 var div
= span
.parentNode
;
16 var spanEnteredFullScreen = function(event
) {
17 callback
= spanExitedFullScreen
;
18 testExpected("document.webkitCurrentFullScreenElement", span
);
19 document
.body
.removeChild(div
);
22 var spanExitedFullScreen = function(event
) {
24 testExpected("document.webkitCurrentFullScreenElement", null);
28 callback
= spanEnteredFullScreen
;
29 runWithKeyDown(function(){span
.webkitRequestFullScreen()});