mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fix test.
This commit is contained in:
parent
455f79800c
commit
43586c81e3
@ -795,6 +795,12 @@ main(PRInt32 argc, char *argv[])
|
||||
name += NS_LITERAL_CSTRING("=creation");
|
||||
SetACookie(cookieService, "http://creation.ordering.tests/", nsnull, name.get(), nsnull);
|
||||
|
||||
if (i == 9) {
|
||||
// sleep a couple of seconds, to make sure the first 10 cookies are older than
|
||||
// subsequent ones. (lastAccessed time is only measured with a resolution of 1 second.)
|
||||
PR_Sleep(2 * PR_TicksPerSecond());
|
||||
}
|
||||
|
||||
if (i >= 10) {
|
||||
expected += name;
|
||||
if (i < 59)
|
||||
@ -812,6 +818,12 @@ main(PRInt32 argc, char *argv[])
|
||||
host.AppendInt(i);
|
||||
host += NS_LITERAL_CSTRING(".tests/");
|
||||
SetACookie(cookieService, host.get(), nsnull, "test=eviction", nsnull);
|
||||
|
||||
if (i == 9) {
|
||||
// sleep a couple of seconds, to make sure the first 10 cookies are older than
|
||||
// subsequent ones. (lastAccessed time is only measured with a resolution of 1 second.)
|
||||
PR_Sleep(2 * PR_TicksPerSecond());
|
||||
}
|
||||
}
|
||||
rv[1] = NS_SUCCEEDED(cookieMgr->GetEnumerator(getter_AddRefs(enumerator)));
|
||||
i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user