diff options
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.13_Date.prototype.getUTCMonth/S15.9.5.13_A1_T3.js')
1 files changed, 20 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.13_Date.prototype.getUTCMonth/S15.9.5.13_A1_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.13_Date.prototype.getUTCMonth/S15.9.5.13_A1_T3.js new file mode 100644 index 000000000..ca4fb8c45 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.13_Date.prototype.getUTCMonth/S15.9.5.13_A1_T3.js @@ -0,0 +1,20 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.5.13_A1_T3; + * @section: 15.9.5.13; + * @assertion: The Date.prototype property "getUTCMonth" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCMonth')) { + $ERROR('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCMonth") { + $ERROR('#2: The Date.prototype.getUTCMonth has the attribute DontEnum'); + } +} + |