Bug 1449255: Part 15 - Remove test_bug740612, which is no longer useful. r=aswan

MozReview-Commit-ID: GIz5omgP8RR

--HG--
extra : rebase_source : 04b9927fc6f1bb4d5cdb2d6ed45264d6bbc83a17
This commit is contained in:
Kris Maglione 2018-03-27 15:56:30 -07:00
Родитель cfcc91b8ec
Коммит cf2629d6f0
6 изменённых файлов: 0 добавлений и 115 удалений

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

@ -1,2 +0,0 @@
/* exported APP_STARTUP */
const APP_STARTUP = 1;

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

@ -1,24 +0,0 @@
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>bug740612_1@tests.mozilla.org</em:id>
<em:version>1.0</em:version>
<em:bootstrap>true</em:bootstrap>
<!-- Front End MetaData -->
<em:name>Test Bootstrap 1</em:name>
<em:description>Test Description</em:description>
<em:targetApplication>
<Description>
<em:id>xpcshell@tests.mozilla.org</em:id>
<em:minVersion>1</em:minVersion>
<em:maxVersion>1</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>

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

@ -1,24 +0,0 @@
/* exported startup, shutdown, install, uninstall */
ChromeUtils.import("resource://gre/modules/Services.jsm");
const VERSION = "1.0";
function install(data, reason) {
Services.prefs.setIntPref("bootstraptest.installed_version", VERSION);
Services.prefs.setIntPref("bootstraptest.install_reason", reason);
}
function startup(data, reason) {
Services.prefs.setIntPref("bootstraptest.active_version", VERSION);
Services.prefs.setIntPref("bootstraptest.startup_reason", reason);
}
function shutdown(data, reason) {
Services.prefs.setIntPref("bootstraptest.active_version", 0);
Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason);
}
function uninstall(data, reason) {
Services.prefs.setIntPref("bootstraptest.installed_version", 0);
Services.prefs.setIntPref("bootstraptest.uninstall_reason", reason);
}

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

@ -1,24 +0,0 @@
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>bug740612_2@tests.mozilla.org</em:id>
<em:version>1.0</em:version>
<em:bootstrap>true</em:bootstrap>
<!-- Front End MetaData -->
<em:name>Test Bootstrap 2</em:name>
<em:description>Test Description</em:description>
<em:targetApplication>
<Description>
<em:id>xpcshell@tests.mozilla.org</em:id>
<em:minVersion>1</em:minVersion>
<em:maxVersion>1</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>

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

@ -1,40 +0,0 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
// This verifies that attempts to override the global values fails but doesn't
// destroy the world with it
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "1.9.2");
const profileDir = gProfD.clone();
profileDir.append("extensions");
function getActiveVersion() {
return Services.prefs.getIntPref("bootstraptest.active_version");
}
function getInstalledVersion() {
return Services.prefs.getIntPref("bootstraptest.installed_version");
}
function run_test() {
do_test_pending();
manuallyInstall(do_get_addon("test_bug740612_1"), profileDir,
"bug740612_1@tests.mozilla.org");
manuallyInstall(do_get_addon("test_bug740612_2"), profileDir,
"bug740612_2@tests.mozilla.org");
startupManager();
AddonManager.getAddonsByIDs(["bug740612_1@tests.mozilla.org",
"bug740612_2@tests.mozilla.org"],
function([a1, a2]) {
Assert.notEqual(a1, null);
Assert.notEqual(a2, null);
Assert.equal(getInstalledVersion(), "1.0");
Assert.equal(getActiveVersion(), "1.0");
executeSoon(do_test_finished);
});
}

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

@ -92,7 +92,6 @@ tags = blocklist
[test_bug620837.js]
tags = blocklist
[test_bug655254.js]
[test_bug740612.js]
[test_cache_certdb.js]
run-if = addon_signing
[test_cacheflush.js]