| <script language="javascript">
|
| document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
|
| function mouseOver(event)
|
| log("FAIL: After MouseEvent, event is null");
|
| log("PASS: After MouseEvent, event is valid");
|
| var target = document.getElementById("target");
|
| var newEvent = document.createEvent("MouseEvent");
|
| newEvent.initMouseEvent("mouseover", false, false, window, 0, 10, 10, 10, 10, false, false, false, false, 0, target);
|
| target.dispatchEvent(newEvent);
|
| <body onLoad="runTest();">
|
| <div id="target" onMouseOver="mouseOver(event);">This test will trigger a mouse over of this element.
|
| We will then check to see if event was properly set (i.e., not null).
|
| This is in response to a v8 bug that can break window.event exposure if the client tries to manually set event.</div>
|
| if (!(event === undefined)) {
|
| log("FAIL: event does not begin as undefined");
|
| log("FAIL: event was not successfully set to null");
|