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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/warning-for-long-cookie.html

Issue 2563083002: [DevTools] show warning if 'Set-Cookie' header length is > 4096 symbols (Closed)
Patch Set: addressed all comments Created 4 years 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/inspector/network/warning-for-long-cookie.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/warning-for-long-cookie.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/warning-for-long-cookie.html
new file mode 100644
index 0000000000000000000000000000000000000000..a2a70b7ff10e9ec1d2fb81e96432a47f806930a8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/warning-for-long-cookie.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../console-test.js"></script>
+<script src="../network-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.makeFetch('http://127.0.0.1:8000/inspector/network/resources/set-cookie.php?length=4096', {}, step1);
+
+ function step1() {
+ InspectorTest.makeFetch('http://127.0.0.1:8000/inspector/network/resources/set-cookie.php?length=4097', {}, dumpMessages);
+ }
+
+ function dumpMessages()
+ {
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+Checks that we show warning message for long cookie.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698