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