mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 12:07:34 +09:00
Fix accessing the bootstrap methods when they are declared in the new lexical scope
This commit is contained in:
parent
a968f1d6c2
commit
c54e714ef5
5 changed files with 61 additions and 3 deletions
|
|
@ -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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue