Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: LayoutTests/http/tests/websocket/workers/resources/close-before-open.js

Issue 211093005: [WebSocket] Add close-before-open layout test for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed #2 Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/http/tests/websocket/workers/close-before-open-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 var ws = new WebSocket("ws://127.0.0.1:8880/echo");
2 var errorCalled = false;
3 ws.onopen = function () {
4 postMessage("FAIL: Unexpected open event on ws");
5 };
6 ws.onmessage = function () {
7 postMessage("FAIL: Unexpected message event on ws");
8 };
9 ws.onerror = function () {
10 errorCalled = true;
11 };
12 ws.onclose = function () {
13 if (errorCalled)
14 postMessage("DONE");
15 else
16 postMessage("FAIL: Error event was not dispatched");
17 };
18 ws.close();
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/websocket/workers/close-before-open-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698