| <p>Test worker invalid url exceptions. Should print two "PASS" statements.</p> |
| document.getElementById("result").innerHTML += message + "<br>"; |
| new Worker("http://example.com/worker.js"); |
| log("FAIL: No exception thrown when accessing a worker from another domain."); |
| log("PASS: Got security error."); |
| log("FAIL: Got error code " + error.code + ". Expected error code 18."); |
| log("FAIL: No exception throw when accessing an invalid url."); |
| log("PASS: Got syntax error."); |
| log("FAIL: Got error code " + error.code + ". Expected error code 12."); |