summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/constructors/SharedWorker/Infinity-arguments.html
blob: b38e55dc6bae2a64476676bcce9ace2e1a15dc8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<title>Infinity as arguments</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
  const worker = new SharedWorker(Infinity, Infinity);
  worker.port.onmessage = t.step_func_done(e => {
    assert_equals(e.data[0], 'Infinity', 'first arg (script name)');
    assert_equals(e.data[1], 'Infinity', 'second arg (worker name)');
  });
}, 'Test constructing a shared worker with Infinity');
</script>