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

Unified Diff: third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html

Issue 2823103002: [Devtools] Fixed cookie size from being off by 1 byte (Closed)
Patch Set: [Devtools] Fixed cookie size from being off by 1 byte Created 3 years, 8 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 | third_party/WebKit/LayoutTests/inspector/components/cookie-parser-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html
diff --git a/third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html b/third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html
index 1f1327951df5ed5eedf056157afe06f3c5b57fa8..6c3a7f1d1c6cd0779bbe77e15b482d950bf5dc90 100644
--- a/third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html
+++ b/third_party/WebKit/LayoutTests/inspector/components/cookie-parser.html
@@ -46,6 +46,10 @@ InspectorTest.parseAndDumpSetCookie = function(header)
var test = function()
{
+ InspectorTest.addResult("Make sure we always add 1 byte for the trailing \\n of the cookie (ie: 4 bytes).");
+ InspectorTest.addResult("Should be 4: " + (new SDK.CookieParser()).parseSetCookie("a=b")[0].size());
+ InspectorTest.addResult("");
+
InspectorTest.parseAndDumpCookie("cookie=value");
InspectorTest.parseAndDumpCookie("$version=1; a=b,c = d, e=f");
InspectorTest.parseAndDumpCookie("$version=1; a=b;c = d; e =f");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/components/cookie-parser-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698