Bug 1256936 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/test-bug-603750-websocket.js. r=linclark

This commit is contained in:
Fabien Udriot 2016-06-08 09:07:00 +02:00
parent e8c5fb94d7
commit 98d71fb40f

View File

@ -3,14 +3,16 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
window.addEventListener("load", function () {
var ws1 = new WebSocket("ws://0.0.0.0:81");
let ws1 = new WebSocket("ws://0.0.0.0:81");
ws1.onopen = function () {
ws1.send("test 1");
ws1.close();
};
var ws2 = new window.frames[0].WebSocket("ws://0.0.0.0:82");
let ws2 = new window.frames[0].WebSocket("ws://0.0.0.0:82");
ws2.onopen = function () {
ws2.send("test 2");
ws2.close();