import-headjs-globals.rst (796B)
1 import-headjs-globals 2 ===================== 3 4 Import globals from head.js and from any files that were imported by 5 head.js (as far as we can correctly resolve the path). 6 7 This rule is included in the test configurations. 8 9 The following file import patterns are supported: 10 11 - ``Services.scriptloader.loadSubScript(path)`` 12 - ``loader.loadSubScript(path)`` 13 - ``loadSubScript(path)`` 14 - ``loadHelperScript(path)`` 15 - ``import-globals-from path`` 16 17 If path does not exist because it is generated e.g. 18 ``testdir + "/somefile.js"`` we do our best to resolve it. 19 20 The following patterns are supported: 21 22 - ``loader.lazyRequireGetter(this, "name2"`` 23 - ``loader.lazyServiceGetter(this, "name3"`` 24 - ``loader.lazyGetter(this, "toolboxStrings"`` 25 - ``ChromeUtils.defineLazyGetter(this, "clipboardHelper"``