diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A9.2.js')
-rw-r--r-- | js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A9.2.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A9.2.js b/js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A9.2.js new file mode 100644 index 0000000000..579e0e2438 --- /dev/null +++ b/js/src/tests/test262/built-ins/parseInt/S15.1.2.2_A9.2.js @@ -0,0 +1,17 @@ +// 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 parseInt does not have the attribute DontDelete +esid: sec-parseint-string-radix +description: Checking use hasOwnProperty, delete +---*/ + +assert.sameValue(parseInt.hasOwnProperty('length'), true, 'parseInt.hasOwnProperty(\'length\') must return true'); + +delete parseInt.length; + +assert.sameValue(parseInt.hasOwnProperty('length'), false, 'parseInt.hasOwnProperty(\'length\') must return false'); +assert.notSameValue(parseInt.length, undefined, 'The value of parseInt.length is expected to not equal ``undefined``'); + +reportCompare(0, 0); |