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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled

Issue 2563213002: [DevTools] Remove obsolete tests (Closed)
Patch Set: set-cookie is needed 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled
deleted file mode 100644
index d442cfa19d7887bfa449841de0f0995d4cd58fca..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies.html-disabled
+++ /dev/null
@@ -1,63 +0,0 @@
-<html>
-<head>
-<script src="../inspector-test.js"></script>
-<script src="../network-test.js"></script>
-<script>
-function test()
-{
- InspectorTest.makeSimpleXHRWithPayload("GET", "resources/set-cookie.php", true, step2);
-
- function step2(msg)
- {
- if (typeof(InspectorTest.NetworkAgent.clearBrowserCookies) === 'function')
- InspectorTest.NetworkAgent.clearBrowserCookies(step3);
- else
- step3();
- }
-
- function step3(msg)
- {
- InspectorTest.makeSimpleXHRWithPayload("GET", "resources/set-cookie.php", true, firstXHRLoaded);
-
- function firstXHRLoaded()
- {
- InspectorTest.makeSimpleXHRWithPayload("GET", "resources/set-cookie.php", true, step4);
- }
- }
-
- function step4(msg)
- {
- // inspector-test.js appears in network panel occasionally in Safari on
- // Mac, so checking two last resources.
- var resourcesCount = WebInspector.panels.network.resources.length;
- var resource1 = WebInspector.panels.network.resources[resourcesCount - 2];
- var resource2 = WebInspector.panels.network.resources[resourcesCount - 1];
-
- InspectorTest.addResult(resource1.url);
- InspectorTest.addResult(resource2.url);
-
- InspectorTest.assertTrue(!hasRequestCookieWithName(resource1, "TestCookie"));
- InspectorTest.assertTrue(hasRequestCookieWithName(resource2, "TestCookie"));
- InspectorTest.completeTest();
-
- }
-
- function hasRequestCookieWithName(resource, name)
- {
- var requestCookies = resource.requestCookies;
- if (!requestCookies)
- return false;
- for (var i = 0; i < requestCookies.length; i++) {
- if (requestCookies[i].name === name)
- return true;
- }
- return false;
- }
-}
-</script>
-</head>
-<body onload="runTest()">
- <p>Tests clearing browser cookies from inspector.</p>
-</body>
-</html>
-
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-clear-cookies-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698