From 4fb58d87de3825d7b9bd67f2c47acc39b1dbef45 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 27 Mar 2018 16:48:45 -0700 Subject: [PATCH] Bug 1449255: Part 24 - Remove test_bug595081.js, which doesn't matter anymore. r=aswan MozReview-Commit-ID: 7eapcbqSwXs --HG-- extra : rebase_source : 1a5e52637da729585f49c6937a67dc52921b5a61 --- .../test/xpcshell/test_bug595081.js | 27 ------------------- .../extensions/test/xpcshell/xpcshell.ini | 1 - 2 files changed, 28 deletions(-) delete mode 100644 toolkit/mozapps/extensions/test/xpcshell/test_bug595081.js diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_bug595081.js b/toolkit/mozapps/extensions/test/xpcshell/test_bug595081.js deleted file mode 100644 index 2587ba1c45da..000000000000 --- a/toolkit/mozapps/extensions/test/xpcshell/test_bug595081.js +++ /dev/null @@ -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); -} diff --git a/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini b/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini index e196a3a2127c..3cf97a88a81c 100644 --- a/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini +++ b/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini @@ -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