diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /js/src/gdb/tests/test-jsval.py | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'js/src/gdb/tests/test-jsval.py')
-rw-r--r-- | js/src/gdb/tests/test-jsval.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/gdb/tests/test-jsval.py b/js/src/gdb/tests/test-jsval.py new file mode 100644 index 000000000..f39a6591f --- /dev/null +++ b/js/src/gdb/tests/test-jsval.py @@ -0,0 +1,18 @@ +# Basic unit tests for jsval pretty-printer. + +assert_subprinter_registered('SpiderMonkey', 'JS::Value') + +run_fragment('jsval.simple') + +assert_pretty('fortytwo', '$jsval(42)') +assert_pretty('negone', '$jsval(-1)') +assert_pretty('undefined', 'JSVAL_VOID') +assert_pretty('null', 'JSVAL_NULL') +assert_pretty('js_true', 'JSVAL_TRUE') +assert_pretty('js_false', 'JSVAL_FALSE') +assert_pretty('elements_hole', '$jsmagic(JS_ELEMENTS_HOLE)') +assert_pretty('empty_string', '$jsval("")') +assert_pretty('friendly_string', '$jsval("Hello!")') +assert_pretty('symbol', '$jsval(Symbol.for("Hello!"))') +assert_pretty('global', '$jsval((JSObject *) [object global] delegate)') +assert_pretty('onehundredthirtysevenonehundredtwentyeighths', '$jsval(1.0703125)') |