Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / constrained_files / window_blur_test.html
blob7332e44332fceb98dd22240af2bfd27f1ef7f798
1 <html>
2 <head>
3 <title>Blur test</title>
4 <script>
5 function buildPopupWindow() {
6 var w = window.open("", 'popupwindow','width=300,height=300,toolbar=no,' +
7 'menubar=no,scrollbars=np,resizable=yes,' +
8 'scrollbars=np,location=no,directories=no,status=no')
9 var d = w.document;
10 d.open();
11 d.write("<title>Shouldn't have onblur called</title><body " +
12 "onblur='self.close()'><center>Closed?</center></body>")
13 d.close();
15 </script>
16 </head>
17 <body onClick="buildPopupWindow();">
18 <h1>Blur test</h1>
19 <p>This tests that a created popup window doesn't immediately receive a blur
20 event because of bad window handling code. For this test to pass, the onblur=""
21 handler in the popup must not be called and the window count must remain at two
22 for a few seconds.</p>
23 </body>
24 </html>