4 sb = Cu.Sandbox(this, {wantComponents: false});
5 Assert.equal(Cu.evalInSandbox("this.Components", sb), undefined);
6 Assert.equal(Cu.evalInSandbox("this.Services", sb), undefined);
8 sb = Cu.Sandbox(this, {wantComponents: true});
9 Assert.equal(Cu.evalInSandbox("typeof this.Components", sb), "object");
10 Assert.equal(Cu.evalInSandbox("typeof this.Services", sb), "object");
12 // wantComponents defaults to true.
13 sb = Cu.Sandbox(this, {});
14 Assert.equal(Cu.evalInSandbox("typeof this.Components", sb), "object");
15 Assert.equal(Cu.evalInSandbox("typeof this.Services", sb), "object");