From 4fb11cd5966461bccc3ed1599b808237be6b0de9 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 10 Feb 2018 02:49:12 -0500 Subject: Move WebExtensions enabled Add-ons Manager --- .../webextensions/test/xpcshell/test_bootstrap_const.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 toolkit/mozapps/webextensions/test/xpcshell/test_bootstrap_const.js (limited to 'toolkit/mozapps/webextensions/test/xpcshell/test_bootstrap_const.js') diff --git a/toolkit/mozapps/webextensions/test/xpcshell/test_bootstrap_const.js b/toolkit/mozapps/webextensions/test/xpcshell/test_bootstrap_const.js new file mode 100644 index 000000000..101d49510 --- /dev/null +++ b/toolkit/mozapps/webextensions/test/xpcshell/test_bootstrap_const.js @@ -0,0 +1,17 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ + */ + +createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "1"); +startupManager(); + +add_task(function*() { + let sawInstall = false; + Services.obs.addObserver(function() { + sawInstall = true; + }, "addon-install", false); + + yield promiseInstallAllFiles([do_get_addon("test_bootstrap_const")]); + + ok(sawInstall); +}); -- cgit v1.2.3