Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: LayoutTests/fast/workers/resources/worker-custom-event.js

Issue 946833004: Reland of "Expose events in workers as per latest DOM specification" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/workers/worker-custom-event.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 function onmessage(evt)
2 {
3 var target = self;
4 target.addEventListener('custom-event', function(e) {
5 postMessage("SUCCESS");
6 }, true);
7
8 var event = new Event('custom-event');
9 target.dispatchEvent(event);
10 }
11
12 addEventListener("message", onmessage, true);
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/workers/worker-custom-event.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698