michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: "use strict"; michael@0: michael@0: function run_test() { michael@0: run_next_test(); michael@0: } michael@0: michael@0: add_test(function test_exceptionStr_non_exceptions() { michael@0: do_check_eq(CommonUtils.exceptionStr(null), "null"); michael@0: do_check_eq(CommonUtils.exceptionStr(false), "false"); michael@0: do_check_eq(CommonUtils.exceptionStr(undefined), "undefined"); michael@0: do_check_eq(CommonUtils.exceptionStr(12), "12 No traceback available"); michael@0: michael@0: run_next_test(); michael@0: });