4 <div>a
<span>b
<div>c
</div>d
</span>e
</div>
6 // This test turns fullscreen on and off quickly,
7 // then see if it renderes just like as before.
9 testRunner
.waitUntilDone();
10 document
.body
.offsetTop
;
11 var span
= document
.getElementsByTagName('span')[0];
13 var fullscreenChangeEvent = function(event
) {
14 if (document
.webkitIsFullScreen
) {
15 setTimeout(function () {
16 document
.webkitCancelFullScreen();
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
24 document
.addEventListener('webkitfullscreenchange', fullscreenChangeEvent
);
26 document
.addEventListener('keydown', function () {
27 span
.webkitRequestFullScreen();
29 if (window
.eventSender
)
30 eventSender
.keyDown('a');