From 54c142f152251fa9e9af8cfaea37aeee543585c4 Mon Sep 17 00:00:00 2001 From: Jan Varga Date: Sun, 22 Nov 2015 10:45:05 +0100 Subject: [PATCH] Bug 961049 - Part 11: Fix a test that triggers quota manager creation during shutdown; r=baku --- .../migration/tests/unit/test_Chrome_cookies.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/browser/components/migration/tests/unit/test_Chrome_cookies.js b/browser/components/migration/tests/unit/test_Chrome_cookies.js index ebad9325b53..1161a5cdd3c 100644 --- a/browser/components/migration/tests/unit/test_Chrome_cookies.js +++ b/browser/components/migration/tests/unit/test_Chrome_cookies.js @@ -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"); + });