summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/workers/use-machine-stack.html
blob: ac446985f3da2b5d75b44581091b7a98a88d1ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<body>
<p>Test worker thread stack usage. Should not crash.</p>
<div id=result></div>
<script>
function log(message)
{
    document.getElementById("result").innerHTML += message + "<br>";
}

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

var worker = new Worker('resources/use-machine-stack.js');
worker.onmessage = function(evt) {
    log("PASS (" + evt.data + ")");
    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
</body>
</html>