summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_css.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/unit/test_css.js')
-rw-r--r--js/xpconnect/tests/unit/test_css.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/test_css.js b/js/xpconnect/tests/unit/test_css.js
new file mode 100644
index 0000000000..e6635d5293
--- /dev/null
+++ b/js/xpconnect/tests/unit/test_css.js
@@ -0,0 +1,9 @@
+function run_test() {
+ var sb = new Cu.Sandbox('http://www.example.com',
+ { wantGlobalProperties: ["CSS"] });
+ sb.equal = equal;
+ Cu.evalInSandbox('equal(CSS.escape("$"), "\\\\$");',
+ sb);
+ Cu.importGlobalProperties(["CSS"]);
+ Assert.equal(CSS.escape("$"), "\\$");
+}