diff options
Diffstat (limited to 'test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js')
-rw-r--r-- | test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js new file mode 100644 index 000000000..29f714300 --- /dev/null +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js @@ -0,0 +1,19 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: > + The Date.prototype.getTime property "length" has { ReadOnly, ! + DontDelete, DontEnum } attributes +es5id: 15.9.5.9_A3_T2 +description: Checking DontDelete attribute +includes: [$FAIL.js] +---*/ + +if (delete Date.prototype.getTime.length !== true) { + $ERROR('#1: The Date.prototype.getTime.length property does not have the attributes DontDelete'); +} + +if (Date.prototype.getTime.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getTime.length property does not have the attributes DontDelete'); +} |