blob: 706420c5e4a34e2efbce6dc2ffc88464c46fe7d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!doctype html>
<title>worker.port.onmessage</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
const worker = new SharedWorker('port-onmessage.js', '');
worker.port.onmessage = t.step_func_done(e => {
assert_true(e.data);
});
}, 'Test SharedWorker.port.onmessage');
</script>
|