<body>
<p>Test EventTarget methods on workers. Should print "SUCCESS".</p>
<div id=result></div>
<script src="../../resources/gc.js"></script>
<script>
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var worker = new Worker('resources/worker-event-listener.js');
worker.postMessage("");
worker.onmessage = function(evt) {
log(evt.data);
if (window.testRunner)
testRunner.notifyDone();
}
gc();
</script>
</body>
</html>