1 <p>This is a test for https://bugs.webkit.org/show_bug.cgi?id=
21063 (NULL pointer crash in dispatchEvent(null)). It passes if it does not crash.
</p>
4 testRunner
.dumpAsText();
6 // FIXME: this should also test WorkerContext and MessagePort.
7 var eventTargets
= [new XMLHttpRequest
, (new XMLHttpRequest
).upload
, window
.applicationCache
, new Worker("about:blank"), document
.body
];
9 for (var i
= 0; i
< eventTargets
.length
; ++i
) {
10 eventTarget
= eventTargets
[i
];
12 eventTarget
.dispatchEvent(null);
17 eventTarget
.dispatchEvent(undefined);
22 eventTarget
.dispatchEvent("string");
27 eventTarget
.dispatchEvent(0);
32 eventTarget
.dispatchEvent({});