https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 53acfdab3796563ea320347c6da26df3f1d9a7d3 authored by Mike West on 19 June 2017, 09:19:34 UTC
fixup merge with ToT + cleanup navigation tests.
Tip revision: 53acfda
infinite-sibling.html
<!doctype html>
<title>infinite sibling workers</title>
<p>The number below should be increasing (ideally never-ending).</p>
<div>0</div>
<script>
var worker = new Worker('infinite-sibling.js');
var div = document.getElementsByTagName('div')[0];
var i = 0;
worker.onmessage = function(e) {
  div.textContent = i + e.data;
}
</script>
back to top