1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Any copyright is dedicated to the Public Domain.
4 * http://creativecommons.org/licenses/publicdomain/
5 * Contributor: Jason Orendorff <jorendorff@mozilla.com>
8 if (typeof Worker != 'undefined') {
9 JSTest.waitForExplicitFinish();
11 // The script throws new Error("fail") on first message.
12 var w = Worker(workerDir + "worker-error-child.js");
14 w.onerror = function (event) {
15 reportCompare("fail", event.message, "worker-error");
16 JSTest.testFinished();
18 w.postMessage("hello");
20 reportCompare(0, 0, "Test skipped. Shell workers required.");