зеркало из https://github.com/mozilla/pjs.git
fix test.
This commit is contained in:
Родитель
74007729dc
Коммит
77ee93dd71
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче