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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/websocket/httponly-cookie.pl

Issue 2123743002: Rename cookie names in WebSocket cookie tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cookie flooding test amount 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
Index: third_party/WebKit/LayoutTests/http/tests/websocket/httponly-cookie.pl
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/httponly-cookie.pl b/third_party/WebKit/LayoutTests/http/tests/websocket/httponly-cookie.pl
index 32ed12925a0193e22bed448f949c921944240824..591bc67b4d9e625fa9c2177fe45f7bd4b9668881 100755
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/httponly-cookie.pl
+++ b/third_party/WebKit/LayoutTests/http/tests/websocket/httponly-cookie.pl
@@ -3,8 +3,8 @@ use strict;
if ($ENV{"QUERY_STRING"} eq "clear=1") {
print "Content-Type: text/plain\r\n",
- "Set-Cookie: WK-websocket-test=0; Path=/; Max-Age=0\r\n",
- "Set-Cookie: WK-websocket-test-httponly=0; Path=/; HttpOnly; Max-Age=0\r\n",
+ "Set-Cookie: ws=0; Path=/; Max-Age=0\r\n",
+ "Set-Cookie: ws-httponly=0; Path=/; HttpOnly; Max-Age=0\r\n",
"\r\n",
"Cookies are cleared.";
exit;
@@ -13,8 +13,8 @@ if ($ENV{"QUERY_STRING"} eq "clear=1") {
print "Content-Type: text/html\r\n",
# The "Path" attribute is set to "/" so that the WebSocket created below
# will receive these cookies.
- "Set-Cookie: WK-websocket-test=1; Path=/\r\n",
- "Set-Cookie: WK-websocket-test-httponly=1; Path=/; HttpOnly\r\n",
+ "Set-Cookie: ws=1; Path=/\r\n",
+ "Set-Cookie: ws-httponly=1; Path=/; HttpOnly\r\n",
"\r\n";
print <<'HTML';
<!DOCTYPE html>
@@ -53,7 +53,7 @@ connectAndGetRequestHeader('cookie').then(function(value)
{
cookie = value;
cookie = normalizeCookie(cookie);
- shouldBeEqualToString('cookie', 'WK-websocket-test-httponly=1; WK-websocket-test=1');
+ shouldBeEqualToString('cookie', 'ws-httponly=1; ws=1');
clearCookies().then(finishJSTest);
}, finishAsFailed);

Powered by Google App Engine
This is Rietveld 408576698