Bug 1449255: Part 24 - Remove test_bug595081.js, which doesn't matter anymore. r?aswan draft
authorKris Maglione <maglione.k@gmail.com>
Tue, 27 Mar 2018 16:48:45 -0700
changeset 773493 7b3a4b5447e3d0b14ef553a9351eb8a78cc12ad3
parent 773492 5486c87167c23e8f8d5cd301f51db53fc754e77a
child 773494 a2359766d823d741bbe90d1c2b1a658962e6b679
push id104243
push usermaglione.k@gmail.com
push dateWed, 28 Mar 2018 00:15:32 +0000
reviewersaswan
bugs1449255, 595081
milestone61.0a1
Bug 1449255: Part 24 - Remove test_bug595081.js, which doesn't matter anymore. r?aswan MozReview-Commit-ID: 7eapcbqSwXs
toolkit/mozapps/extensions/test/xpcshell/test_bug595081.js
toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini
deleted file mode 100644
--- 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);
-}
--- a/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini
+++ b/toolkit/mozapps/extensions/test/xpcshell/xpcshell.ini
@@ -75,17 +75,16 @@ skip-if = true # Bug 1358846 Bug 1365021
 [test_bug1180901_2.js]
 skip-if = os != "win"
 [test_bug514327_2.js]
 # Bug 676992: test consistently hangs on Android
 skip-if = os == "android"
 tags = blocklist
 [test_bug521905.js]
 [test_bug566626.js]
-[test_bug595081.js]
 [test_bug596607.js]
 [test_cache_certdb.js]
 run-if = addon_signing
 [test_cacheflush.js]
 [test_childprocess.js]
 [test_compatoverrides.js]
 [test_corrupt.js]
 [test_corruptfile.js]