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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/websocket/tests/hybi/workers/resources/no-subprotocol.js
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/no-subprotocol.js b/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/no-subprotocol.js
deleted file mode 100644
index 2a5d99abfe59b3e9d28ed27e83b1d1070740d003..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/no-subprotocol.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var ws = new WebSocket("ws://127.0.0.1:8880/workers/resources/simple");
-
-if (ws.protocol === "")
- postMessage("PASS: ws.protocol is equal to \"\"");
-else
- postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\"");
-
-ws.onopen = function()
-{
- postMessage("INFO: Connected");
- if (ws.protocol === "")
- postMessage("PASS: ws.protocol is equal to \"\"");
- else
- postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\"");
-};
-
-ws.onclose = function(closeEvent)
-{
- postMessage("INFO: Closed");
-
- if (ws.protocol === "")
- postMessage("PASS: ws.protocol is equal to \"\"");
- else
- postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\"");
-
- if (closeEvent.wasClean === true)
- postMessage("PASS: closeEvent.wasClean is true");
- else
- postMessage("FAIL: closeEvent.wasClean should be true but was \"" + closeEvent.wasClean + "\"");
-
- setTimeout("checkAfterOnClose()", 0);
-};
-
-function checkAfterOnClose()
-{
- postMessage("INFO: Exited onclose handler");
-
- if (ws.protocol === "")
- postMessage("PASS: ws.protocol is equal to \"\"");
- else
- postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\"");
-
- postMessage("DONE");
-}

Powered by Google App Engine
This is Rietveld 408576698