2 <script src=
"full-screen-test.js"></script>
5 var span
= document
.getElementsByTagName("span")[0];
7 var spanEnteredFullScreen = function() {
8 testExpected("document.webkitCurrentFullScreenElement", span
);
9 waitForEventAndEnd(document
, "webkitfullscreenerror");
10 runWithKeyDown(function(){document
.documentElement
.webkitRequestFullScreen()});
13 waitForEvent(document
, "webkitfullscreenchange", spanEnteredFullScreen
);
14 runWithKeyDown(function(){span
.webkitRequestFullScreen()});