diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /toolkit/components/formautofill/test/xpcshell/loader.js | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'toolkit/components/formautofill/test/xpcshell/loader.js')
-rw-r--r-- | toolkit/components/formautofill/test/xpcshell/loader.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/toolkit/components/formautofill/test/xpcshell/loader.js b/toolkit/components/formautofill/test/xpcshell/loader.js new file mode 100644 index 000000000..449989c8a --- /dev/null +++ b/toolkit/components/formautofill/test/xpcshell/loader.js @@ -0,0 +1,46 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +/* + * Infrastructure for the xpcshell tests located in this folder. + * + * See "loader_common.js" in the parent folder for a general overview. + * + * Unless you are adding new features to the framework, you shouldn't have to + * modify this file. Use "head_common.js" or "head.js" for shared code. + */ + +"use strict"; + +var { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components; + +Cu.import("resource://gre/modules/XPCOMUtils.jsm", this); +Cu.import("resource://gre/modules/Services.jsm", this); + +Services.scriptloader.loadSubScript( + Services.io.newFileURI(do_get_file("loader_common.js")).spec, this); + +// Define output functions so they look the same across all frameworks. +var Output = { + print: do_print, +}; + +var executeSoon = do_execute_soon; +var setTimeout = (fn, delay) => do_timeout(delay, fn); + +// Define task registration functions, see description in "loader_common.js". +var add_task_in_parent_process = add_task; +var add_task_in_child_process = function () {}; +var add_task_in_both_processes = add_task; + +Services.scriptloader.loadSubScript( + Services.io.newFileURI(do_get_file("head_common.js")).spec, this); + +// Tests are always run asynchronously and with the profile loaded. +function run_test() { + do_get_profile(); + run_next_test(); +} + +// Reminder: unless you are adding new features to the framework, you shouldn't +// have to modify this file. Use "head_common.js" or "head.js" for shared code. |