Improve serialization logic
[WebKit-https.git] / LayoutTests / fast / events / display-none-on-focus-crash.html
1 <!DOCTYPE html>
2 <head>
3 <style>
4 .c3 { padding-top: 200px; }
5 .c3:focus { display: none; }
6 </style>
7 </head>
8 <body></body>
9 <script>
10 if (window.testRunner)
11     testRunner.dumpAsText();
12 var iframe1;
13 function boom() {
14     iframe1 = document.createElement('iframe');
15     document.documentElement.appendChild(iframe1);
16     document.documentElement.appendChild(document.createElement('li'));
17     document.documentElement.appendChild(document.createElement('iframe'));
18     iframe1.setAttribute('class', 'c3');
19     eventSender.mouseMoveTo(1000, 100);
20     eventSender.mouseDown();
21     eventSender.mouseUp();
22     eventSender.mouseDown();
23     eventSender.mouseUp();
24     eventSender.mouseMoveTo(100, 100);
25     eventSender.mouseDown();
26     document.body.innerHTML = 'Test passes if it does not crash.'
27 }
28 window.onload = boom;
29 </script>