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

Unified 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 side-by-side diff with in-line comments
Download patch
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>
« 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