Sign in
webkit
/
WebKit
/
3e01ea2c6e60dac71bbc2366692c12538bc3430c
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
workers
/
Worker-custom-event.any.js
blob: 201e0313b0e968b6b8c2d5d9a990476dab13c04b [
file
] [
log
] [
blame
]
// META: global=!default,worker
async_test
(
t
=>
{
var
target
=
self
;
target
.
addEventListener
(
'custom-event'
,
t
.
step_func_done
());
var
event
=
new
Event
(
'custom-event'
);
target
.
dispatchEvent
(
event
);
},
'Test CustomEvents on workers.'
);