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

Side by Side Diff: net/data/websocket/split_packet_check.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 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>test ws split packet</title>
5 <script type="text/javascript">
6 var protocol = location.protocol.replace('http', 'ws');
7 var url = protocol + '//' + location.host + '/close-with-split-packet';
8
9 // Do connection test.
10 var ws = new WebSocket(url);
11
12 ws.onopen = function()
13 {
14 // Close WebSocket connection once it is established.
15 ws.close();
16 }
17
18 ws.onclose = function(event)
19 {
20 // Check wasClean, then set proper title.
21 if (event.wasClean && event.code === 3004 && event.reason === 'split test')
22 document.title = 'PASS';
23 else
24 document.title = 'FAIL';
25 }
26
27 </script>
28 </head>
29 </html>
OLDNEW
« no previous file with comments | « net/data/websocket/proxied_request_check.html ('k') | net/data/websocket/truncated-headers_wsh.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698