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

Side by Side Diff: LayoutTests/http/tests/websocket/receive-pong-with-payload.html

Issue 788923007: Layout test to verify pong message from the server. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply changes suggested by tyoshino. Created 5 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/receive-pong-with-payload-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 description("Test whether WebSocket correctly ignores a pong message with a payl oad");
5
6 window.jsTestIsAsync = true;
7
8 var url = "ws://localhost:8880/receive-pong-with-payload";
9 var ws = new WebSocket(url);
10
11 var message;
12 ws.onmessage = function(event)
13 {
14 message = event.data;
15 shouldBeEqualToString("message", "sent pong");
16 ws.close();
17 };
18
19 var wasClean;
20 ws.onclose = function(event)
21 {
22 wasClean = event.wasClean;
23 shouldBeTrue("wasClean");
24 finishJSTest();
25 };
26
27 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/receive-pong-with-payload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698