Bug 851895 - Tests. r=mrbkap

This commit is contained in:
Bobby Holley 2013-03-21 08:20:46 -07:00
parent f9f113418b
commit 1b5cf28332
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
const Cu = Components.utils;
function run_test() {
// Make sure Components.utils gets its |this| fixed up.
var isXrayWrapper = Components.utils.isXrayWrapper;
do_check_true(!isXrayWrapper({}), "Didn't throw");
// Even for classes without |this| fixup, make sure that we don't crash.
var isSuccessCode = Components.isSuccessCode;
try { isSuccessCode(Components.results.NS_OK); } catch (e) {};
}

View File

@ -18,6 +18,7 @@ tail =
[test_bug813901.js]
[test_bug845201.js]
[test_bug849730.js]
[test_bug851895.js]
[test_bug_442086.js]
[test_file.js]
[test_blob.js]