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

Side by Side Diff: LayoutTests/http/tests/websocket/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 unified diff | Download patch
OLDNEW
1 if (self.postMessage) 1 if (self.postMessage)
2 runTests(); 2 runTests();
3 else 3 else
4 onconnect = handleConnect; 4 onconnect = handleConnect;
5 5
6 function handleConnect(event) 6 function handleConnect(event)
7 { 7 {
8 // For shared workers, create a faux postMessage() API to send message back to the parent page. 8 // For shared workers, create a faux postMessage() API to send message back to the parent page.
9 self.postMessage = function (message) { event.ports[0].postMessage(message); }; 9 self.postMessage = function (message) { event.ports[0].postMessage(message); };
10 runTests(); 10 runTests();
(...skipping 16 matching lines...) Expand all
27 ws.onclose = function() { 27 ws.onclose = function() {
28 postMessage("PASS: worker: Closed."); 28 postMessage("PASS: worker: Closed.");
29 postMessage("DONE"); 29 postMessage("DONE");
30 }; 30 };
31 } catch (e) { 31 } catch (e) {
32 postMessage("FAIL: worker: Unexpected exception: " + e); 32 postMessage("FAIL: worker: Unexpected exception: " + e);
33 } finally { 33 } finally {
34 postMessage("PASS: worker: successfullyParsed:" + ws); 34 postMessage("PASS: worker: successfullyParsed:" + ws);
35 } 35 }
36 }; 36 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698