tenfourfox/toolkit/mozapps/extensions/test/xpcshell/test_bootstrap_const.js

18 lines
434 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
/* 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);
});