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