3 <p>Test worker invalid url exceptions. Should print two
"PASS" statements.
</p>
7 testRunner
.dumpAsText();
11 document
.getElementById("result").innerHTML
+= message
+ "<br>";
15 new Worker("http://example.com/worker.js");
16 log("FAIL: No exception thrown when accessing a worker from another domain.");
19 log("PASS: Got security error.");
21 log("FAIL: Got error code " + error
.code
+ ". Expected error code 18.");
25 new Worker("http://invalid:123$");
26 log("FAIL: No exception throw when accessing an invalid url.");
29 log("PASS: Got syntax error.");
31 log("FAIL: Got error code " + error
.code
+ ". Expected error code 12.");