Skip to content

Commit

Permalink
Cherry pick PR #2118: Fix the persistent_cookie blackbox test. (#2154)
Browse files Browse the repository at this point in the history
Refer to the original PR: youtube/cobalt#2118

b/316930489

Change-Id: I7e9b4ddc4480759ffd17b9a37605c393005b8fcf

Co-authored-by: y4vor <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and y4vor authored Jan 2, 2024
1 parent 688e517 commit d431116
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit d431116

Please sign in to comment.