Bug 1447903: Part 3e - Update test_badschema.js to use only bootstrapped extensions. r?aswan
MozReview-Commit-ID: CPk5LXiMZlu
--- a/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/head_addons.js
@@ -70,17 +70,16 @@ XPCOMUtils.defineLazyServiceGetter(this,
// Whitelist existing tests that still use non-restartless extensions.
const LEGACY_NON_RESTARTLESS_TESTS = new Set([
"test_AddonRepository.js",
"test_AddonRepository_cache.js",
"test_XPIStates.js",
"test_backgroundupdate.js",
"test_bad_json.js",
- "test_badschema.js",
"test_blocklist_metadata_filters.js",
"test_blocklist_prefs.js",
"test_blocklist_regexp.js",
"test_blocklistchange.js",
"test_bug324121.js",
"test_bug335238.js",
"test_bug384052.js",
"test_bug393285.js",
--- a/toolkit/mozapps/extensions/test/xpcshell/test_badschema.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_badschema.js
@@ -16,16 +16,17 @@ Services.prefs.setBoolPref(PREF_EM_CHECK
Services.prefs.setBoolPref(PREF_EM_STRICT_COMPATIBILITY, false);
const ADDONS = {
"addon1@tests.mozilla.org": {
"install.rdf": {
id: "addon1@tests.mozilla.org",
version: "1.0",
name: "Test 1",
+ bootstrap: true,
targetApplications: [{
id: "xpcshell@tests.mozilla.org",
minVersion: "2",
maxVersion: "2"
}]
},
desiredValues: {
isActive: true,
@@ -37,16 +38,17 @@ const ADDONS = {
afterSecondRestart: {},
},
"addon2@tests.mozilla.org": {
"install.rdf": {
id: "addon2@tests.mozilla.org",
version: "1.0",
name: "Test 2",
+ bootstrap: true,
targetApplications: [{
id: "xpcshell@tests.mozilla.org",
minVersion: "2",
maxVersion: "2"
}]
},
initialState: {
userDisabled: true,
@@ -61,16 +63,17 @@ const ADDONS = {
afterSecondRestart: {},
},
"addon3@tests.mozilla.org": {
"install.rdf": {
id: "addon3@tests.mozilla.org",
version: "1.0",
name: "Test 3",
+ bootstrap: true,
updateURL: "http://localhost:" + gPort + "/data/test_corrupt.json",
targetApplications: [{
id: "xpcshell@tests.mozilla.org",
minVersion: "1",
maxVersion: "1"
}]
},
findUpdates: true,
@@ -84,16 +87,17 @@ const ADDONS = {
afterSecondRestart: {},
},
"addon4@tests.mozilla.org": {
"install.rdf": {
id: "addon4@tests.mozilla.org",
version: "1.0",
name: "Test 4",
+ bootstrap: true,
updateURL: "http://localhost:" + gPort + "/data/test_corrupt.json",
targetApplications: [{
id: "xpcshell@tests.mozilla.org",
minVersion: "1",
maxVersion: "1"
}]
},
initialState: {
@@ -110,16 +114,17 @@ const ADDONS = {
afterSecondRestart: {},
},
"addon5@tests.mozilla.org": {
"install.rdf": {
id: "addon5@tests.mozilla.org",
version: "1.0",
name: "Test 5",
+ bootstrap: true,
targetApplications: [{
id: "xpcshell@tests.mozilla.org",
minVersion: "1",
maxVersion: "1"
}]
},
desiredValues: {
isActive: true,