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

Unified Diff: LayoutTests/http/tests/websocket/permessage-deflate-split-frames.html

Issue 314043002: [WebSocket] Add tests for permessage deflate split frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/permessage-deflate-split-frames-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/websocket/permessage-deflate-split-frames.html
diff --git a/LayoutTests/http/tests/websocket/permessage-deflate-split-frames.html b/LayoutTests/http/tests/websocket/permessage-deflate-split-frames.html
new file mode 100644
index 0000000000000000000000000000000000000000..2ecde7b4a7c6c059553b706fc29df0e7d9d821ca
--- /dev/null
+++ b/LayoutTests/http/tests/websocket/permessage-deflate-split-frames.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="/js-test-resources/js-test.js"></script>
+</head>
+<body>
+<script type="text/javascript">
+description("Deflated message is split to multiple frames.");
+
+window.jsTestIsAsync = true;
+
+var ws = new WebSocket('ws://localhost:8880/permessage-deflate-split-frames');
+ws.onopen = function()
+{
+ ws.send('kick');
+};
+
+ws.onmessage = function(e)
+{
+ debug('onmessage: ' + e.data);
+}
+
+ws.onclose = function(e)
+{
+ debug('onclose');
+ finishJSTest();
+};
+
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/permessage-deflate-split-frames-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698