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

Unified Diff: LayoutTests/http/tests/websocket/handshake-response-with-empty-valued-header.html

Issue 312253002: Test that a WebSocket handshake response with an empty valued header is accepted (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/handshake-response-with-empty-valued-header-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/websocket/handshake-response-with-empty-valued-header.html
diff --git a/LayoutTests/http/tests/websocket/handshake-response-with-empty-valued-header.html b/LayoutTests/http/tests/websocket/handshake-response-with-empty-valued-header.html
new file mode 100644
index 0000000000000000000000000000000000000000..29ce90daff271ec00ccce00682d5178f2b2b9efa
--- /dev/null
+++ b/LayoutTests/http/tests/websocket/handshake-response-with-empty-valued-header.html
@@ -0,0 +1,23 @@
+<html>
+<body>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+var t = async_test('An empty valued header in a WebSocket handshake response doesn\'t fail a WebSocket');
+t.step(function() {
+ var ws = new WebSocket('ws://127.0.0.1:8880/handshake-response-with-empty-valued-header');
+ ws.onopen = function() {
+ t.done();
+ };
+ ws.onmessage = t.step_func(function(e) {
+ assert_unreached('Unexpected message event' + e);
+ });
+ ws.onerror = t.step_func(function() {
+ assert_unreached('Unexpected error event');
+ });
+ ws.onclose = t.step_func(function(e) {
+ assert_unreached('Unexpected close event' + e);
+ });
+});
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/handshake-response-with-empty-valued-header-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698