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

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

Issue 3053018: The ChromeFrame persistent cookie test creates persistent cookies and reloads... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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
1 <html> 1 <html>
2 <head><title>Persistent host browser chrome frame cookie test</title> 2 <head><title>Persistent host browser chrome frame cookie test page</title>
3 <script type="text/javascript" 3 <script type="text/javascript"
4 src="chrome_frame_tester_helpers.js"></script> 4 src="chrome_frame_tester_helpers.js"></script>
5 5
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 function validatePersistentCookie() {
8 if (readCookie("PersistentCookie1") != "Cookie1" ||
9 readCookie("PersistentCookie2") != "Cookie2") {
10 onFailure("PersistentCookieTest", 1, "Failed");
11 } else {
12 onSuccess("PersistentCookieTest", 1);
13 }
14 eraseCookie("PersistentCookie1");
15 eraseCookie("PersistentCookie2");
16 }
17 7
18 function setPersistentCookieAndRedirect() { 8 function setPersistentCookieAndRedirect() {
19 if (isRunningInMSIE()) { 9 if (isRunningInMSIE()) {
20 eraseCookie("PersistentCookie1"); 10 eraseCookie("PersistentCookie1");
21 eraseCookie("PersistentCookie2"); 11 eraseCookie("PersistentCookie2");
22 createCookie("PersistentCookie1", "Cookie1", 365); 12 createCookie("PersistentCookie1", "Cookie1", 365);
23 createCookie("PersistentCookie2", "Cookie2", 365); 13 createCookie("PersistentCookie2", "Cookie2", 365);
24 reloadUsingCFProtocol(); 14 document.location = "persistent_cookie_test_final_page.html";
25 } else { 15 } else {
26 validatePersistentCookie(); 16 onFailure("PersistentCookieTest", 1, "Incorrectly loaded in chrome");
27 } 17 }
28 } 18 }
29 </script> 19 </script>
30 </head> 20 </head>
31 <body onLoad="setTimeout(setPersistentCookieAndRedirect, 100);"> 21 <body onLoad="setTimeout(setPersistentCookieAndRedirect, 100);">
32 <h2>Prepare to be redirected!</h2> 22 <h2>Prepare to be redirected!</h2>
33 <p>Sets two persistent cookies in the host and redirects ChromeFrame <br /> 23 <p>Sets two persistent cookies in the host and redirects ChromeFrame <br />
34 to the same page </p> 24 to a page which validates the cookies.</p>
35 </body> 25 </body>
36 </html> 26 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/persistent_cookie_test_final_page.html ('k') | chrome_frame/test/test_with_web_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698