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
blame
|
history
|
raw
|
HEAD
Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
serviceworker
/
resources
/
events-worker.js
blob
80a2188677ba5a9cc728158dbf10fd973bbc0f27
1
var
eventsSeen
= [];
2
3
function
handler
(
event
) {
eventsSeen
.
push
(
event
.
type
); }
4
5
[
'activate'
,
'install'
].
forEach
(
function
(
type
) {
6
self
.
addEventListener
(
type
,
handler
);
7
});
8
9
onmessage
=
function
(
e
) {
10
var
message
=
e
.
data
;
11
message
.
port
.
postMessage
({
events
:
eventsSeen
});
12
};