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];
15 var spanEnteredFullScreen = function(event
) {
16 callback
= spanExitedFullScreen
;
17 testExpected("document.webkitCurrentFullScreenElement", span
);
18 span
.parentNode
.removeChild(span
);
21 var spanExitedFullScreen = function(event
) {
23 testExpected("document.webkitCurrentFullScreenElement", null);
27 callback
= spanEnteredFullScreen
;
28 runWithKeyDown(function(){span
.webkitRequestFullScreen()});