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

Side by Side Diff: chrome_frame/test/data/fulltab_delete_cookie_test.html

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <meta http-equiv="x-ua-compatible" content="chrome=1" />
4 <title>FullTab mode cookie deletion test</title>
5 </head>
6
7 <script type="text/javascript" src="chrome_frame_tester_helpers.js"></script>
8
9 <script type="text/javascript">
10 function onLoad() {
11 if (!isRunningInChrome()) {
12 onFailure("FullTab_DeleteCookieTest", 1, "Not running in Chrome");
13 return;
14 }
15
16 // The path of the cookie in this test is set to "/." so it should be
17 // available for all files on the domain but should be set only once.
18 // First validate that the document cookie contains the substring
19 // "CF_FullTabDeleteCookie=1".
20 // Then erase the first cookie and validate that it no longer contains
21 // this string.
22 try {
23 var original_cookies = document.cookie;
24 var cookie_found = /CF_FullTabDeleteCookie=1/.test(document.cookie);
25 if (cookie_found) {
26 eraseCookie("CF_FullTabDeleteCookie");
27 cookie_found = /CF_FullTabDeleteCookie=1/.test(document.cookie);
28 if (!cookie_found) {
29 onSuccess("FullTab_DeleteCookieTest", 1);
30 } else {
31 onFailure("FullTab_DeleteCookieTest", 1,
32 "CF_FullTabDeleteCookie still exists: " + original_cookies);
33 }
34 } else {
35 onFailure("FullTab_DeleteCookieTest", 1, "Expected cookies not set");
36 }
37 } catch (e) {
38 onFailure("FullTab_DeleteCookieTest", 1, "exception: " + e.description);
39 }
40 }
41 </script>
42
43 <body onload="onLoad();">
44 This tests whether cookies get deleted correctly in full tab mode
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698