1
function do_test(aLocale, aCallback)
4
do_print("Starting test for " + aLocale);
5
do_run_test_in_subprocess_with_params("test_ubuntu_searchplugins_real.js",
6
{ "_SEARCHPLUGIN_TEST_LOCALE": aLocale },
7
null, function(aSuccess) {
8
do_check_true(aSuccess);
9
do_print("Finished test for " + aLocale);
17
_XPCSHELL_PROCESS = "parent";
19
let istream = Services.io.newChannelFromURI(Services.io.newFileURI(do_get_file("data/locales.shipped"))).open();
21
let line = { value: "" };
23
while (istream.readLine(line)) {
24
if (!line.value.match(/^\s*#.*/)) {
25
tests.push(line.value.replace(/^([^:]*).*/, "$1"));
29
run_tests_async(tests, do_test);