summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_want_components.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/unit/test_want_components.js')
-rw-r--r--js/xpconnect/tests/unit/test_want_components.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/test_want_components.js b/js/xpconnect/tests/unit/test_want_components.js
new file mode 100644
index 000000000..5ccebcf9c
--- /dev/null
+++ b/js/xpconnect/tests/unit/test_want_components.js
@@ -0,0 +1,8 @@
+function run_test() {
+ var cu = Components.utils;
+ var sb = cu.Sandbox(this,
+ {wantComponents: false});
+
+ var rv = cu.evalInSandbox("this.Components", sb);
+ do_check_eq(rv, undefined);
+}