Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / fullscreen / empty-anonymous-block-continuation-crash.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 WebKit Bug 89386 - Crash in RenderInline::willBeDestroyed.<br />
5 Test passes if it does not crash.
6 <summary>
7 <i>
8 <span id="test">
9 <div></div>
10 </span>
11 </i>
12 </summary>
13 <script>
14 if (window.testRunner)
15     testRunner.dumpAsText();
16
17 if ("webkitRequestFullScreen" in Element.prototype) {
18         var span = document.getElementById('test');
19         var fullscreenChangeEvent = function(event) {
20             if (document.webkitIsFullScreen)
21                 document.webkitCancelFullScreen();
22         };
23
24         document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent);
25         document.addEventListener('keydown', function () {
26             span.webkitRequestFullScreen();
27     });
28
29     eventSender.keyDown('a');
30 }
31 </script>
32 </body>
33 </html>