Chromium Code Reviews| Index: LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction.js |
| diff --git a/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction.js b/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a6632ed8b6621fc84bdb5ad5f0da953da7e5442e |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction.js |
| @@ -0,0 +1,10 @@ |
| +(function () { |
| + var ws = null; |
| + try { |
| + ws = new WebSocket("ws://127.0.0.1:8880/echo"); |
| + } catch (e) { |
| + postMessage("DONE"); |
| + return; |
| + } |
| + postMessage("FAIL: No exception was thrown") |
| +})(); |