Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / resources / worker-custom-event.js
blobc6a32262b52fa8e2d495029f347add0501c239ba
1 function onmessage(evt)
3     var target = self;
4     target.addEventListener('custom-event', function(e) {
5         postMessage("SUCCESS");
6     }, true);
8     var event = new Event('custom-event');
9     target.dispatchEvent(event);
12 addEventListener("message", onmessage, true);