Fonts, fullscreen, gamepad, and html5lib tests should use testRunner instead of layou...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-render-inline.html
1 <style>
2 body {
3     font-family: ahem;
4     -webkit-font-smoothing: none;
5 }
6 </style>
7 <summary>a<span>b<div>c</div>d</span>e</summary>
8 <script>
9     if ("webkitRequestFullScreen" in Element.prototype) {
10         if (window.testRunner)
11             testRunner.waitUntilDone();
12         document.body.offsetTop;
13         var span = document.getElementsByTagName('span')[0];
14
15         var fullscreenChangeEvent = function(event) {
16             if (document.webkitIsFullScreen) {
17                 setTimeout(function () {
18                     document.webkitCancelFullScreen();
19                 }, 0)
20             } else {
21                 if (window.testRunner)
22                     testRunner.notifyDone();
23             }
24         };
25
26         document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent);
27
28         document.addEventListener('keydown', function () {
29             span.webkitRequestFullScreen();
30         });
31         if (window.eventSender)
32             eventSender.keyDown('a');
33     }
34 </script>