зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1449255: Part 24 - Remove test_bug595081.js, which doesn't matter anymore. r=aswan
MozReview-Commit-ID: 7eapcbqSwXs --HG-- extra : rebase_source : 1a5e52637da729585f49c6937a67dc52921b5a61
This commit is contained in:
Родитель
97306571ac
Коммит
4fb58d87de
|
@ -1,27 +0,0 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
// Tests that the AddonManager objects cannot be tampered with
|
||||
|
||||
function run_test() {
|
||||
// Setup for test
|
||||
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "1.9.2");
|
||||
|
||||
startupManager();
|
||||
|
||||
// Verify that properties cannot be changed
|
||||
let old = AddonManager.STATE_AVAILABLE;
|
||||
AddonManager.STATE_AVAILABLE = 28;
|
||||
Assert.equal(AddonManager.STATE_AVAILABLE, old);
|
||||
|
||||
// Verify that functions cannot be replaced
|
||||
AddonManager.isInstallEnabled = function() {
|
||||
do_throw("Should not be able to replace a function");
|
||||
};
|
||||
AddonManager.isInstallEnabled("application/x-xpinstall");
|
||||
|
||||
// Verify that properties cannot be added
|
||||
AddonManager.foo = "bar";
|
||||
Assert.equal(false, "foo" in AddonManager);
|
||||
}
|
|
@ -79,7 +79,6 @@ skip-if = true # Bug 1358846 Bug 1365021 Bug 676992
|
|||
[test_bug1180901_2.js]
|
||||
skip-if = os != "win"
|
||||
[test_bug566626.js]
|
||||
[test_bug595081.js]
|
||||
[test_bug596607.js]
|
||||
[test_cache_certdb.js]
|
||||
run-if = addon_signing
|
||||
|
|
Загрузка…
Ссылка в новой задаче