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

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 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..88d7239ba7038f6e7890998d9d885704e29c80a1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/warning-for-long-cookie.html
@@ -0,0 +1,31 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../console-test.js"></script>
+<script src="../network-test.js"></script>
+<script>
+
+function fetchCookie(length)
+{
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', `http://localhost:8000/inspector/network/resources/set-long-cookie.php?length=${length}`, true);
allada 2016/12/10 09:48:22 We are trying to stay away from using localhost in
kozy 2016/12/16 03:15:02 Done.
+ xhr.send();
+}
+
+function test()
+{
+ InspectorTest.addConsoleViewSniffer(dumpMessages);
allada 2016/12/10 09:48:22 I'm not against this, however the test will timeou
kozy 2016/12/16 03:15:02 Done.
+ InspectorTest.evaluateInPage("fetchCookie(4097)");
+
+ 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