Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / toolkit / modules / subprocess / test / xpcshell / test_subprocess_getEnvironment.js
blobcb4ea7247d0c0fa7690936ff6a894d7779a637de
1 "use strict";
3 add_task(async function test_getEnvironment() {
4   Services.env.set("FOO", "BAR");
6   let environment = Subprocess.getEnvironment();
8   equal(environment.FOO, "BAR");
9   equal(environment.PATH, Services.env.get("PATH"));
11   Services.env.set("FOO", null);
13   environment = Subprocess.getEnvironment();
14   equal(environment.FOO || "", "");
15 });