mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851895 - Tests. r=mrbkap
This commit is contained in:
parent
938ba8175a
commit
fd364afa79
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