summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/non-automated/infinite-nested.html
blob: 3ff3edb35348937ad85a7f4fc8f3cbe9f76ef669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!doctype html>
<title>infinite nested workers</title>
<p>There number below should be increasing (ideally never-ending).</p>
<div>0</div>
<script>
var worker = new Worker('infinite-nested.js');
var div = document.getElementsByTagName('div')[0];
var i = 0;
worker.onmessage = function(e) {
  div.textContent = i++;
}
</script>