Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick PR #2118: Fix the persistent_cookie blackbox test. #2155

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cobalt/black_box_tests/testdata/persistent_cookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ <h1>
<script>
document.body.style.backgroundColor = "green";
const persistent_cookie = "persistent_cookie_status=exists";
const persistent_cookie_expire_time = "; expires=Fri, 18 Dec 2023 12:00:00 UTC";

// Set the cookie expiration date 2 days in the future.
var cookie_date = new Date();
cookie_date.setDate(cookie_date.getDate() + 2 /*days*/);
const persistent_cookie_expire_time = "; expires=" + cookie_date;

const very_old_date = "; expires=Fri, 18 Dec 2003 12:00:00 UTC";

function firstRun() {
Expand Down
Loading