diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Function/prototype/call/S15.3.4.4_A2_T1.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Function/prototype/call/S15.3.4.4_A2_T1.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Function/prototype/call/S15.3.4.4_A2_T1.js b/js/src/tests/test262/built-ins/Function/prototype/call/S15.3.4.4_A2_T1.js new file mode 100644 index 0000000000..ad09161477 --- /dev/null +++ b/js/src/tests/test262/built-ins/Function/prototype/call/S15.3.4.4_A2_T1.js @@ -0,0 +1,23 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: The length property of the call method is 1 +es5id: 15.3.4.4_A2_T1 +description: Checking Function.prototype.call.length +---*/ +assert.sameValue( + typeof Function.prototype.call, + "function", + 'The value of `typeof Function.prototype.call` is expected to be "function"' +); + +assert.notSameValue( + typeof Function.prototype.call.length, + "undefined", + 'The value of typeof Function.prototype.call.length is not "undefined"' +); + +assert.sameValue(Function.prototype.call.length, 1, 'The value of Function.prototype.call.length is expected to be 1'); + +reportCompare(0, 0); |