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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/websocket/cookie-ws-to-ws.html

Issue 2163563002: Import normalizeCookies() from cookie-test-util.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/websocket/cookie-ws-to-ws.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-ws-to-ws.html b/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-ws-to-ws.html
index 095712b4a2c06feacd2e80ac653bb706782ca9c9..1a6d5a36f1cf8188ca1f9de0062ae82d53f02698 100644
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-ws-to-ws.html
+++ b/third_party/WebKit/LayoutTests/http/tests/websocket/cookie-ws-to-ws.html
@@ -1,17 +1,12 @@
<!DOCTYPE html>
<script src="/js-test-resources/js-test.js"></script>
<script src="resources/get-request-header.js"></script>
+<script src="resources/cookie-test-util.js"></script>
<script>
description('Test receiving cookies in a WebSocket handshake which were set by another WebSocket handshake.');
window.jsTestIsAsync = true;
-// Normalize a cookie string
-function normalizeCookie(cookie) {
- // Split the cookie string, sort it and then put it back together.
- return cookie.split('; ').sort().join('; ');
-}
-
var cookie;
var URL_SET_COOKIE = 'ws://127.0.0.1:8880/set-cookie';
var ws_set_cookie = new WebSocket(URL_SET_COOKIE);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698