2010-04-25 13:58:03 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NPCocoaEventFocusChanged Tests</title>
|
2010-08-24 10:29:34 -07:00
|
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
2010-04-25 13:58:03 -07:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTests()">
|
|
|
|
<script class="testbody" type="application/javascript">
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
|
|
|
|
var gOtherWindow;
|
|
|
|
|
|
|
|
function runTests() {
|
|
|
|
// We have to have two top-level windows in play in order to run these tests.
|
2010-11-15 13:23:51 -08:00
|
|
|
gOtherWindow = window.open("cocoa_focus.html", "", "width=250,height=250");
|
2010-04-25 13:58:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
function testsFinished() {
|
|
|
|
// Tests have finished running, close the new window and end tests.
|
|
|
|
gOtherWindow.close();
|
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|