diff options
Diffstat (limited to 'dom/workers/test/websocket_https_worker.js')
-rw-r--r-- | dom/workers/test/websocket_https_worker.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/workers/test/websocket_https_worker.js b/dom/workers/test/websocket_https_worker.js new file mode 100644 index 000000000..2592ed6d0 --- /dev/null +++ b/dom/workers/test/websocket_https_worker.js @@ -0,0 +1,9 @@ +onmessage = function() { + var wsCreated = true; + try { + new WebSocket("ws://mochi.test:8888/tests/dom/base/test/file_websocket_hello"); + } catch(e) { + wsCreated = false; + } + postMessage(wsCreated ? "created" : "not created"); +}; |