Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/SharedWorker-MessageEvent-source.any.sharedworker.html - WPT Dashboard Interop Dashboard
// 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]);
});