|
1 <html title="Test plugin focus control"> |
|
2 <head> |
|
3 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
4 <script type="text/javascript" src="enableTestPlugin.js"></script> |
|
5 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
6 </head> |
|
7 <body> |
|
8 |
|
9 <script class="testbody" type="application/javascript"> |
|
10 |
|
11 var child; |
|
12 function childDone() { |
|
13 child.close(); |
|
14 // This test has a history of focus issues, but waiting for focus to return |
|
15 // from the child window instead of attempting to reclaim it after finish |
|
16 // seems to prevent some kind of race on win8 (Bug 874843) |
|
17 SimpleTest.waitForFocus(SimpleTest.finish, window); |
|
18 } |
|
19 |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 child = window.open("plugin_focus_helper.html", "", "width=620,height=320"); |
|
22 </script> |
|
23 |
|
24 </body> |
|
25 </html> |