| Index: chrome_frame/test/data/fulltab_delete_cookie_test.html
|
| ===================================================================
|
| --- chrome_frame/test/data/fulltab_delete_cookie_test.html (revision 35770)
|
| +++ chrome_frame/test/data/fulltab_delete_cookie_test.html (working copy)
|
| @@ -1,47 +0,0 @@
|
| -<html>
|
| - <head>
|
| - <meta http-equiv="x-ua-compatible" content="chrome=1" />
|
| - <title>FullTab mode cookie deletion test</title>
|
| - </head>
|
| -
|
| - <script type="text/javascript"
|
| - src="chrome_frame_tester_helpers.js"></script>
|
| -
|
| - <script type="text/javascript">
|
| - function onLoad() {
|
| - if (!isRunningInChrome()) {
|
| - onFailure("FullTab_DeleteCookieTest", 1, "Not running in Chrome");
|
| - return;
|
| - }
|
| -
|
| - // The path of the cookie in this test is set to "/." As a result it
|
| - // is set twice, once for the original URL and once for the
|
| - // chrome_frame_tester_helpers.js script. We attempt to delete
|
| - // the cookie twice and validate that the end result is null.
|
| - // First validate that the document cookie contains the substring
|
| - // CF_FullTabDeleteCookie=1; CF_FullTabDeleteCookie=1
|
| - // Then erase the first cookie and validate that it no longer contains
|
| - // this string.
|
| - var cookie_found =
|
| - /CF_FullTabDeleteCookie=1; CF_FullTabDeleteCookie=1/.test(
|
| - document.cookie);
|
| - if (cookie_found) {
|
| - eraseCookie("CF_FullTabDeleteCookie");
|
| - cookie_found =
|
| - /CF_FullTabDeleteCookie=1; CF_FullTabDeleteCookie=1/.test(
|
| - document.cookie);
|
| - if (!cookie_found) {
|
| - onSuccess("FullTab_DeleteCookieTest", 1);
|
| - } else {
|
| - onFailure("FullTab_DeleteCookieTest", 1, "Delete cookie failed");
|
| - }
|
| - } else {
|
| - onFailure("FullTab_DeleteCookieTest", 1, "Expected cookies not set");
|
| - }
|
| - }
|
| - </script>
|
| -
|
| - <body onload="onLoad();">
|
| - This tests whether cookies get deleted correctly in full tab mode
|
| - </body>
|
| -</html>
|
|
|