Skip to content

Commit

Permalink
Fix the persistent_cookie blackbox test. (#2118)
Browse files Browse the repository at this point in the history
b/316930489

Change-Id: I7e9b4ddc4480759ffd17b9a37605c393005b8fcf
(cherry picked from commit 49b3df6)
  • Loading branch information
y4vor authored and anonymous1-me committed Jan 2, 2024
1 parent dc4f26e commit a0444de
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 a0444de

Please sign in to comment.