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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/workers/resources/close-in-worker.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/close-in-worker.js
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/close-in-worker.js b/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/close-in-worker.js
deleted file mode 100644
index 25604ef138e025dec7292b7a59c7d60022b789f5..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/close-in-worker.js
+++ /dev/null
@@ -1,36 +0,0 @@
-if (self.postMessage)
- runTests();
-else
- onconnect = handleConnect;
-
-function handleConnect(event)
-{
- // For shared workers, create a faux postMessage() API to send message back to the parent page.
- self.postMessage = function (message) { event.ports[0].postMessage(message); };
- runTests();
-};
-
-function runTests()
-{
- var ws;
- try {
- postMessage("PASS: worker: init");
- if ('WebSocket' in self)
- postMessage("PASS: worker: WebSocket exists");
- else
- postMessage("FAIL: worker: no WebSocket");
- ws = new WebSocket('ws://localhost:8880/workers/resources/echo');
- ws.onopen = function() {
- postMessage("PASS: worker: Connected.");
- ws.close();
- };
- ws.onclose = function() {
- postMessage("PASS: worker: Closed.");
- postMessage("DONE");
- };
- } catch (e) {
- postMessage("FAIL: worker: Unexpected exception: " + e);
- } finally {
- postMessage("PASS: worker: successfullyParsed:" + ws);
- }
-};

Powered by Google App Engine
This is Rietveld 408576698