mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
9e6050b059
--HG-- rename : js/xpconnect/tests/unit/test_textDecoder.js => js/xpconnect/tests/unit/test_url.js
11 lines
429 B
JavaScript
11 lines
429 B
JavaScript
function run_test() {
|
|
var Cu = Components.utils;
|
|
var sb = new Cu.Sandbox('http://www.example.com',
|
|
{ wantGlobalProperties: ["URL"] });
|
|
sb.do_check_eq = do_check_eq;
|
|
Cu.evalInSandbox('do_check_eq(new URL("http://www.example.com").host, "www.example.com");',
|
|
sb);
|
|
Cu.importGlobalProperties(["URL"]);
|
|
do_check_eq(new URL("http://www.example.com").host, "www.example.com");
|
|
}
|