Bug 1702422 - Move tests intended for quota info caching into a standalone directory; r=dom-storage-reviewers,asuth

Differential Revision: https://phabricator.services.mozilla.com/D113369
This commit is contained in:
Jan Varga 2021-04-27 07:12:22 +00:00
Родитель 1eb89beb48
Коммит 4bd1418875
6 изменённых файлов: 28 добавлений и 3 удалений

Просмотреть файл

@ -11,6 +11,7 @@ BROWSER_CHROME_MANIFESTS += ["browser/browser.ini"]
MOCHITEST_MANIFESTS += ["mochitest/mochitest.ini"]
XPCSHELL_TESTS_MANIFESTS += [
"xpcshell/caching/xpcshell.ini",
"xpcshell/telemetry/xpcshell.ini",
"xpcshell/upgrades/xpcshell.ini",
"xpcshell/xpcshell.ini",

Просмотреть файл

@ -0,0 +1,16 @@
/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
// The path to the top level directory.
const depth = "../../../../../";
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
loadScript("dom/quota/test/xpcshell/common/head.js");
function loadScript(path) {
let uri = Services.io.newFileURI(do_get_file(depth + path));
Services.scriptloader.loadSubScript(uri.spec);
}

Просмотреть файл

@ -36,7 +36,7 @@ async function testSteps() {
// "mozilla-iot.org".
// 3. Remove the folder "storage/temporary".
// 4. Remove the file "storage/ls-archive.sqlite".
installPackage("caching_groupMismatch_profile");
installPackage("groupMismatch_profile");
request = getOriginUsage(principal, /* fromMemory */ true);
await requestFinished(request);

Просмотреть файл

@ -0,0 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
[DEFAULT]
head = head.js
support-files =
groupMismatch_profile.zip
[test_groupMismatch.js]

Просмотреть файл

@ -6,7 +6,6 @@
head = head.js
support-files =
basics_profile.zip
caching_groupMismatch_profile.zip
clearStoragesForPrincipal_profile.zip
createLocalStorage_profile.zip
defaultStorageDirectory_shared.json
@ -29,7 +28,6 @@ skip-if = true # Only used for recreating unknownFiles_profile.zip
[test_allowListFiles.js]
[test_basics.js]
[test_bad_origin_directory.js]
[test_caching_groupMismatch.js]
[test_createLocalStorage.js]
[test_clearStoragesForPrincipal.js]
[test_clearStoragesForOriginAttributesPattern.js]