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

Unified Diff: LayoutTests/http/tests/cookies/third-party-cookie-relaxing.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: LayoutTests/http/tests/cookies/third-party-cookie-relaxing.html
diff --git a/LayoutTests/http/tests/cookies/third-party-cookie-relaxing.html b/LayoutTests/http/tests/cookies/third-party-cookie-relaxing.html
deleted file mode 100644
index 62188b2c91988c6390c0e017f41055cbe2b0cb4d..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/cookies/third-party-cookie-relaxing.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<html>
-<head>
-<script src="resources/resetCookies.js"></script>
-<script>
-resetCookies();
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-window.onmessage = function(evt)
-{
- if (evt.data != "done") {
- alert("Unexpected message: " + evt.data);
- return;
- }
-
- runNextTestOrFinish();
-}
-
-function allowAllCookies()
-{
- alert("Allowing all cookies");
- if (window.testRunner)
- testRunner.setAlwaysAcceptCookies(true);
- runNextTestOrFinish();
-}
-
-function restrictCookies()
-{
- alert("Restricting to first party only cookies");
- if (window.testRunner)
- testRunner.setAlwaysAcceptCookies(false);
- runNextTestOrFinish();
-}
-
-function deleteAllCookies()
-{
- sendXHR("deleteCookies");
-}
-
-function echoCookies()
-{
- window.frames[0].postMessage("showCookies", "*");
-}
-
-function sendXHR(command)
-{
- window.frames[0].postMessage("sendXHR " + command, "*");
-}
-
-function setFooCookie()
-{
- sendXHR("setFooCookie");
-}
-
-function setFooAndBarCookies()
-{
- sendXHR("setFooAndBarCookie");
-}
-
-function startNewTest()
-{
- alert("\n");
- runNextTestOrFinish();
-}
-
-var currentFunction = 0;
-var functions = new Array(
- startNewTest, allowAllCookies, deleteAllCookies, echoCookies, restrictCookies, setFooCookie, echoCookies,
- startNewTest, allowAllCookies, deleteAllCookies, echoCookies, restrictCookies, setFooAndBarCookies, echoCookies,
- startNewTest, allowAllCookies, deleteAllCookies, echoCookies, setFooCookie, echoCookies, restrictCookies, deleteAllCookies, echoCookies,
- startNewTest, allowAllCookies, deleteAllCookies, echoCookies, setFooCookie, echoCookies, restrictCookies, setFooAndBarCookies, echoCookies
-);
-
-function runNextTestOrFinish()
-{
- if (currentFunction >= functions.length) {
- if (window.testRunner) {
- resetCookies();
- window.frames[0].postMessage("resetCookiesAndNotifyDone", "*");
- }
- return;
- }
-
- var functionToRun = currentFunction++;
- functions[functionToRun]();
-}
-
-</script>
-</head>
-<body onload="runNextTestOrFinish();">
-<iframe id='testFrame' src="http://localhost:8000/cookies/resources/third-party-cookie-relaxing-iframe.html"></iframe>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698