4 * Test that the name of a sandbox contains the name of all principals.
6 function test_sandbox_name() {
8 "http://example.com/?" + Math.random(),
9 "http://example.org/?" + Math.random()
11 let sandbox = Cu.Sandbox(names);
12 let fileName = Cu.evalInSandbox(
13 "(new Error()).fileName",
15 "latest" /*js version*/,
19 for (let name of names) {
20 Assert.ok(fileName.includes(name), `Name ${name} appears in ${fileName}`);