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:
Kris Maglione 2018-03-27 16:48:45 -07:00
Родитель 97306571ac
Коммит 4fb58d87de
2 изменённых файлов: 0 добавлений и 28 удалений

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

@ -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