Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / unit / test_url.js
blob0f912d12e990af024ce10d4272aa96c253af4460
1 function run_test() {
2   var sb = new Cu.Sandbox('http://www.example.com',
3                           { wantGlobalProperties: ["URL"] });
4   sb.equal = equal;
5   Cu.evalInSandbox('equal(new URL("http://www.example.com").host, "www.example.com");',
6                    sb);
7   Cu.importGlobalProperties(["URL"]);
8   Assert.equal(new URL("http://www.example.com").host, "www.example.com");