From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- remote/marionette/test/xpcshell/test_cookie.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'remote/marionette/test/xpcshell/test_cookie.js') diff --git a/remote/marionette/test/xpcshell/test_cookie.js b/remote/marionette/test/xpcshell/test_cookie.js index b5ce5e9008..496aafd68b 100644 --- a/remote/marionette/test/xpcshell/test_cookie.js +++ b/remote/marionette/test/xpcshell/test_cookie.js @@ -239,7 +239,10 @@ add_task(function test_add() { equal("value", cookie.manager.cookies[0].value); equal(".domain", cookie.manager.cookies[0].host); equal("/", cookie.manager.cookies[0].path); - ok(cookie.manager.cookies[0].expiry > new Date(Date.now()).getTime() / 1000); + Assert.greater( + cookie.manager.cookies[0].expiry, + new Date(Date.now()).getTime() / 1000 + ); cookie.add({ name: "name2", -- cgit v1.2.3