1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/mochitest/test_cocoa_focus.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<html> 1.5 +<head> 1.6 + <title>NPCocoaEventFocusChanged Tests</title> 1.7 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.8 + <script type="application/javascript" src="utils.js"></script> 1.9 +</head> 1.10 + 1.11 +<body onload="runTests()"> 1.12 + <script class="testbody" type="application/javascript"> 1.13 + SimpleTest.waitForExplicitFinish(); 1.14 + setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED); 1.15 + 1.16 + var gOtherWindow; 1.17 + 1.18 + function runTests() { 1.19 + // We have to have two top-level windows in play in order to run these tests. 1.20 + gOtherWindow = window.open("cocoa_focus.html", "", "width=250,height=250"); 1.21 + } 1.22 + 1.23 + function testsFinished() { 1.24 + // Tests have finished running, close the new window and end tests. 1.25 + gOtherWindow.close(); 1.26 + SimpleTest.finish(); 1.27 + } 1.28 + </script> 1.29 +</body> 1.30 +</html>