| OLD | NEW |
| 1 function runTests() | 1 function runTests() |
| 2 { | 2 { |
| 3 try { | 3 try { |
| 4 var url = 'ws://localhost:8880/workers/resources/simple'; | 4 var url = 'ws://localhost:8880/workers/resources/simple'; |
| 5 var ws = new WebSocket(url); | 5 var ws = new WebSocket(url); |
| 6 | 6 |
| 7 ws.onopen = function() | 7 ws.onopen = function() |
| 8 { | 8 { |
| 9 postMessage('PASS: worker: Connected.'); | 9 postMessage('PASS: worker: Connected.'); |
| 10 }; | 10 }; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 postMessage('DONE'); | 21 postMessage('DONE'); |
| 22 }; | 22 }; |
| 23 } catch (e) { | 23 } catch (e) { |
| 24 postMessage('FAIL: worker: Unexpected exception: ' + e); | 24 postMessage('FAIL: worker: Unexpected exception: ' + e); |
| 25 } finally { | 25 } finally { |
| 26 postMessage('PASS: worker: Parsed successfully.'); | 26 postMessage('PASS: worker: Parsed successfully.'); |
| 27 } | 27 } |
| 28 } | 28 } |
| 29 | 29 |
| 30 runTests(); | 30 runTests(); |
| OLD | NEW |