10 testRunner
.waitUntilDone();
13 var fullscreenChanged = function(event
)
18 document
.addEventListener('webkitfullscreenchange', fullscreenChanged
);
20 document
.body
.offsetTop
;
21 var span
= document
.getElementById('c2');
22 var div
= span
.parentNode
;
24 var spanEnteredFullScreen = function(event
) {
25 setTimeout(function () {
26 span
.appendChild(document
.createElement('div'));
27 callback = function() {
28 if (window
.testRunner
)
29 testRunner
.notifyDone();
31 document
.webkitCancelFullScreen();
35 callback
= spanEnteredFullScreen
;
37 document
.addEventListener('keydown', function () {
38 span
.webkitRequestFullScreen();
40 if (window
.eventSender
)
41 eventSender
.keyDown('a');