<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.waitUntilDone(); | |
} | |
</script> | |
</head> | |
<body> | |
<script> | |
var worker = new Worker("resources/nph-worker-fail.pl"); | |
worker.onmessage = () => { alertAndDone("FAIL"); } | |
worker.onerror = () => { alertAndDone("PASS"); } | |
function alertAndDone(message) | |
{ | |
alert(message); | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
} | |
</script> | |
</body> | |
</html> |