3 <p>Test worker file does not exist error. Should print two
"PASS" statements followed by
"DONE".
</p>
4 <p>The order of the error events should be onerror and then error event, and this test should be improved to verify that when bug https://bugs.webkit.org/show_bug.cgi?id=
62485 is fixed.
</p>
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone();
13 document
.getElementById("result").innerHTML
+= message
+ "<br>";
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
34 worker
= new Worker("this-file-does-should-not-exist.js");
36 log("FAIL: Exception thrown.");
39 worker
.addEventListener('error', function(error
) {
40 log("PASS: error event.");
44 worker
.onerror = function(error
) {
45 log("PASS: onerror called.");