Revert "WebSocket constructor should not panic"

This reverts commit 877c369e0b.
This commit is contained in:
Ms2ger 2015-06-12 09:40:57 +02:00
parent c8f322b267
commit 230c4201f3
25 changed files with 41 additions and 557 deletions

View file

@ -539,12 +539,6 @@
"url": "/_mozilla/mozilla/union.html"
}
],
"mozilla/websocket_connection_fail.html": [
{
"path": "mozilla/websocket_connection_fail.html",
"url": "/_mozilla/mozilla/websocket_connection_fail.html"
}
],
"mozilla/window.html": [
{
"path": "mozilla/window.html",

View file

@ -1,19 +0,0 @@
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
async_test(function() {
var onclose = 0;
var ws = new WebSocket("ws://wrong_url");
ws.onclose = this.step_func_done(function(ev) {
onclose++;
assert_equals(onclose, 1);
});
});
</script>
</body>
</html>