mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 961049 - Part 11: Fix a test that triggers quota manager creation during shutdown; r=baku
This commit is contained in:
parent
b12f99ad3f
commit
54c142f152
@ -28,11 +28,6 @@ add_task(function* () {
|
||||
// Migrate unencrypted cookies.
|
||||
yield promiseMigration(migrator, MigrationUtils.resourceTypes.COOKIES, PROFILE);
|
||||
|
||||
do_register_cleanup(() => {
|
||||
ForgetAboutSite.removeDataFromDomain(COOKIE.host);
|
||||
Assert.equal(Services.cookies.countCookiesFromHost(COOKIE.host), 0,
|
||||
"There are no cookies after cleanup");
|
||||
});
|
||||
Assert.equal(Services.cookies.countCookiesFromHost(COOKIE.host), 1,
|
||||
"Migrated the expected number of unencrypted cookies");
|
||||
Assert.equal(Services.cookies.countCookiesFromHost("encryptedcookie.invalid"), 0,
|
||||
@ -46,4 +41,10 @@ add_task(function* () {
|
||||
for (let prop of Object.keys(COOKIE)) {
|
||||
Assert.equal(foundCookie[prop], COOKIE[prop], "Check cookie " + prop);
|
||||
}
|
||||
|
||||
// Cleanup.
|
||||
ForgetAboutSite.removeDataFromDomain(COOKIE.host);
|
||||
Assert.equal(Services.cookies.countCookiesFromHost(COOKIE.host), 0,
|
||||
"There are no cookies after cleanup");
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user