repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
workers
/
resources
/
worker-custom-event.js
blob
c6a32262b52fa8e2d495029f347add0501c239ba
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);