130
edits
(Added more info about shared-head.js and head.js files) |
(Typo) |
||
Line 212: | Line 212: | ||
** browser/devtools/markupview/test/head.js has a handy loadHelperScript(fileName) function that you can use. | ** browser/devtools/markupview/test/head.js has a handy loadHelperScript(fileName) function that you can use. | ||
** The file will be loaded in the test global scope, so any global function or variables it defines will be available (just like head.js). | ** The file will be loaded in the test global scope, so any global function or variables it defines will be available (just like head.js). | ||
** Use the special ESLint comment <code>/* import-globals-from helper_file.js */ to prevent ESLint errors for undefined variables. | ** Use the special ESLint comment <code>/* import-globals-from helper_file.js */</code> to prevent ESLint errors for undefined variables. | ||
In all cases, new helper functions should be properly commented with an jsdoc comment block. | In all cases, new helper functions should be properly commented with an jsdoc comment block. |
edits