WebCore:
[WebKit-https.git] / LayoutTests / http / tests / xmlhttprequest / workers / resources / xmlhttprequest-file-not-found.js
1 function log(message)
2 {
3     postMessage("log " + message);
4 }
5
6 function done()
7 {
8     postMessage("DONE");
9 }
10
11 req = new XMLHttpRequest;
12 try {
13     req.open("GET", "missing-file", false);
14     req.send();
15 } catch (e) {
16     log("Exception received.");
17 }
18 done();