summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/Worker-custom-event.any.js
blob: d7e983aaddc59dcd05eeadb75ea5ac30cf0a6e28 (plain)
1
2
3
4
5
6
7
8
// META: global=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.');