diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpcshell/test_bug514327_2.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/xpcshell/test_bug514327_2.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_bug514327_2.js b/toolkit/mozapps/extensions/test/xpcshell/test_bug514327_2.js index 261739da4..a8c369f1b 100644 --- a/toolkit/mozapps/extensions/test/xpcshell/test_bug514327_2.js +++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug514327_2.js @@ -2,8 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -var Cc = Components.classes; -var Ci = Components.interfaces; +const Cc = Components.classes; +const Ci = Components.interfaces; const nsIBLS = Ci.nsIBlocklistService; @@ -26,16 +26,17 @@ function run_test() { var blocklist = Cc["@mozilla.org/extensions/blocklist;1"].getService(nsIBLS); var prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch); - prefs.setBoolPref("plugin.load_flash_only", false); - var plugin = get_test_plugintag(); if (!plugin) do_throw("Plugin tag not found"); - // run the code after the blocklist is closed + //run the code after the blocklist is closed Services.obs.notifyObservers(null, "addon-blocklist-closed", null); do_execute_soon(function() { // should be marked as outdated by the blocklist do_check_true(blocklist.getPluginBlocklistState(plugin, "1", "1.9") == nsIBLS.STATE_OUTDATED); + + // should indicate that a warning should be shown + do_check_true(prefs.getBoolPref("plugins.update.notifyUser")); }); } |