summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/semantics/multiple-workers/003.html
blob: f6e03c75f782635030c3387c76d46d32b89602b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<title>creating 3 nested dedicated workers</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function() {
  var w1 = new Worker('003.js#1');
  w1.onmessage = this.step_func(function(e) {
    assert_equals(e.data, '123');
    this.done();
  });
  w1.onerror = this.unreached_func("error");
});
</script>