summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/SharedWorker-MessageEvent-source.any.js
blob: e47fd0653550168b514f86eda7347cd722718591 (plain)
1
2
3
4
5
6
// META: global=sharedworker
const t = async_test("Make sure that MessageEvent.source is properly set in connect event.");
onconnect = t.step_func_done((event) => {
  assert_equals(Object.getPrototypeOf(event), MessageEvent.prototype);
  assert_equals(event.source, event.ports[0]);
});