Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / set-event-to-null.html
blobaa2e3c56fe790c9752f8a996a53e21d331f48e2f
1 <html>
2 <head>
3 <script language="javascript">
4 function log(s)
6 document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
9 function mouseOver(event)
11 if (event === null) {
12 log("FAIL: After MouseEvent, event is null");
13 } else {
14 log("PASS: After MouseEvent, event is valid");
18 function runTest() {
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();
29 </script>
30 </head>
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>
36 <script>
37 if (!(event === undefined)) {
38 log("FAIL: event does not begin as undefined");
40 event = null;
41 if (!(event === null)) {
42 log("FAIL: event was not successfully set to null");
44 </script>
45 </body>
46 </html>