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

Side by Side Diff: LayoutTests/http/tests/websocket/workers/resources/no-subprotocol.js

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
OLDNEW
1 var ws = new WebSocket("ws://127.0.0.1:8880/workers/resources/simple"); 1 var ws = new WebSocket("ws://127.0.0.1:8880/workers/resources/simple");
2 2
3 if (ws.protocol === "") 3 if (ws.protocol === "")
4 postMessage("PASS: ws.protocol is equal to \"\""); 4 postMessage("PASS: ws.protocol is equal to \"\"");
5 else 5 else
6 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\ ""); 6 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\ "");
7 7
8 ws.onopen = function() 8 ws.onopen = function()
9 { 9 {
10 postMessage("INFO: Connected"); 10 postMessage("INFO: Connected");
(...skipping 24 matching lines...) Expand all
35 { 35 {
36 postMessage("INFO: Exited onclose handler"); 36 postMessage("INFO: Exited onclose handler");
37 37
38 if (ws.protocol === "") 38 if (ws.protocol === "")
39 postMessage("PASS: ws.protocol is equal to \"\""); 39 postMessage("PASS: ws.protocol is equal to \"\"");
40 else 40 else
41 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\""); 41 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\"");
42 42
43 postMessage("DONE"); 43 postMessage("DONE");
44 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698