mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 851895 - Tests. r=mrbkap
This commit is contained in:
parent
f9f113418b
commit
1b5cf28332
11
js/xpconnect/tests/unit/test_bug851895.js
Normal file
11
js/xpconnect/tests/unit/test_bug851895.js
Normal 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) {};
|
||||
}
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user