diff options
Diffstat (limited to 'test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js')
-rw-r--r-- | test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js new file mode 100644 index 000000000..8fec83d35 --- /dev/null +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.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 Date.prototype property "setTime" has { DontEnum } attributes +es5id: 15.9.5.27_A1_T2 +description: Checking absence of DontDelete attribute +includes: [$FAIL.js] +---*/ + +if (delete Date.prototype.setTime === false) { + $ERROR('#1: The Date.prototype.setTime property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setTime')) { + $FAIL('#2: The Date.prototype.setTime property has not the attributes DontDelete'); +} |