| Index: chrome_frame/test/data/persistent_cookie_test_page.html
|
| ===================================================================
|
| --- chrome_frame/test/data/persistent_cookie_test_page.html (revision 53833)
|
| +++ chrome_frame/test/data/persistent_cookie_test_page.html (working copy)
|
| @@ -1,19 +1,9 @@
|
| <html>
|
| - <head><title>Persistent host browser chrome frame cookie test</title>
|
| + <head><title>Persistent host browser chrome frame cookie test page</title>
|
| <script type="text/javascript"
|
| src="chrome_frame_tester_helpers.js"></script>
|
|
|
| <script type="text/javascript">
|
| - function validatePersistentCookie() {
|
| - if (readCookie("PersistentCookie1") != "Cookie1" ||
|
| - readCookie("PersistentCookie2") != "Cookie2") {
|
| - onFailure("PersistentCookieTest", 1, "Failed");
|
| - } else {
|
| - onSuccess("PersistentCookieTest", 1);
|
| - }
|
| - eraseCookie("PersistentCookie1");
|
| - eraseCookie("PersistentCookie2");
|
| - }
|
|
|
| function setPersistentCookieAndRedirect() {
|
| if (isRunningInMSIE()) {
|
| @@ -21,9 +11,9 @@
|
| eraseCookie("PersistentCookie2");
|
| createCookie("PersistentCookie1", "Cookie1", 365);
|
| createCookie("PersistentCookie2", "Cookie2", 365);
|
| - reloadUsingCFProtocol();
|
| + document.location = "persistent_cookie_test_final_page.html";
|
| } else {
|
| - validatePersistentCookie();
|
| + onFailure("PersistentCookieTest", 1, "Incorrectly loaded in chrome");
|
| }
|
| }
|
| </script>
|
| @@ -31,6 +21,6 @@
|
| <body onLoad="setTimeout(setPersistentCookieAndRedirect, 100);">
|
| <h2>Prepare to be redirected!</h2>
|
| <p>Sets two persistent cookies in the host and redirects ChromeFrame <br />
|
| - to the same page </p>
|
| + to a page which validates the cookies.</p>
|
| </body>
|
| </html>
|
|
|