layout/generic/test/test_plugin_focus.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/test/test_plugin_focus.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<html title="Test plugin focus control">
     1.5 +<head>
     1.6 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.7 +  <script type="text/javascript" src="enableTestPlugin.js"></script>
     1.8 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     1.9 +</head>
    1.10 +<body>
    1.11 +
    1.12 +<script class="testbody" type="application/javascript">
    1.13 +
    1.14 +var child;
    1.15 +function childDone() {
    1.16 +  child.close();
    1.17 +  // This test has a history of focus issues, but waiting for focus to return
    1.18 +  // from the child window instead of attempting to reclaim it after finish
    1.19 +  // seems to prevent some kind of race on win8 (Bug 874843)
    1.20 +  SimpleTest.waitForFocus(SimpleTest.finish, window);
    1.21 +}
    1.22 +
    1.23 +SimpleTest.waitForExplicitFinish();
    1.24 +child = window.open("plugin_focus_helper.html", "", "width=620,height=320");
    1.25 +</script>
    1.26 +
    1.27 +</body>
    1.28 +</html>

mercurial