Fix accessing the bootstrap methods when they are declared in the new lexical scope

This commit is contained in:
JustOff 2018-04-23 14:52:50 +03:00 • committed by Roy Tam
commit c54e714ef5
5 changed files with 61 additions and 3 deletions

View file

@ -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);
});

View file

@ -29,6 +29,7 @@ skip-if = os == "android"
[test_bootstrap.js]
# Bug 676992: test consistently hangs on Android
skip-if = os == "android"
[test_bootstrap_const.js]
[test_bootstrap_resource.js]
[test_bug299716.js]
# Bug 676992: test consistently hangs on Android