Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / unit / test_URLSearchParams.js
blobfb2d20318703207f72d876e34dcac93cc5815c0b
1 /* Any copyright is dedicated to the Public Domain.
2  * http://creativecommons.org/publicdomain/zero/1.0/ */
4 function run_test() {
5   var sb = new Cu.Sandbox('http://www.example.com',
6                           { wantGlobalProperties: ["URLSearchParams"] });
7   sb.equal = equal;
8   Cu.evalInSandbox('equal(new URLSearchParams("one=1&two=2").get("one"), "1");',
9                    sb);
10   Cu.importGlobalProperties(["URLSearchParams"]);
11   Assert.equal(new URLSearchParams("one=1&two=2").get("one"), "1");