summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_promise.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/unit/test_promise.js')
-rw-r--r--js/xpconnect/tests/unit/test_promise.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/test_promise.js b/js/xpconnect/tests/unit/test_promise.js
new file mode 100644
index 000000000..46c34a9bc
--- /dev/null
+++ b/js/xpconnect/tests/unit/test_promise.js
@@ -0,0 +1,8 @@
+function run_test() {
+ var Cu = Components.utils;
+ sb = new Cu.Sandbox('http://www.example.com');
+ sb.do_check_eq = do_check_eq;
+ Cu.evalInSandbox('do_check_eq(typeof new Promise(function(resolve){resolve();}), "object");',
+ sb);
+ do_check_eq(typeof new Promise(function(resolve){resolve();}), "object");
+}