mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 1081990 - Tests. r=gabor
This commit is contained in:
parent
ad9fdda6a1
commit
3c7249f931
10
js/xpconnect/tests/unit/test_bug1081990.js
Normal file
10
js/xpconnect/tests/unit/test_bug1081990.js
Normal file
@ -0,0 +1,10 @@
|
||||
const Cu = Components.utils;
|
||||
function run_test() {
|
||||
var sb = new Cu.Sandbox('http://www.example.com');
|
||||
sb.obj = {};
|
||||
sb.arr = [];
|
||||
sb.fun = function() {};
|
||||
do_check_true(sb.eval('Object.getPrototypeOf(obj) == Object.prototype'));
|
||||
do_check_true(sb.eval('Object.getPrototypeOf(arr) == null'));
|
||||
do_check_true(sb.eval('Object.getPrototypeOf(fun) == null'));
|
||||
}
|
@ -52,6 +52,7 @@ support-files =
|
||||
[test_bug1033927.js]
|
||||
[test_bug1034262.js]
|
||||
[test_bug1082450.js]
|
||||
[test_bug1081990.js]
|
||||
[test_bug_442086.js]
|
||||
[test_file.js]
|
||||
[test_blob.js]
|
||||
|
Loading…
Reference in New Issue
Block a user