mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Revert "WebSocket constructor should not panic"
This reverts commit 877c369e0b
.
This commit is contained in:
parent
c8f322b267
commit
230c4201f3
25 changed files with 41 additions and 557 deletions
|
@ -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",
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue