Bug 1919507 - Set dom.caches.testing.enabled for all Cache xpcshell tests; r=dom-storage-reviewers,asuth

Differential Revision: https://phabricator.services.mozilla.com/D220259
This commit is contained in:
Jan Varga
2024-10-02 10:34:25 +00:00
parent db36a00c3e
commit 76ff5384e2

View File

@@ -53,6 +53,7 @@ add_setup(function () {
});
function enableTesting() {
Services.prefs.setBoolPref("dom.caches.testing.enabled", true);
Services.prefs.setBoolPref("dom.simpleDB.enabled", true);
Services.prefs.setBoolPref("dom.quotaManager.testing", true);
}
@@ -60,6 +61,7 @@ function enableTesting() {
function resetTesting() {
Services.prefs.clearUserPref("dom.quotaManager.testing");
Services.prefs.clearUserPref("dom.simpleDB.enabled");
Services.prefs.clearUserPref("dom.caches.testing.enabled");
}
function initStorage() {