- add sources.
[platform/framework/web/crosswalk.git] / src / chrome_frame / test / data / persistent_cookie_test_page.html
1 <html>\r
2   <head><title>Persistent host browser chrome frame cookie test page</title>\r
3     <script type="text/javascript"\r
4     src="chrome_frame_tester_helpers.js"></script>\r
5 \r
6     <script type="text/javascript">\r
7 \r
8       function setPersistentCookieAndRedirect() {\r
9         if (isRunningInMSIE()) {\r
10           eraseCookie("PersistentCookie1");\r
11           eraseCookie("PersistentCookie2");\r
12           createCookie("PersistentCookie1", "Cookie1", 365);\r
13           createCookie("PersistentCookie2", "Cookie2", 365);\r
14           document.location = "persistent_cookie_test_final_page.html";\r
15         } else {\r
16           onFailure("PersistentCookieTest", 1, "Incorrectly loaded in chrome");\r
17         }\r
18       }\r
19     </script>\r
20   </head>\r
21   <body onLoad="setTimeout(setPersistentCookieAndRedirect, 100);">\r
22     <h2>Prepare to be redirected!</h2>\r
23     <p>Sets two persistent cookies in the host and redirects ChromeFrame <br />\r
24        to a page which validates the cookies.</p>\r
25   </body>\r
26 </html>\r