Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

function run_test() {
var sb = new Cu.Sandbox('http://www.example.com',
{ wantGlobalProperties: ["URL"] });
sb.equal = equal;
Cu.evalInSandbox('equal(new URL("http://www.example.com").host, "www.example.com");',
sb);
Cu.importGlobalProperties(["URL"]);
Assert.equal(new URL("http://www.example.com").host, "www.example.com");
}