blob: cb4ea7247d0c0fa7690936ff6a894d7779a637de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"use strict";
add_task(async function test_getEnvironment() {
Services.env.set("FOO", "BAR");
let environment = Subprocess.getEnvironment();
equal(environment.FOO, "BAR");
equal(environment.PATH, Services.env.get("PATH"));
Services.env.set("FOO", null);
environment = Subprocess.getEnvironment();
equal(environment.FOO || "", "");
});
|