summaryrefslogtreecommitdiff
path: root/js/xpconnect/tests/unit/test_css.js
blob: 5af9d74b6029ec0331589c673e793891ff3462f7 (plain)
1
2
3
4
5
6
7
8
9
10
function run_test() {
  var Cu = Components.utils;
  var sb = new Cu.Sandbox('http://www.example.com',
                          { wantGlobalProperties: ["CSS"] });
  sb.do_check_eq = do_check_eq;
  Cu.evalInSandbox('do_check_eq(CSS.escape("$"), "\\\\$");',
                   sb);
  Cu.importGlobalProperties(["CSS"]);
  do_check_eq(CSS.escape("$"), "\\$");
}