blob: b95740dc701d018bd79a3c5e5e9d5addc950342c [file] [log] [blame]
<!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>