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

Side by Side Diff: net/data/websocket/websocket_shared_worker.html

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
(Empty)
1 <html>
2 <body>
3 <div id=result></div>
4 <script>
5 function log(message)
6 {
7 document.getElementById("result").innerHTML += message + "<br>";
8 }
9 var worker = new SharedWorker("websocket_worker_simple.js");
10 var protocol = location.protocol.replace('http', 'ws');
11 var url = protocol + '//' + location.host + '/echo-with-no-extension';
12 worker.port.onmessage = function (evt) {
13 log(evt.data);
14 if (evt.data == "DONE") {
15 document.title = "OK";
16 } else {
17 document.title = "FAIL";
18 }
19 };
20 worker.port.postMessage(url);
21
22 </script>
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « net/data/websocket/truncated-headers_wsh.py ('k') | net/data/websocket/websocket_worker_simple.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698