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')
336 files changed, 6006 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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T1.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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T1.js new file mode 100644 index 000000000..746b9fe6a --- /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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T1.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. + +/** + * @name: S15.9.5.10_A1_T1; + * @section: 15.9.5.10; + * @assertion: The Date.prototype property "getFullYear" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getFullYear; +if(x === 1) + Date.prototype.getFullYear = 2; +else + Date.prototype.getFullYear = 1; +if (Date.prototype.getFullYear === x) { + $ERROR('#1: The Date.prototype.getFullYear has not the attribute ReadOnly'); +} + 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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T2.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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T2.js new file mode 100644 index 000000000..f91c896ad --- /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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T2.js @@ -0,0 +1,18 @@ +// 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.10_A1_T2; + * @section: 15.9.5.10; + * @assertion: The Date.prototype property "getFullYear" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getFullYear === false) { + $ERROR('#1: The Date.prototype.getFullYear property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getFullYear')) { + $FAIL('#2: The Date.prototype.getFullYear property has not the attributes DontDelete'); +} + 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.10_Date.prototype.getFullYear/S15.9.5.10_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.10_Date.prototype.getFullYear/S15.9.5.10_A1_T3.js new file mode 100644 index 000000000..ea0e1c9c8 --- /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.10_Date.prototype.getFullYear/S15.9.5.10_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.10_A1_T3; + * @section: 15.9.5.10; + * @assertion: The Date.prototype property "getFullYear" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getFullYear')) { + $ERROR('#1: The Date.prototype.getFullYear property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getFullYear") { + $ERROR('#2: The Date.prototype.getFullYear has the attribute DontEnum'); + } +} + 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.10_Date.prototype.getFullYear/S15.9.5.10_A2_T1.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.10_Date.prototype.getFullYear/S15.9.5.10_A2_T1.js new file mode 100644 index 000000000..96d586102 --- /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.10_Date.prototype.getFullYear/S15.9.5.10_A2_T1.js @@ -0,0 +1,18 @@ +// 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.10_A2_T1; + * @section: 15.9.5.10; + * @assertion: The "length" property of the "getFullYear" is 0; + * @description: The "length" property of the "getFullYear" is 0; + */ + +if(Date.prototype.getFullYear.hasOwnProperty("length") !== true){ + $ERROR('#1: The getFullYear has a "length" property'); +} + +if(Date.prototype.getFullYear.length !== 0){ + $ERROR('#2: The "length" property of the getFullYear is 0'); +} + 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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T1.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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T1.js new file mode 100644 index 000000000..f2a45e321 --- /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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T1.js @@ -0,0 +1,16 @@ +// 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.10_A3_T1; + * @section: 15.9.5.10; + * @assertion: The Date.prototype.getFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getFullYear.length; +Date.prototype.getFullYear.length = 1; +if (Date.prototype.getFullYear.length !== x) { + $ERROR('#1: The Date.prototype.getFullYear.length has the attribute ReadOnly'); +} + 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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T2.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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T2.js new file mode 100644 index 000000000..445495305 --- /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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T2.js @@ -0,0 +1,18 @@ +// 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.10_A3_T2; + * @section: 15.9.5.10; + * @assertion: The Date.prototype.getFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getFullYear.length !== false) { + $ERROR('#1: The Date.prototype.getFullYear.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getFullYear.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getFullYear.length property has the attributes DontDelete'); +} + 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.10_Date.prototype.getFullYear/S15.9.5.10_A3_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.10_Date.prototype.getFullYear/S15.9.5.10_A3_T3.js new file mode 100644 index 000000000..09ee4997f --- /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.10_Date.prototype.getFullYear/S15.9.5.10_A3_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.10_A3_T3; + * @section: 15.9.5.10; + * @assertion: The Date.prototype.getFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getFullYear.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getFullYear) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getFullYear.length has the attribute DontEnum'); + } +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T1.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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T1.js new file mode 100644 index 000000000..cefc215b0 --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T1.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. + +/** + * @name: S15.9.5.11_A1_T1; + * @section: 15.9.5.11; + * @assertion: The Date.prototype property "getUTCFullYear" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCFullYear; +if(x === 1) + Date.prototype.getUTCFullYear = 2; +else + Date.prototype.getUTCFullYear = 1; +if (Date.prototype.getUTCFullYear === x) { + $ERROR('#1: The Date.prototype.getUTCFullYear has not the attribute ReadOnly'); +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T2.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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T2.js new file mode 100644 index 000000000..8da9048e5 --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T2.js @@ -0,0 +1,18 @@ +// 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.11_A1_T2; + * @section: 15.9.5.11; + * @assertion: The Date.prototype property "getUTCFullYear" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCFullYear === false) { + $ERROR('#1: The Date.prototype.getUTCFullYear property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCFullYear')) { + $FAIL('#2: The Date.prototype.getUTCFullYear property has not the attributes DontDelete'); +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A1_T3.js new file mode 100644 index 000000000..7657e9a8f --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_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.11_A1_T3; + * @section: 15.9.5.11; + * @assertion: The Date.prototype property "getUTCFullYear" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCFullYear')) { + $ERROR('#1: The Date.prototype.getUTCFullYear property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCFullYear") { + $ERROR('#2: The Date.prototype.getUTCFullYear has the attribute DontEnum'); + } +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A2_T1.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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A2_T1.js new file mode 100644 index 000000000..a6fd5d27c --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A2_T1.js @@ -0,0 +1,18 @@ +// 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.11_A2_T1; + * @section: 15.9.5.11; + * @assertion: The "length" property of the "getUTCFullYear" is 0; + * @description: The "length" property of the "getUTCFullYear" is 0; + */ + +if(Date.prototype.getUTCFullYear.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCFullYear has a "length" property'); +} + +if(Date.prototype.getUTCFullYear.length !== 0){ + $ERROR('#2: The "length" property of the getUTCFullYear is 0'); +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T1.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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T1.js new file mode 100644 index 000000000..c40f8e3e8 --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T1.js @@ -0,0 +1,16 @@ +// 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.11_A3_T1; + * @section: 15.9.5.11; + * @assertion: The Date.prototype.getUTCFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCFullYear.length; +Date.prototype.getUTCFullYear.length = 1; +if (Date.prototype.getUTCFullYear.length !== x) { + $ERROR('#1: The Date.prototype.getUTCFullYear.length has the attribute ReadOnly'); +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T2.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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T2.js new file mode 100644 index 000000000..d0cae29dd --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T2.js @@ -0,0 +1,18 @@ +// 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.11_A3_T2; + * @section: 15.9.5.11; + * @assertion: The Date.prototype.getUTCFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCFullYear.length !== false) { + $ERROR('#1: The Date.prototype.getUTCFullYear.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCFullYear.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCFullYear.length property has the attributes DontDelete'); +} + 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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_T3.js new file mode 100644 index 000000000..d060e4b1d --- /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.11_Date.prototype.getUTCFullYear/S15.9.5.11_A3_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.11_A3_T3; + * @section: 15.9.5.11; + * @assertion: The Date.prototype.getUTCFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCFullYear.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCFullYear.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCFullYear) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCFullYear.length has the attribute DontEnum'); + } +} + 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.12_Date.prototype.getMonth/S15.9.5.12_A1_T1.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.12_Date.prototype.getMonth/S15.9.5.12_A1_T1.js new file mode 100644 index 000000000..bf1f947bb --- /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.12_Date.prototype.getMonth/S15.9.5.12_A1_T1.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. + +/** + * @name: S15.9.5.12_A1_T1; + * @section: 15.9.5.12; + * @assertion: The Date.prototype property "getMonth" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getMonth; +if(x === 1) + Date.prototype.getMonth = 2; +else + Date.prototype.getMonth = 1; +if (Date.prototype.getMonth === x) { + $ERROR('#1: The Date.prototype.getMonth has not the attribute ReadOnly'); +} + 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.12_Date.prototype.getMonth/S15.9.5.12_A1_T2.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.12_Date.prototype.getMonth/S15.9.5.12_A1_T2.js new file mode 100644 index 000000000..fbdf03f5a --- /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.12_Date.prototype.getMonth/S15.9.5.12_A1_T2.js @@ -0,0 +1,18 @@ +// 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.12_A1_T2; + * @section: 15.9.5.12; + * @assertion: The Date.prototype property "getMonth" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getMonth === false) { + $ERROR('#1: The Date.prototype.getMonth property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getMonth')) { + $FAIL('#2: The Date.prototype.getMonth property has not the attributes DontDelete'); +} + 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.12_Date.prototype.getMonth/S15.9.5.12_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.12_Date.prototype.getMonth/S15.9.5.12_A1_T3.js new file mode 100644 index 000000000..ee20259ab --- /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.12_Date.prototype.getMonth/S15.9.5.12_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.12_A1_T3; + * @section: 15.9.5.12; + * @assertion: The Date.prototype property "getMonth" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getMonth')) { + $ERROR('#1: The Date.prototype.getMonth property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getMonth") { + $ERROR('#2: The Date.prototype.getMonth has the attribute DontEnum'); + } +} + 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.12_Date.prototype.getMonth/S15.9.5.12_A2_T1.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.12_Date.prototype.getMonth/S15.9.5.12_A2_T1.js new file mode 100644 index 000000000..292f2dbcb --- /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.12_Date.prototype.getMonth/S15.9.5.12_A2_T1.js @@ -0,0 +1,18 @@ +// 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.12_A2_T1; + * @section: 15.9.5.12; + * @assertion: The "length" property of the "getMonth" is 0; + * @description: The "length" property of the "getMonth" is 0; + */ + +if(Date.prototype.getMonth.hasOwnProperty("length") !== true){ + $ERROR('#1: The getMonth has a "length" property'); +} + +if(Date.prototype.getMonth.length !== 0){ + $ERROR('#2: The "length" property of the getMonth is 0'); +} + 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.12_Date.prototype.getMonth/S15.9.5.12_A3_T1.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.12_Date.prototype.getMonth/S15.9.5.12_A3_T1.js new file mode 100644 index 000000000..2981306d7 --- /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.12_Date.prototype.getMonth/S15.9.5.12_A3_T1.js @@ -0,0 +1,16 @@ +// 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.12_A3_T1; + * @section: 15.9.5.12; + * @assertion: The Date.prototype.getMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getMonth.length; +Date.prototype.getMonth.length = 1; +if (Date.prototype.getMonth.length !== x) { + $ERROR('#1: The Date.prototype.getMonth.length has the attribute ReadOnly'); +} + 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.12_Date.prototype.getMonth/S15.9.5.12_A3_T2.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.12_Date.prototype.getMonth/S15.9.5.12_A3_T2.js new file mode 100644 index 000000000..62abc8b16 --- /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.12_Date.prototype.getMonth/S15.9.5.12_A3_T2.js @@ -0,0 +1,18 @@ +// 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.12_A3_T2; + * @section: 15.9.5.12; + * @assertion: The Date.prototype.getMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getMonth.length !== false) { + $ERROR('#1: The Date.prototype.getMonth.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getMonth.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getMonth.length property has the attributes DontDelete'); +} + 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.12_Date.prototype.getMonth/S15.9.5.12_A3_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.12_Date.prototype.getMonth/S15.9.5.12_A3_T3.js new file mode 100644 index 000000000..d8ab5b2f0 --- /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.12_Date.prototype.getMonth/S15.9.5.12_A3_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.12_A3_T3; + * @section: 15.9.5.12; + * @assertion: The Date.prototype.getMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getMonth.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getMonth.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getMonth) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getMonth.length has the attribute DontEnum'); + } +} + 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_T1.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_T1.js new file mode 100644 index 000000000..5f92792ca --- /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_T1.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. + +/** + * @name: S15.9.5.13_A1_T1; + * @section: 15.9.5.13; + * @assertion: The Date.prototype property "getUTCMonth" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCMonth; +if(x === 1) + Date.prototype.getUTCMonth = 2; +else + Date.prototype.getUTCMonth = 1; +if (Date.prototype.getUTCMonth === x) { + $ERROR('#1: The Date.prototype.getUTCMonth has not the attribute ReadOnly'); +} + 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_T2.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_T2.js new file mode 100644 index 000000000..4d49329a0 --- /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_T2.js @@ -0,0 +1,18 @@ +// 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_T2; + * @section: 15.9.5.13; + * @assertion: The Date.prototype property "getUTCMonth" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCMonth === false) { + $ERROR('#1: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCMonth')) { + $FAIL('#2: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); +} + 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'); + } +} + 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_A2_T1.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_A2_T1.js new file mode 100644 index 000000000..3438c8493 --- /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_A2_T1.js @@ -0,0 +1,18 @@ +// 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_A2_T1; + * @section: 15.9.5.13; + * @assertion: The "length" property of the "getUTCMonth" is 0; + * @description: The "length" property of the "getUTCMonth" is 0; + */ + +if(Date.prototype.getUTCMonth.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCMonth has a "length" property'); +} + +if(Date.prototype.getUTCMonth.length !== 0){ + $ERROR('#2: The "length" property of the getUTCMonth is 0'); +} + 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_A3_T1.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_A3_T1.js new file mode 100644 index 000000000..3951206ae --- /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_A3_T1.js @@ -0,0 +1,16 @@ +// 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_A3_T1; + * @section: 15.9.5.13; + * @assertion: The Date.prototype.getUTCMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCMonth.length; +Date.prototype.getUTCMonth.length = 1; +if (Date.prototype.getUTCMonth.length !== x) { + $ERROR('#1: The Date.prototype.getUTCMonth.length has the attribute ReadOnly'); +} + 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_A3_T2.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_A3_T2.js new file mode 100644 index 000000000..dbd859295 --- /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_A3_T2.js @@ -0,0 +1,18 @@ +// 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_A3_T2; + * @section: 15.9.5.13; + * @assertion: The Date.prototype.getUTCMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCMonth.length !== false) { + $ERROR('#1: The Date.prototype.getUTCMonth.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCMonth.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCMonth.length property has the attributes DontDelete'); +} + 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_A3_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_A3_T3.js new file mode 100644 index 000000000..7b417d062 --- /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_A3_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_A3_T3; + * @section: 15.9.5.13; + * @assertion: The Date.prototype.getUTCMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCMonth.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCMonth) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum'); + } +} + 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.14_Date.prototype.getDate/S15.9.5.14_A1_T1.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.14_Date.prototype.getDate/S15.9.5.14_A1_T1.js new file mode 100644 index 000000000..64fffba7e --- /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.14_Date.prototype.getDate/S15.9.5.14_A1_T1.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. + +/** + * @name: S15.9.5.14_A1_T1; + * @section: 15.9.5.14; + * @assertion: The Date.prototype property "getDate" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getDate; +if(x === 1) + Date.prototype.getDate = 2; +else + Date.prototype.getDate = 1; +if (Date.prototype.getDate === x) { + $ERROR('#1: The Date.prototype.getDate has not the attribute ReadOnly'); +} + 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.14_Date.prototype.getDate/S15.9.5.14_A1_T2.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.14_Date.prototype.getDate/S15.9.5.14_A1_T2.js new file mode 100644 index 000000000..63a312912 --- /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.14_Date.prototype.getDate/S15.9.5.14_A1_T2.js @@ -0,0 +1,18 @@ +// 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.14_A1_T2; + * @section: 15.9.5.14; + * @assertion: The Date.prototype property "getDate" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getDate === false) { + $ERROR('#1: The Date.prototype.getDate property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getDate')) { + $FAIL('#2: The Date.prototype.getDate property has not the attributes DontDelete'); +} + 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.14_Date.prototype.getDate/S15.9.5.14_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.14_Date.prototype.getDate/S15.9.5.14_A1_T3.js new file mode 100644 index 000000000..aa6291e32 --- /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.14_Date.prototype.getDate/S15.9.5.14_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.14_A1_T3; + * @section: 15.9.5.14; + * @assertion: The Date.prototype property "getDate" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getDate')) { + $ERROR('#1: The Date.prototype.getDate property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getDate") { + $ERROR('#2: The Date.prototype.getDate has the attribute DontEnum'); + } +} + 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.14_Date.prototype.getDate/S15.9.5.14_A2_T1.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.14_Date.prototype.getDate/S15.9.5.14_A2_T1.js new file mode 100644 index 000000000..ae54df4c2 --- /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.14_Date.prototype.getDate/S15.9.5.14_A2_T1.js @@ -0,0 +1,18 @@ +// 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.14_A2_T1; + * @section: 15.9.5.14; + * @assertion: The "length" property of the "getDate" is 0; + * @description: The "length" property of the "getDate" is 0; + */ + +if(Date.prototype.getDate.hasOwnProperty("length") !== true){ + $ERROR('#1: The getDate has a "length" property'); +} + +if(Date.prototype.getDate.length !== 0){ + $ERROR('#2: The "length" property of the getDate is 0'); +} + 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.14_Date.prototype.getDate/S15.9.5.14_A3_T1.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.14_Date.prototype.getDate/S15.9.5.14_A3_T1.js new file mode 100644 index 000000000..b6a94211b --- /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.14_Date.prototype.getDate/S15.9.5.14_A3_T1.js @@ -0,0 +1,16 @@ +// 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.14_A3_T1; + * @section: 15.9.5.14; + * @assertion: The Date.prototype.getDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getDate.length; +Date.prototype.getDate.length = 1; +if (Date.prototype.getDate.length !== x) { + $ERROR('#1: The Date.prototype.getDate.length has the attribute ReadOnly'); +} + 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.14_Date.prototype.getDate/S15.9.5.14_A3_T2.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.14_Date.prototype.getDate/S15.9.5.14_A3_T2.js new file mode 100644 index 000000000..56ba23355 --- /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.14_Date.prototype.getDate/S15.9.5.14_A3_T2.js @@ -0,0 +1,18 @@ +// 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.14_A3_T2; + * @section: 15.9.5.14; + * @assertion: The Date.prototype.getDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getDate.length !== false) { + $ERROR('#1: The Date.prototype.getDate.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getDate.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getDate.length property has the attributes DontDelete'); +} + 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.14_Date.prototype.getDate/S15.9.5.14_A3_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.14_Date.prototype.getDate/S15.9.5.14_A3_T3.js new file mode 100644 index 000000000..bcedeb676 --- /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.14_Date.prototype.getDate/S15.9.5.14_A3_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.14_A3_T3; + * @section: 15.9.5.14; + * @assertion: The Date.prototype.getDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getDate.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getDate.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getDate) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getDate.length has the attribute DontEnum'); + } +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T1.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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T1.js new file mode 100644 index 000000000..f90d8dc44 --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T1.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. + +/** + * @name: S15.9.5.15_A1_T1; + * @section: 15.9.5.15; + * @assertion: The Date.prototype property "getUTCDate" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCDate; +if(x === 1) + Date.prototype.getUTCDate = 2; +else + Date.prototype.getUTCDate = 1; +if (Date.prototype.getUTCDate === x) { + $ERROR('#1: The Date.prototype.getUTCDate has not the attribute ReadOnly'); +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T2.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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T2.js new file mode 100644 index 000000000..3f03923be --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T2.js @@ -0,0 +1,18 @@ +// 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.15_A1_T2; + * @section: 15.9.5.15; + * @assertion: The Date.prototype property "getUTCDate" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCDate === false) { + $ERROR('#1: The Date.prototype.getUTCDate property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCDate')) { + $FAIL('#2: The Date.prototype.getUTCDate property has not the attributes DontDelete'); +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_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.15_Date.prototype.getUTCDate/S15.9.5.15_A1_T3.js new file mode 100644 index 000000000..310890c62 --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_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.15_A1_T3; + * @section: 15.9.5.15; + * @assertion: The Date.prototype property "getUTCDate" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCDate')) { + $ERROR('#1: The Date.prototype.getUTCDate property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCDate") { + $ERROR('#2: The Date.prototype.getUTCDate has the attribute DontEnum'); + } +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_A2_T1.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.15_Date.prototype.getUTCDate/S15.9.5.15_A2_T1.js new file mode 100644 index 000000000..eee73522a --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_A2_T1.js @@ -0,0 +1,18 @@ +// 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.15_A2_T1; + * @section: 15.9.5.15; + * @assertion: The "length" property of the "getUTCDate" is 0; + * @description: The "length" property of the "getUTCDate" is 0; + */ + +if(Date.prototype.getUTCDate.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCDate has a "length" property'); +} + +if(Date.prototype.getUTCDate.length !== 0){ + $ERROR('#2: The "length" property of the getUTCDate is 0'); +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T1.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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T1.js new file mode 100644 index 000000000..d6764061e --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T1.js @@ -0,0 +1,16 @@ +// 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.15_A3_T1; + * @section: 15.9.5.15; + * @assertion: The Date.prototype.getUTCDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCDate.length; +Date.prototype.getUTCDate.length = 1; +if (Date.prototype.getUTCDate.length !== x) { + $ERROR('#1: The Date.prototype.getUTCDate.length has the attribute ReadOnly'); +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T2.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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T2.js new file mode 100644 index 000000000..4ef1a6e6b --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T2.js @@ -0,0 +1,18 @@ +// 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.15_A3_T2; + * @section: 15.9.5.15; + * @assertion: The Date.prototype.getUTCDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCDate.length !== false) { + $ERROR('#1: The Date.prototype.getUTCDate.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCDate.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCDate.length property has the attributes DontDelete'); +} + 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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_T3.js new file mode 100644 index 000000000..ee38abfd8 --- /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.15_Date.prototype.getUTCDate/S15.9.5.15_A3_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.15_A3_T3; + * @section: 15.9.5.15; + * @assertion: The Date.prototype.getUTCDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCDate.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCDate.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCDate) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCDate.length has the attribute DontEnum'); + } +} + 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.16_Date.prototype.getDay/S15.9.5.16_A1_T1.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.16_Date.prototype.getDay/S15.9.5.16_A1_T1.js new file mode 100644 index 000000000..de892d854 --- /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.16_Date.prototype.getDay/S15.9.5.16_A1_T1.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. + +/** + * @name: S15.9.5.16_A1_T1; + * @section: 15.9.5.16; + * @assertion: The Date.prototype property "getDay" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getDay; +if(x === 1) + Date.prototype.getDay = 2; +else + Date.prototype.getDay = 1; +if (Date.prototype.getDay === x) { + $ERROR('#1: The Date.prototype.getDay has not the attribute ReadOnly'); +} + 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.16_Date.prototype.getDay/S15.9.5.16_A1_T2.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.16_Date.prototype.getDay/S15.9.5.16_A1_T2.js new file mode 100644 index 000000000..09664b024 --- /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.16_Date.prototype.getDay/S15.9.5.16_A1_T2.js @@ -0,0 +1,18 @@ +// 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.16_A1_T2; + * @section: 15.9.5.16; + * @assertion: The Date.prototype property "getDay" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getDay === false) { + $ERROR('#1: The Date.prototype.getDay property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getDay')) { + $FAIL('#2: The Date.prototype.getDay property has not the attributes DontDelete'); +} + 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.16_Date.prototype.getDay/S15.9.5.16_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.16_Date.prototype.getDay/S15.9.5.16_A1_T3.js new file mode 100644 index 000000000..51a3b6b8d --- /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.16_Date.prototype.getDay/S15.9.5.16_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.16_A1_T3; + * @section: 15.9.5.16; + * @assertion: The Date.prototype property "getDay" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getDay')) { + $ERROR('#1: The Date.prototype.getDay property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getDay") { + $ERROR('#2: The Date.prototype.getDay has the attribute DontEnum'); + } +} + 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.16_Date.prototype.getDay/S15.9.5.16_A2_T1.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.16_Date.prototype.getDay/S15.9.5.16_A2_T1.js new file mode 100644 index 000000000..52de373e6 --- /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.16_Date.prototype.getDay/S15.9.5.16_A2_T1.js @@ -0,0 +1,18 @@ +// 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.16_A2_T1; + * @section: 15.9.5.16; + * @assertion: The "length" property of the "getDay" is 0; + * @description: The "length" property of the "getDay" is 0; + */ + +if(Date.prototype.getDay.hasOwnProperty("length") !== true){ + $ERROR('#1: The getDay has a "length" property'); +} + +if(Date.prototype.getDay.length !== 0){ + $ERROR('#2: The "length" property of the getDay is 0'); +} + 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.16_Date.prototype.getDay/S15.9.5.16_A3_T1.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.16_Date.prototype.getDay/S15.9.5.16_A3_T1.js new file mode 100644 index 000000000..670debaad --- /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.16_Date.prototype.getDay/S15.9.5.16_A3_T1.js @@ -0,0 +1,16 @@ +// 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.16_A3_T1; + * @section: 15.9.5.16; + * @assertion: The Date.prototype.getDay property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getDay.length; +Date.prototype.getDay.length = 1; +if (Date.prototype.getDay.length !== x) { + $ERROR('#1: The Date.prototype.getDay.length has the attribute ReadOnly'); +} + 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.16_Date.prototype.getDay/S15.9.5.16_A3_T2.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.16_Date.prototype.getDay/S15.9.5.16_A3_T2.js new file mode 100644 index 000000000..068a286c9 --- /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.16_Date.prototype.getDay/S15.9.5.16_A3_T2.js @@ -0,0 +1,18 @@ +// 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.16_A3_T2; + * @section: 15.9.5.16; + * @assertion: The Date.prototype.getDay property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getDay.length !== false) { + $ERROR('#1: The Date.prototype.getDay.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getDay.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getDay.length property has the attributes DontDelete'); +} + 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.16_Date.prototype.getDay/S15.9.5.16_A3_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.16_Date.prototype.getDay/S15.9.5.16_A3_T3.js new file mode 100644 index 000000000..c8b74fb53 --- /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.16_Date.prototype.getDay/S15.9.5.16_A3_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.16_A3_T3; + * @section: 15.9.5.16; + * @assertion: The Date.prototype.getDay property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getDay.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getDay.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getDay) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getDay.length has the attribute DontEnum'); + } +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T1.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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T1.js new file mode 100644 index 000000000..6013476af --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T1.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. + +/** + * @name: S15.9.5.17_A1_T1; + * @section: 15.9.5.17; + * @assertion: The Date.prototype property "getUTCDay" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCDay; +if(x === 1) + Date.prototype.getUTCDay = 2; +else + Date.prototype.getUTCDay = 1; +if (Date.prototype.getUTCDay === x) { + $ERROR('#1: The Date.prototype.getUTCDay has not the attribute ReadOnly'); +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T2.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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T2.js new file mode 100644 index 000000000..1eb3bfb9a --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T2.js @@ -0,0 +1,18 @@ +// 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.17_A1_T2; + * @section: 15.9.5.17; + * @assertion: The Date.prototype property "getUTCDay" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCDay === false) { + $ERROR('#1: The Date.prototype.getUTCDay property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCDay')) { + $FAIL('#2: The Date.prototype.getUTCDay property has not the attributes DontDelete'); +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_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.17_Date.prototype.getUTCDay/S15.9.5.17_A1_T3.js new file mode 100644 index 000000000..b7e4164c1 --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_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.17_A1_T3; + * @section: 15.9.5.17; + * @assertion: The Date.prototype property "getUTCDay" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCDay')) { + $ERROR('#1: The Date.prototype.getUTCDay property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCDay") { + $ERROR('#2: The Date.prototype.getUTCDay has the attribute DontEnum'); + } +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_A2_T1.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.17_Date.prototype.getUTCDay/S15.9.5.17_A2_T1.js new file mode 100644 index 000000000..18eeb1cd3 --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_A2_T1.js @@ -0,0 +1,18 @@ +// 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.17_A2_T1; + * @section: 15.9.5.17; + * @assertion: The "length" property of the "getUTCDay" is 0; + * @description: The "length" property of the "getUTCDay" is 0; + */ + +if(Date.prototype.getUTCDay.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCDay has a "length" property'); +} + +if(Date.prototype.getUTCDay.length !== 0){ + $ERROR('#2: The "length" property of the getUTCDay is 0'); +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T1.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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T1.js new file mode 100644 index 000000000..b11957db7 --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T1.js @@ -0,0 +1,16 @@ +// 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.17_A3_T1; + * @section: 15.9.5.17; + * @assertion: The Date.prototype.getUTCDay property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCDay.length; +Date.prototype.getUTCDay.length = 1; +if (Date.prototype.getUTCDay.length !== x) { + $ERROR('#1: The Date.prototype.getUTCDay.length has the attribute ReadOnly'); +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T2.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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T2.js new file mode 100644 index 000000000..5a8ef75b2 --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T2.js @@ -0,0 +1,18 @@ +// 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.17_A3_T2; + * @section: 15.9.5.17; + * @assertion: The Date.prototype.getUTCDay property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCDay.length !== false) { + $ERROR('#1: The Date.prototype.getUTCDay.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCDay.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCDay.length property has the attributes DontDelete'); +} + 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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_T3.js new file mode 100644 index 000000000..23285e024 --- /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.17_Date.prototype.getUTCDay/S15.9.5.17_A3_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.17_A3_T3; + * @section: 15.9.5.17; + * @assertion: The Date.prototype.getUTCDay property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCDay.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCDay.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCDay) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCDay.length has the attribute DontEnum'); + } +} + 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.18_Date.prototype.getHours/S15.9.5.18_A1_T1.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.18_Date.prototype.getHours/S15.9.5.18_A1_T1.js new file mode 100644 index 000000000..61cb49279 --- /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.18_Date.prototype.getHours/S15.9.5.18_A1_T1.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. + +/** + * @name: S15.9.5.18_A1_T1; + * @section: 15.9.5.18; + * @assertion: The Date.prototype property "getHours" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getHours; +if(x === 1) + Date.prototype.getHours = 2; +else + Date.prototype.getHours = 1; +if (Date.prototype.getHours === x) { + $ERROR('#1: The Date.prototype.getHours has not the attribute ReadOnly'); +} + 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.18_Date.prototype.getHours/S15.9.5.18_A1_T2.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.18_Date.prototype.getHours/S15.9.5.18_A1_T2.js new file mode 100644 index 000000000..7fa0e360b --- /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.18_Date.prototype.getHours/S15.9.5.18_A1_T2.js @@ -0,0 +1,18 @@ +// 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.18_A1_T2; + * @section: 15.9.5.18; + * @assertion: The Date.prototype property "getHours" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getHours === false) { + $ERROR('#1: The Date.prototype.getHours property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getHours')) { + $FAIL('#2: The Date.prototype.getHours property has not the attributes DontDelete'); +} + 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.18_Date.prototype.getHours/S15.9.5.18_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.18_Date.prototype.getHours/S15.9.5.18_A1_T3.js new file mode 100644 index 000000000..f840fa275 --- /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.18_Date.prototype.getHours/S15.9.5.18_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.18_A1_T3; + * @section: 15.9.5.18; + * @assertion: The Date.prototype property "getHours" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getHours')) { + $ERROR('#1: The Date.prototype.getHours property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getHours") { + $ERROR('#2: The Date.prototype.getHours has the attribute DontEnum'); + } +} + 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.18_Date.prototype.getHours/S15.9.5.18_A2_T1.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.18_Date.prototype.getHours/S15.9.5.18_A2_T1.js new file mode 100644 index 000000000..7f29a38e5 --- /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.18_Date.prototype.getHours/S15.9.5.18_A2_T1.js @@ -0,0 +1,18 @@ +// 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.18_A2_T1; + * @section: 15.9.5.18; + * @assertion: The "length" property of the "getHours" is 0; + * @description: The "length" property of the "getHours" is 0; + */ + +if(Date.prototype.getHours.hasOwnProperty("length") !== true){ + $ERROR('#1: The getHours has a "length" property'); +} + +if(Date.prototype.getHours.length !== 0){ + $ERROR('#2: The "length" property of the getHours is 0'); +} + 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.18_Date.prototype.getHours/S15.9.5.18_A3_T1.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.18_Date.prototype.getHours/S15.9.5.18_A3_T1.js new file mode 100644 index 000000000..5638f79f8 --- /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.18_Date.prototype.getHours/S15.9.5.18_A3_T1.js @@ -0,0 +1,16 @@ +// 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.18_A3_T1; + * @section: 15.9.5.18; + * @assertion: The Date.prototype.getHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getHours.length; +Date.prototype.getHours.length = 1; +if (Date.prototype.getHours.length !== x) { + $ERROR('#1: The Date.prototype.getHours.length has the attribute ReadOnly'); +} + 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.18_Date.prototype.getHours/S15.9.5.18_A3_T2.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.18_Date.prototype.getHours/S15.9.5.18_A3_T2.js new file mode 100644 index 000000000..db4857f23 --- /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.18_Date.prototype.getHours/S15.9.5.18_A3_T2.js @@ -0,0 +1,18 @@ +// 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.18_A3_T2; + * @section: 15.9.5.18; + * @assertion: The Date.prototype.getHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getHours.length !== false) { + $ERROR('#1: The Date.prototype.getHours.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getHours.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getHours.length property has the attributes DontDelete'); +} + 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.18_Date.prototype.getHours/S15.9.5.18_A3_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.18_Date.prototype.getHours/S15.9.5.18_A3_T3.js new file mode 100644 index 000000000..35c912829 --- /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.18_Date.prototype.getHours/S15.9.5.18_A3_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.18_A3_T3; + * @section: 15.9.5.18; + * @assertion: The Date.prototype.getHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getHours.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getHours.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getHours) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getHours.length has the attribute DontEnum'); + } +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T1.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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T1.js new file mode 100644 index 000000000..425d1ead1 --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T1.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. + +/** + * @name: S15.9.5.19_A1_T1; + * @section: 15.9.5.19; + * @assertion: The Date.prototype property "getUTCHours" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCHours; +if(x === 1) + Date.prototype.getUTCHours = 2; +else + Date.prototype.getUTCHours = 1; +if (Date.prototype.getUTCHours === x) { + $ERROR('#1: The Date.prototype.getUTCHours has not the attribute ReadOnly'); +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T2.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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T2.js new file mode 100644 index 000000000..a99d954e2 --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T2.js @@ -0,0 +1,18 @@ +// 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.19_A1_T2; + * @section: 15.9.5.19; + * @assertion: The Date.prototype property "getUTCHours" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCHours === false) { + $ERROR('#1: The Date.prototype.getUTCHours property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCHours')) { + $FAIL('#2: The Date.prototype.getUTCHours property has not the attributes DontDelete'); +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_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.19_Date.prototype.getUTCHours/S15.9.5.19_A1_T3.js new file mode 100644 index 000000000..5cff85138 --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_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.19_A1_T3; + * @section: 15.9.5.19; + * @assertion: The Date.prototype property "getUTCHours" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCHours')) { + $ERROR('#1: The Date.prototype.getUTCHours property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCHours") { + $ERROR('#2: The Date.prototype.getUTCHours has the attribute DontEnum'); + } +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_A2_T1.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.19_Date.prototype.getUTCHours/S15.9.5.19_A2_T1.js new file mode 100644 index 000000000..01e45c440 --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_A2_T1.js @@ -0,0 +1,18 @@ +// 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.19_A2_T1; + * @section: 15.9.5.19; + * @assertion: The "length" property of the "getUTCHours" is 0; + * @description: The "length" property of the "getUTCHours" is 0; + */ + +if(Date.prototype.getUTCHours.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCHours has a "length" property'); +} + +if(Date.prototype.getUTCHours.length !== 0){ + $ERROR('#2: The "length" property of the getUTCHours is 0'); +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T1.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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T1.js new file mode 100644 index 000000000..7f6ba1e8d --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T1.js @@ -0,0 +1,16 @@ +// 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.19_A3_T1; + * @section: 15.9.5.19; + * @assertion: The Date.prototype.getUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCHours.length; +Date.prototype.getUTCHours.length = 1; +if (Date.prototype.getUTCHours.length !== x) { + $ERROR('#1: The Date.prototype.getUTCHours.length has the attribute ReadOnly'); +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T2.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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T2.js new file mode 100644 index 000000000..3b696a618 --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T2.js @@ -0,0 +1,18 @@ +// 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.19_A3_T2; + * @section: 15.9.5.19; + * @assertion: The Date.prototype.getUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCHours.length !== false) { + $ERROR('#1: The Date.prototype.getUTCHours.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCHours.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCHours.length property has the attributes DontDelete'); +} + 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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_T3.js new file mode 100644 index 000000000..5b862e760 --- /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.19_Date.prototype.getUTCHours/S15.9.5.19_A3_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.19_A3_T3; + * @section: 15.9.5.19; + * @assertion: The Date.prototype.getUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCHours.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCHours) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum'); + } +} + 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.1_Date.prototype.constructor/S15.9.5.1_A1_T1.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.1_Date.prototype.constructor/S15.9.5.1_A1_T1.js new file mode 100644 index 000000000..58c5b3413 --- /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.1_Date.prototype.constructor/S15.9.5.1_A1_T1.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. + +/** + * @name: S15.9.5.1_A1_T1; + * @section: 15.9.5.1; + * @assertion: The Date.prototype property "constructor" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.constructor; +if(x === 1) + Date.prototype.constructor = 2; +else + Date.prototype.constructor = 1; +if (Date.prototype.constructor === x) { + $ERROR('#1: The Date.prototype.constructor has not the attribute ReadOnly'); +} + 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.1_Date.prototype.constructor/S15.9.5.1_A1_T2.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.1_Date.prototype.constructor/S15.9.5.1_A1_T2.js new file mode 100644 index 000000000..1fdf52c67 --- /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.1_Date.prototype.constructor/S15.9.5.1_A1_T2.js @@ -0,0 +1,18 @@ +// 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.1_A1_T2; + * @section: 15.9.5.1; + * @assertion: The Date.prototype property "constructor" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.constructor === false) { + $ERROR('#1: The Date.prototype.constructor property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('constructor')) { + $FAIL('#2: The Date.prototype.constructor property has not the attributes DontDelete'); +} + 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.1_Date.prototype.constructor/S15.9.5.1_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.1_Date.prototype.constructor/S15.9.5.1_A1_T3.js new file mode 100644 index 000000000..bcb7e4607 --- /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.1_Date.prototype.constructor/S15.9.5.1_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.1_A1_T3; + * @section: 15.9.5.1; + * @assertion: The Date.prototype property "constructor" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('constructor')) { + $ERROR('#1: The Date.prototype.constructor property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "constructor") { + $ERROR('#2: The Date.prototype.constructor has the attribute DontEnum'); + } +} + 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.1_Date.prototype.constructor/S15.9.5.1_A2_T1.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.1_Date.prototype.constructor/S15.9.5.1_A2_T1.js new file mode 100644 index 000000000..217f094fd --- /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.1_Date.prototype.constructor/S15.9.5.1_A2_T1.js @@ -0,0 +1,18 @@ +// 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.1_A2_T1; + * @section: 15.9.5.1; + * @assertion: The "length" property of the "constructor" is 7; + * @description: The "length" property of the "constructor" is 7; + */ + +if(Date.prototype.constructor.hasOwnProperty("length") !== true){ + $ERROR('#1: The constructor has a "length" property'); +} + +if(Date.prototype.constructor.length !== 7){ + $ERROR('#2: The "length" property of the constructor is 7'); +} + 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.1_Date.prototype.constructor/S15.9.5.1_A3_T1.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.1_Date.prototype.constructor/S15.9.5.1_A3_T1.js new file mode 100644 index 000000000..ad32d3528 --- /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.1_Date.prototype.constructor/S15.9.5.1_A3_T1.js @@ -0,0 +1,16 @@ +// 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.1_A3_T1; + * @section: 15.9.5.1; + * @assertion: The Date.prototype.constructor property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.constructor.length; +Date.prototype.constructor.length = 1; +if (Date.prototype.constructor.length !== x) { + $ERROR('#1: The Date.prototype.constructor.length has the attribute ReadOnly'); +} + 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.1_Date.prototype.constructor/S15.9.5.1_A3_T2.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.1_Date.prototype.constructor/S15.9.5.1_A3_T2.js new file mode 100644 index 000000000..159db1f30 --- /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.1_Date.prototype.constructor/S15.9.5.1_A3_T2.js @@ -0,0 +1,18 @@ +// 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.1_A3_T2; + * @section: 15.9.5.1; + * @assertion: The Date.prototype.constructor property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.constructor.length !== false) { + $ERROR('#1: The Date.prototype.constructor.length property has the attributes DontDelete'); +} + +if (!Date.prototype.constructor.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.constructor.length property has the attributes DontDelete'); +} + 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.1_Date.prototype.constructor/S15.9.5.1_A3_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.1_Date.prototype.constructor/S15.9.5.1_A3_T3.js new file mode 100644 index 000000000..354f5a8ef --- /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.1_Date.prototype.constructor/S15.9.5.1_A3_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.1_A3_T3; + * @section: 15.9.5.1; + * @assertion: The Date.prototype.constructor property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.constructor.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.constructor.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.constructor) { + if(x === "length") { + $ERROR('#2: The Date.prototype.constructor.length has the attribute DontEnum'); + } +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T1.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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T1.js new file mode 100644 index 000000000..00aa46862 --- /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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T1.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. + +/** + * @name: S15.9.5.20_A1_T1; + * @section: 15.9.5.20; + * @assertion: The Date.prototype property "getMinutes" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getMinutes; +if(x === 1) + Date.prototype.getMinutes = 2; +else + Date.prototype.getMinutes = 1; +if (Date.prototype.getMinutes === x) { + $ERROR('#1: The Date.prototype.getMinutes has not the attribute ReadOnly'); +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T2.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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T2.js new file mode 100644 index 000000000..1e4d74a14 --- /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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T2.js @@ -0,0 +1,18 @@ +// 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.20_A1_T2; + * @section: 15.9.5.20; + * @assertion: The Date.prototype property "getMinutes" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getMinutes === false) { + $ERROR('#1: The Date.prototype.getMinutes property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getMinutes')) { + $FAIL('#2: The Date.prototype.getMinutes property has not the attributes DontDelete'); +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_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.20_Date.prototype.getMinutes/S15.9.5.20_A1_T3.js new file mode 100644 index 000000000..f0b359030 --- /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.20_Date.prototype.getMinutes/S15.9.5.20_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.20_A1_T3; + * @section: 15.9.5.20; + * @assertion: The Date.prototype property "getMinutes" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getMinutes')) { + $ERROR('#1: The Date.prototype.getMinutes property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getMinutes") { + $ERROR('#2: The Date.prototype.getMinutes has the attribute DontEnum'); + } +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_A2_T1.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.20_Date.prototype.getMinutes/S15.9.5.20_A2_T1.js new file mode 100644 index 000000000..7c1f6f650 --- /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.20_Date.prototype.getMinutes/S15.9.5.20_A2_T1.js @@ -0,0 +1,18 @@ +// 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.20_A2_T1; + * @section: 15.9.5.20; + * @assertion: The "length" property of the "getMinutes" is 0; + * @description: The "length" property of the "getMinutes" is 0; + */ + +if(Date.prototype.getMinutes.hasOwnProperty("length") !== true){ + $ERROR('#1: The getMinutes has a "length" property'); +} + +if(Date.prototype.getMinutes.length !== 0){ + $ERROR('#2: The "length" property of the getMinutes is 0'); +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T1.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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T1.js new file mode 100644 index 000000000..088e50eda --- /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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T1.js @@ -0,0 +1,16 @@ +// 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.20_A3_T1; + * @section: 15.9.5.20; + * @assertion: The Date.prototype.getMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getMinutes.length; +Date.prototype.getMinutes.length = 1; +if (Date.prototype.getMinutes.length !== x) { + $ERROR('#1: The Date.prototype.getMinutes.length has the attribute ReadOnly'); +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T2.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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T2.js new file mode 100644 index 000000000..661809ac4 --- /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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T2.js @@ -0,0 +1,18 @@ +// 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.20_A3_T2; + * @section: 15.9.5.20; + * @assertion: The Date.prototype.getMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getMinutes.length !== false) { + $ERROR('#1: The Date.prototype.getMinutes.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getMinutes.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getMinutes.length property has the attributes DontDelete'); +} + 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.20_Date.prototype.getMinutes/S15.9.5.20_A3_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.20_Date.prototype.getMinutes/S15.9.5.20_A3_T3.js new file mode 100644 index 000000000..fe8e48cc5 --- /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.20_Date.prototype.getMinutes/S15.9.5.20_A3_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.20_A3_T3; + * @section: 15.9.5.20; + * @assertion: The Date.prototype.getMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getMinutes.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getMinutes.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getMinutes) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getMinutes.length has the attribute DontEnum'); + } +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T1.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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T1.js new file mode 100644 index 000000000..839c0fbaf --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T1.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. + +/** + * @name: S15.9.5.21_A1_T1; + * @section: 15.9.5.21; + * @assertion: The Date.prototype property "getUTCMinutes" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCMinutes; +if(x === 1) + Date.prototype.getUTCMinutes = 2; +else + Date.prototype.getUTCMinutes = 1; +if (Date.prototype.getUTCMinutes === x) { + $ERROR('#1: The Date.prototype.getUTCMinutes has not the attribute ReadOnly'); +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T2.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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T2.js new file mode 100644 index 000000000..1915f9da4 --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T2.js @@ -0,0 +1,18 @@ +// 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.21_A1_T2; + * @section: 15.9.5.21; + * @assertion: The Date.prototype property "getUTCMinutes" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCMinutes === false) { + $ERROR('#1: The Date.prototype.getUTCMinutes property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCMinutes')) { + $FAIL('#2: The Date.prototype.getUTCMinutes property has not the attributes DontDelete'); +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A1_T3.js new file mode 100644 index 000000000..5734d5028 --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_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.21_A1_T3; + * @section: 15.9.5.21; + * @assertion: The Date.prototype property "getUTCMinutes" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCMinutes')) { + $ERROR('#1: The Date.prototype.getUTCMinutes property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCMinutes") { + $ERROR('#2: The Date.prototype.getUTCMinutes has the attribute DontEnum'); + } +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A2_T1.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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A2_T1.js new file mode 100644 index 000000000..b83a09d5b --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A2_T1.js @@ -0,0 +1,18 @@ +// 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.21_A2_T1; + * @section: 15.9.5.21; + * @assertion: The "length" property of the "getUTCMinutes" is 0; + * @description: The "length" property of the "getUTCMinutes" is 0; + */ + +if(Date.prototype.getUTCMinutes.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCMinutes has a "length" property'); +} + +if(Date.prototype.getUTCMinutes.length !== 0){ + $ERROR('#2: The "length" property of the getUTCMinutes is 0'); +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T1.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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T1.js new file mode 100644 index 000000000..44556c9a8 --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T1.js @@ -0,0 +1,16 @@ +// 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.21_A3_T1; + * @section: 15.9.5.21; + * @assertion: The Date.prototype.getUTCMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCMinutes.length; +Date.prototype.getUTCMinutes.length = 1; +if (Date.prototype.getUTCMinutes.length !== x) { + $ERROR('#1: The Date.prototype.getUTCMinutes.length has the attribute ReadOnly'); +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T2.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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T2.js new file mode 100644 index 000000000..858e9ca19 --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T2.js @@ -0,0 +1,18 @@ +// 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.21_A3_T2; + * @section: 15.9.5.21; + * @assertion: The Date.prototype.getUTCMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCMinutes.length !== false) { + $ERROR('#1: The Date.prototype.getUTCMinutes.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCMinutes.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCMinutes.length property has the attributes DontDelete'); +} + 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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_T3.js new file mode 100644 index 000000000..62c4607bc --- /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.21_Date.prototype.getUTCMinutes/S15.9.5.21_A3_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.21_A3_T3; + * @section: 15.9.5.21; + * @assertion: The Date.prototype.getUTCMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCMinutes.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCMinutes.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCMinutes) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCMinutes.length has the attribute DontEnum'); + } +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T1.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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T1.js new file mode 100644 index 000000000..08540f630 --- /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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T1.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. + +/** + * @name: S15.9.5.22_A1_T1; + * @section: 15.9.5.22; + * @assertion: The Date.prototype property "getSeconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getSeconds; +if(x === 1) + Date.prototype.getSeconds = 2; +else + Date.prototype.getSeconds = 1; +if (Date.prototype.getSeconds === x) { + $ERROR('#1: The Date.prototype.getSeconds has not the attribute ReadOnly'); +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T2.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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T2.js new file mode 100644 index 000000000..3dacaab68 --- /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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T2.js @@ -0,0 +1,18 @@ +// 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.22_A1_T2; + * @section: 15.9.5.22; + * @assertion: The Date.prototype property "getSeconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getSeconds === false) { + $ERROR('#1: The Date.prototype.getSeconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getSeconds')) { + $FAIL('#2: The Date.prototype.getSeconds property has not the attributes DontDelete'); +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_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.22_Date.prototype.getSeconds/S15.9.5.22_A1_T3.js new file mode 100644 index 000000000..2e54b3174 --- /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.22_Date.prototype.getSeconds/S15.9.5.22_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.22_A1_T3; + * @section: 15.9.5.22; + * @assertion: The Date.prototype property "getSeconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getSeconds')) { + $ERROR('#1: The Date.prototype.getSeconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getSeconds") { + $ERROR('#2: The Date.prototype.getSeconds has the attribute DontEnum'); + } +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_A2_T1.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.22_Date.prototype.getSeconds/S15.9.5.22_A2_T1.js new file mode 100644 index 000000000..1767bc0b5 --- /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.22_Date.prototype.getSeconds/S15.9.5.22_A2_T1.js @@ -0,0 +1,18 @@ +// 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.22_A2_T1; + * @section: 15.9.5.22; + * @assertion: The "length" property of the "getSeconds" is 0; + * @description: The "length" property of the "getSeconds" is 0; + */ + +if(Date.prototype.getSeconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The getSeconds has a "length" property'); +} + +if(Date.prototype.getSeconds.length !== 0){ + $ERROR('#2: The "length" property of the getSeconds is 0'); +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T1.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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T1.js new file mode 100644 index 000000000..d4e0803e1 --- /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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T1.js @@ -0,0 +1,16 @@ +// 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.22_A3_T1; + * @section: 15.9.5.22; + * @assertion: The Date.prototype.getSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getSeconds.length; +Date.prototype.getSeconds.length = 1; +if (Date.prototype.getSeconds.length !== x) { + $ERROR('#1: The Date.prototype.getSeconds.length has the attribute ReadOnly'); +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T2.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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T2.js new file mode 100644 index 000000000..7a149aad2 --- /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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T2.js @@ -0,0 +1,18 @@ +// 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.22_A3_T2; + * @section: 15.9.5.22; + * @assertion: The Date.prototype.getSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getSeconds.length !== false) { + $ERROR('#1: The Date.prototype.getSeconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getSeconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getSeconds.length property has the attributes DontDelete'); +} + 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.22_Date.prototype.getSeconds/S15.9.5.22_A3_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.22_Date.prototype.getSeconds/S15.9.5.22_A3_T3.js new file mode 100644 index 000000000..b1f918d2b --- /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.22_Date.prototype.getSeconds/S15.9.5.22_A3_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.22_A3_T3; + * @section: 15.9.5.22; + * @assertion: The Date.prototype.getSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getSeconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getSeconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getSeconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getSeconds.length has the attribute DontEnum'); + } +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T1.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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T1.js new file mode 100644 index 000000000..f109d931c --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T1.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. + +/** + * @name: S15.9.5.23_A1_T1; + * @section: 15.9.5.23; + * @assertion: The Date.prototype property "getUTCSeconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCSeconds; +if(x === 1) + Date.prototype.getUTCSeconds = 2; +else + Date.prototype.getUTCSeconds = 1; +if (Date.prototype.getUTCSeconds === x) { + $ERROR('#1: The Date.prototype.getUTCSeconds has not the attribute ReadOnly'); +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T2.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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T2.js new file mode 100644 index 000000000..c0afc75fa --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T2.js @@ -0,0 +1,18 @@ +// 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.23_A1_T2; + * @section: 15.9.5.23; + * @assertion: The Date.prototype property "getUTCSeconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCSeconds === false) { + $ERROR('#1: The Date.prototype.getUTCSeconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCSeconds')) { + $FAIL('#2: The Date.prototype.getUTCSeconds property has not the attributes DontDelete'); +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A1_T3.js new file mode 100644 index 000000000..232f5052e --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_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.23_A1_T3; + * @section: 15.9.5.23; + * @assertion: The Date.prototype property "getUTCSeconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCSeconds')) { + $ERROR('#1: The Date.prototype.getUTCSeconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCSeconds") { + $ERROR('#2: The Date.prototype.getUTCSeconds has the attribute DontEnum'); + } +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A2_T1.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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A2_T1.js new file mode 100644 index 000000000..499dbecfd --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A2_T1.js @@ -0,0 +1,18 @@ +// 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.23_A2_T1; + * @section: 15.9.5.23; + * @assertion: The "length" property of the "getUTCSeconds" is 0; + * @description: The "length" property of the "getUTCSeconds" is 0; + */ + +if(Date.prototype.getUTCSeconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCSeconds has a "length" property'); +} + +if(Date.prototype.getUTCSeconds.length !== 0){ + $ERROR('#2: The "length" property of the getUTCSeconds is 0'); +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T1.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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T1.js new file mode 100644 index 000000000..48f15d8c4 --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T1.js @@ -0,0 +1,16 @@ +// 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.23_A3_T1; + * @section: 15.9.5.23; + * @assertion: The Date.prototype.getUTCSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCSeconds.length; +Date.prototype.getUTCSeconds.length = 1; +if (Date.prototype.getUTCSeconds.length !== x) { + $ERROR('#1: The Date.prototype.getUTCSeconds.length has the attribute ReadOnly'); +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T2.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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T2.js new file mode 100644 index 000000000..368ad2720 --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T2.js @@ -0,0 +1,18 @@ +// 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.23_A3_T2; + * @section: 15.9.5.23; + * @assertion: The Date.prototype.getUTCSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCSeconds.length !== false) { + $ERROR('#1: The Date.prototype.getUTCSeconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCSeconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCSeconds.length property has the attributes DontDelete'); +} + 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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_T3.js new file mode 100644 index 000000000..c7a174fd8 --- /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.23_Date.prototype.getUTCSeconds/S15.9.5.23_A3_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.23_A3_T3; + * @section: 15.9.5.23; + * @assertion: The Date.prototype.getUTCSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCSeconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCSeconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCSeconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCSeconds.length has the attribute DontEnum'); + } +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T1.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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T1.js new file mode 100644 index 000000000..f34c19d17 --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T1.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. + +/** + * @name: S15.9.5.24_A1_T1; + * @section: 15.9.5.24; + * @assertion: The Date.prototype property "getMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getMilliseconds; +if(x === 1) + Date.prototype.getMilliseconds = 2; +else + Date.prototype.getMilliseconds = 1; +if (Date.prototype.getMilliseconds === x) { + $ERROR('#1: The Date.prototype.getMilliseconds has not the attribute ReadOnly'); +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T2.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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T2.js new file mode 100644 index 000000000..f798e3f9a --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T2.js @@ -0,0 +1,18 @@ +// 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.24_A1_T2; + * @section: 15.9.5.24; + * @assertion: The Date.prototype property "getMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getMilliseconds === false) { + $ERROR('#1: The Date.prototype.getMilliseconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getMilliseconds')) { + $FAIL('#2: The Date.prototype.getMilliseconds property has not the attributes DontDelete'); +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_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.24_Date.prototype.getMilliseconds/S15.9.5.24_A1_T3.js new file mode 100644 index 000000000..6089d289a --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_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.24_A1_T3; + * @section: 15.9.5.24; + * @assertion: The Date.prototype property "getMilliseconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getMilliseconds')) { + $ERROR('#1: The Date.prototype.getMilliseconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getMilliseconds") { + $ERROR('#2: The Date.prototype.getMilliseconds has the attribute DontEnum'); + } +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_A2_T1.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.24_Date.prototype.getMilliseconds/S15.9.5.24_A2_T1.js new file mode 100644 index 000000000..2491807d0 --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_A2_T1.js @@ -0,0 +1,18 @@ +// 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.24_A2_T1; + * @section: 15.9.5.24; + * @assertion: The "length" property of the "getMilliseconds" is 0; + * @description: The "length" property of the "getMilliseconds" is 0; + */ + +if(Date.prototype.getMilliseconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The getMilliseconds has a "length" property'); +} + +if(Date.prototype.getMilliseconds.length !== 0){ + $ERROR('#2: The "length" property of the getMilliseconds is 0'); +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T1.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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T1.js new file mode 100644 index 000000000..6e17c3d78 --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T1.js @@ -0,0 +1,16 @@ +// 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.24_A3_T1; + * @section: 15.9.5.24; + * @assertion: The Date.prototype.getMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getMilliseconds.length; +Date.prototype.getMilliseconds.length = 1; +if (Date.prototype.getMilliseconds.length !== x) { + $ERROR('#1: The Date.prototype.getMilliseconds.length has the attribute ReadOnly'); +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T2.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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T2.js new file mode 100644 index 000000000..79a154aa7 --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T2.js @@ -0,0 +1,18 @@ +// 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.24_A3_T2; + * @section: 15.9.5.24; + * @assertion: The Date.prototype.getMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getMilliseconds.length !== false) { + $ERROR('#1: The Date.prototype.getMilliseconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getMilliseconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getMilliseconds.length property has the attributes DontDelete'); +} + 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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_T3.js new file mode 100644 index 000000000..9c642e41f --- /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.24_Date.prototype.getMilliseconds/S15.9.5.24_A3_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.24_A3_T3; + * @section: 15.9.5.24; + * @assertion: The Date.prototype.getMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getMilliseconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getMilliseconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getMilliseconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getMilliseconds.length has the attribute DontEnum'); + } +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T1.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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T1.js new file mode 100644 index 000000000..0ff4a07d5 --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T1.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. + +/** + * @name: S15.9.5.25_A1_T1; + * @section: 15.9.5.25; + * @assertion: The Date.prototype property "getUTCMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getUTCMilliseconds; +if(x === 1) + Date.prototype.getUTCMilliseconds = 2; +else + Date.prototype.getUTCMilliseconds = 1; +if (Date.prototype.getUTCMilliseconds === x) { + $ERROR('#1: The Date.prototype.getUTCMilliseconds has not the attribute ReadOnly'); +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T2.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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T2.js new file mode 100644 index 000000000..42323b16f --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T2.js @@ -0,0 +1,18 @@ +// 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.25_A1_T2; + * @section: 15.9.5.25; + * @assertion: The Date.prototype property "getUTCMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getUTCMilliseconds === false) { + $ERROR('#1: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getUTCMilliseconds')) { + $FAIL('#2: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete'); +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A1_T3.js new file mode 100644 index 000000000..c7c85b30a --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_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.25_A1_T3; + * @section: 15.9.5.25; + * @assertion: The Date.prototype property "getUTCMilliseconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getUTCMilliseconds')) { + $ERROR('#1: The Date.prototype.getUTCMilliseconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getUTCMilliseconds") { + $ERROR('#2: The Date.prototype.getUTCMilliseconds has the attribute DontEnum'); + } +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A2_T1.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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A2_T1.js new file mode 100644 index 000000000..2fcfe552c --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A2_T1.js @@ -0,0 +1,18 @@ +// 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.25_A2_T1; + * @section: 15.9.5.25; + * @assertion: The "length" property of the "getUTCMilliseconds" is 0; + * @description: The "length" property of the "getUTCMilliseconds" is 0; + */ + +if(Date.prototype.getUTCMilliseconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The getUTCMilliseconds has a "length" property'); +} + +if(Date.prototype.getUTCMilliseconds.length !== 0){ + $ERROR('#2: The "length" property of the getUTCMilliseconds is 0'); +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T1.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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T1.js new file mode 100644 index 000000000..392aa059b --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T1.js @@ -0,0 +1,16 @@ +// 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.25_A3_T1; + * @section: 15.9.5.25; + * @assertion: The Date.prototype.getUTCMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getUTCMilliseconds.length; +Date.prototype.getUTCMilliseconds.length = 1; +if (Date.prototype.getUTCMilliseconds.length !== x) { + $ERROR('#1: The Date.prototype.getUTCMilliseconds.length has the attribute ReadOnly'); +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T2.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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T2.js new file mode 100644 index 000000000..abcb8409b --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T2.js @@ -0,0 +1,18 @@ +// 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.25_A3_T2; + * @section: 15.9.5.25; + * @assertion: The Date.prototype.getUTCMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getUTCMilliseconds.length !== false) { + $ERROR('#1: The Date.prototype.getUTCMilliseconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getUTCMilliseconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getUTCMilliseconds.length property has the attributes DontDelete'); +} + 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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_T3.js new file mode 100644 index 000000000..e9ca37013 --- /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.25_Date.prototype.getUTCMilliseconds/S15.9.5.25_A3_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.25_A3_T3; + * @section: 15.9.5.25; + * @assertion: The Date.prototype.getUTCMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getUTCMilliseconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getUTCMilliseconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getUTCMilliseconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getUTCMilliseconds.length has the attribute DontEnum'); + } +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T1.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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T1.js new file mode 100644 index 000000000..ca6671e8d --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T1.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. + +/** + * @name: S15.9.5.26_A1_T1; + * @section: 15.9.5.26; + * @assertion: The Date.prototype property "getTimezoneOffset" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getTimezoneOffset; +if(x === 1) + Date.prototype.getTimezoneOffset = 2; +else + Date.prototype.getTimezoneOffset = 1; +if (Date.prototype.getTimezoneOffset === x) { + $ERROR('#1: The Date.prototype.getTimezoneOffset has not the attribute ReadOnly'); +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T2.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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T2.js new file mode 100644 index 000000000..86b733615 --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T2.js @@ -0,0 +1,18 @@ +// 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.26_A1_T2; + * @section: 15.9.5.26; + * @assertion: The Date.prototype property "getTimezoneOffset" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getTimezoneOffset === false) { + $ERROR('#1: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getTimezoneOffset')) { + $FAIL('#2: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete'); +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A1_T3.js new file mode 100644 index 000000000..1f4a2b09e --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_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.26_A1_T3; + * @section: 15.9.5.26; + * @assertion: The Date.prototype property "getTimezoneOffset" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getTimezoneOffset')) { + $ERROR('#1: The Date.prototype.getTimezoneOffset property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getTimezoneOffset") { + $ERROR('#2: The Date.prototype.getTimezoneOffset has the attribute DontEnum'); + } +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A2_T1.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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A2_T1.js new file mode 100644 index 000000000..0b6eb82b8 --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A2_T1.js @@ -0,0 +1,18 @@ +// 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.26_A2_T1; + * @section: 15.9.5.26; + * @assertion: The "length" property of the "getTimezoneOffset" is 0; + * @description: The "length" property of the "getTimezoneOffset" is 0; + */ + +if(Date.prototype.getTimezoneOffset.hasOwnProperty("length") !== true){ + $ERROR('#1: The getTimezoneOffset has a "length" property'); +} + +if(Date.prototype.getTimezoneOffset.length !== 0){ + $ERROR('#2: The "length" property of the getTimezoneOffset is 0'); +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T1.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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T1.js new file mode 100644 index 000000000..a210a9c92 --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T1.js @@ -0,0 +1,16 @@ +// 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.26_A3_T1; + * @section: 15.9.5.26; + * @assertion: The Date.prototype.getTimezoneOffset property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getTimezoneOffset.length; +Date.prototype.getTimezoneOffset.length = 1; +if (Date.prototype.getTimezoneOffset.length !== x) { + $ERROR('#1: The Date.prototype.getTimezoneOffset.length has the attribute ReadOnly'); +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T2.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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T2.js new file mode 100644 index 000000000..3dae5bbf1 --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T2.js @@ -0,0 +1,18 @@ +// 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.26_A3_T2; + * @section: 15.9.5.26; + * @assertion: The Date.prototype.getTimezoneOffset property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getTimezoneOffset.length !== false) { + $ERROR('#1: The Date.prototype.getTimezoneOffset.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getTimezoneOffset.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getTimezoneOffset.length property has the attributes DontDelete'); +} + 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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_T3.js new file mode 100644 index 000000000..eaea7ae78 --- /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.26_Date.prototype.getTimezoneOffset/S15.9.5.26_A3_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.26_A3_T3; + * @section: 15.9.5.26; + * @assertion: The Date.prototype.getTimezoneOffset property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getTimezoneOffset.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getTimezoneOffset.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getTimezoneOffset) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getTimezoneOffset.length has the attribute DontEnum'); + } +} + 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.27_Date.prototype.setTime/S15.9.5.27_A1_T1.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.27_Date.prototype.setTime/S15.9.5.27_A1_T1.js new file mode 100644 index 000000000..aac9909b4 --- /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.27_Date.prototype.setTime/S15.9.5.27_A1_T1.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. + +/** + * @name: S15.9.5.27_A1_T1; + * @section: 15.9.5.27; + * @assertion: The Date.prototype property "setTime" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setTime; +if(x === 1) + Date.prototype.setTime = 2; +else + Date.prototype.setTime = 1; +if (Date.prototype.setTime === x) { + $ERROR('#1: The Date.prototype.setTime has not the attribute ReadOnly'); +} + 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.27_Date.prototype.setTime/S15.9.5.27_A1_T2.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.27_Date.prototype.setTime/S15.9.5.27_A1_T2.js new file mode 100644 index 000000000..9fb1fab48 --- /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.27_Date.prototype.setTime/S15.9.5.27_A1_T2.js @@ -0,0 +1,18 @@ +// 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.27_A1_T2; + * @section: 15.9.5.27; + * @assertion: The Date.prototype property "setTime" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +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'); +} + 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.27_Date.prototype.setTime/S15.9.5.27_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.27_Date.prototype.setTime/S15.9.5.27_A1_T3.js new file mode 100644 index 000000000..0af218973 --- /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.27_Date.prototype.setTime/S15.9.5.27_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.27_A1_T3; + * @section: 15.9.5.27; + * @assertion: The Date.prototype property "setTime" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setTime')) { + $ERROR('#1: The Date.prototype.setTime property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setTime") { + $ERROR('#2: The Date.prototype.setTime has the attribute DontEnum'); + } +} + 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.27_Date.prototype.setTime/S15.9.5.27_A2_T1.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.27_Date.prototype.setTime/S15.9.5.27_A2_T1.js new file mode 100644 index 000000000..ec7808fef --- /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.27_Date.prototype.setTime/S15.9.5.27_A2_T1.js @@ -0,0 +1,18 @@ +// 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.27_A2_T1; + * @section: 15.9.5.27; + * @assertion: The "length" property of the "setTime" is 1; + * @description: The "length" property of the "setTime" is 1; + */ + +if(Date.prototype.setTime.hasOwnProperty("length") !== true){ + $ERROR('#1: The setTime has a "length" property'); +} + +if(Date.prototype.setTime.length !== 1){ + $ERROR('#2: The "length" property of the setTime is 1'); +} + 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.27_Date.prototype.setTime/S15.9.5.27_A3_T1.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.27_Date.prototype.setTime/S15.9.5.27_A3_T1.js new file mode 100644 index 000000000..42c9e9795 --- /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.27_Date.prototype.setTime/S15.9.5.27_A3_T1.js @@ -0,0 +1,16 @@ +// 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.27_A3_T1; + * @section: 15.9.5.27; + * @assertion: The Date.prototype.setTime property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setTime.length; +Date.prototype.setTime.length = 1; +if (Date.prototype.setTime.length !== x) { + $ERROR('#1: The Date.prototype.setTime.length has the attribute ReadOnly'); +} + 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.27_Date.prototype.setTime/S15.9.5.27_A3_T2.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.27_Date.prototype.setTime/S15.9.5.27_A3_T2.js new file mode 100644 index 000000000..188563dc8 --- /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.27_Date.prototype.setTime/S15.9.5.27_A3_T2.js @@ -0,0 +1,18 @@ +// 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.27_A3_T2; + * @section: 15.9.5.27; + * @assertion: The Date.prototype.setTime property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setTime.length !== false) { + $ERROR('#1: The Date.prototype.setTime.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setTime.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setTime.length property has the attributes DontDelete'); +} + 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.27_Date.prototype.setTime/S15.9.5.27_A3_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.27_Date.prototype.setTime/S15.9.5.27_A3_T3.js new file mode 100644 index 000000000..bcb31abeb --- /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.27_Date.prototype.setTime/S15.9.5.27_A3_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.27_A3_T3; + * @section: 15.9.5.27; + * @assertion: The Date.prototype.setTime property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setTime.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setTime.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setTime) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setTime.length has the attribute DontEnum'); + } +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T1.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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T1.js new file mode 100644 index 000000000..b8614d44c --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T1.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. + +/** + * @name: S15.9.5.28_A1_T1; + * @section: 15.9.5.28; + * @assertion: The Date.prototype property "setMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setMilliseconds; +if(x === 1) + Date.prototype.setMilliseconds = 2; +else + Date.prototype.setMilliseconds = 1; +if (Date.prototype.setMilliseconds === x) { + $ERROR('#1: The Date.prototype.setMilliseconds has not the attribute ReadOnly'); +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.js new file mode 100644 index 000000000..34ee527d6 --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T2.js @@ -0,0 +1,18 @@ +// 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.28_A1_T2; + * @section: 15.9.5.28; + * @assertion: The Date.prototype property "setMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setMilliseconds === false) { + $ERROR('#1: The Date.prototype.setMilliseconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setMilliseconds')) { + $FAIL('#2: The Date.prototype.setMilliseconds property has not the attributes DontDelete'); +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_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.28_Date.prototype.setMilliseconds/S15.9.5.28_A1_T3.js new file mode 100644 index 000000000..be9744ca0 --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_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.28_A1_T3; + * @section: 15.9.5.28; + * @assertion: The Date.prototype property "setMilliseconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setMilliseconds')) { + $ERROR('#1: The Date.prototype.setMilliseconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setMilliseconds") { + $ERROR('#2: The Date.prototype.setMilliseconds has the attribute DontEnum'); + } +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_A2_T1.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.28_Date.prototype.setMilliseconds/S15.9.5.28_A2_T1.js new file mode 100644 index 000000000..9808d9d3e --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_A2_T1.js @@ -0,0 +1,18 @@ +// 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.28_A2_T1; + * @section: 15.9.5.28; + * @assertion: The "length" property of the "setMilliseconds" is 1; + * @description: The "length" property of the "setMilliseconds" is 1; + */ + +if(Date.prototype.setMilliseconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The setMilliseconds has a "length" property'); +} + +if(Date.prototype.setMilliseconds.length !== 1){ + $ERROR('#2: The "length" property of the setMilliseconds is 1'); +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T1.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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T1.js new file mode 100644 index 000000000..bb05c3521 --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T1.js @@ -0,0 +1,16 @@ +// 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.28_A3_T1; + * @section: 15.9.5.28; + * @assertion: The Date.prototype.setMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setMilliseconds.length; +Date.prototype.setMilliseconds.length = 1; +if (Date.prototype.setMilliseconds.length !== x) { + $ERROR('#1: The Date.prototype.setMilliseconds.length has the attribute ReadOnly'); +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T2.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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T2.js new file mode 100644 index 000000000..78d564f7a --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T2.js @@ -0,0 +1,18 @@ +// 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.28_A3_T2; + * @section: 15.9.5.28; + * @assertion: The Date.prototype.setMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setMilliseconds.length !== false) { + $ERROR('#1: The Date.prototype.setMilliseconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setMilliseconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setMilliseconds.length property has the attributes DontDelete'); +} + 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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_T3.js new file mode 100644 index 000000000..35ff99079 --- /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.28_Date.prototype.setMilliseconds/S15.9.5.28_A3_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.28_A3_T3; + * @section: 15.9.5.28; + * @assertion: The Date.prototype.setMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setMilliseconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setMilliseconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setMilliseconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setMilliseconds.length has the attribute DontEnum'); + } +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T1.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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T1.js new file mode 100644 index 000000000..7f0f75331 --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T1.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. + +/** + * @name: S15.9.5.29_A1_T1; + * @section: 15.9.5.29; + * @assertion: The Date.prototype property "setUTCMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCMilliseconds; +if(x === 1) + Date.prototype.setUTCMilliseconds = 2; +else + Date.prototype.setUTCMilliseconds = 1; +if (Date.prototype.setUTCMilliseconds === x) { + $ERROR('#1: The Date.prototype.setUTCMilliseconds has not the attribute ReadOnly'); +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T2.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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T2.js new file mode 100644 index 000000000..50ba02a8d --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T2.js @@ -0,0 +1,18 @@ +// 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.29_A1_T2; + * @section: 15.9.5.29; + * @assertion: The Date.prototype property "setUTCMilliseconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCMilliseconds === false) { + $ERROR('#1: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCMilliseconds')) { + $FAIL('#2: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete'); +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A1_T3.js new file mode 100644 index 000000000..5846b5495 --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_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.29_A1_T3; + * @section: 15.9.5.29; + * @assertion: The Date.prototype property "setUTCMilliseconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCMilliseconds')) { + $ERROR('#1: The Date.prototype.setUTCMilliseconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCMilliseconds") { + $ERROR('#2: The Date.prototype.setUTCMilliseconds has the attribute DontEnum'); + } +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A2_T1.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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A2_T1.js new file mode 100644 index 000000000..b41644715 --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A2_T1.js @@ -0,0 +1,18 @@ +// 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.29_A2_T1; + * @section: 15.9.5.29; + * @assertion: The "length" property of the "setUTCMilliseconds" is 1; + * @description: The "length" property of the "setUTCMilliseconds" is 1; + */ + +if(Date.prototype.setUTCMilliseconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCMilliseconds has a "length" property'); +} + +if(Date.prototype.setUTCMilliseconds.length !== 1){ + $ERROR('#2: The "length" property of the setUTCMilliseconds is 1'); +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T1.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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T1.js new file mode 100644 index 000000000..9d7196675 --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T1.js @@ -0,0 +1,16 @@ +// 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.29_A3_T1; + * @section: 15.9.5.29; + * @assertion: The Date.prototype.setUTCMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCMilliseconds.length; +Date.prototype.setUTCMilliseconds.length = 1; +if (Date.prototype.setUTCMilliseconds.length !== x) { + $ERROR('#1: The Date.prototype.setUTCMilliseconds.length has the attribute ReadOnly'); +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T2.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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T2.js new file mode 100644 index 000000000..584073248 --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T2.js @@ -0,0 +1,18 @@ +// 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.29_A3_T2; + * @section: 15.9.5.29; + * @assertion: The Date.prototype.setUTCMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCMilliseconds.length !== false) { + $ERROR('#1: The Date.prototype.setUTCMilliseconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCMilliseconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCMilliseconds.length property has the attributes DontDelete'); +} + 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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_T3.js new file mode 100644 index 000000000..69479f68a --- /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.29_Date.prototype.setUTCMilliseconds/S15.9.5.29_A3_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.29_A3_T3; + * @section: 15.9.5.29; + * @assertion: The Date.prototype.setUTCMilliseconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCMilliseconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCMilliseconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCMilliseconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCMilliseconds.length has the attribute DontEnum'); + } +} + 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.2_Date.prototype.toString/S15.9.5.2_A1_T1.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.2_Date.prototype.toString/S15.9.5.2_A1_T1.js new file mode 100644 index 000000000..3041fd26d --- /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.2_Date.prototype.toString/S15.9.5.2_A1_T1.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. + +/** + * @name: S15.9.5.2_A1_T1; + * @section: 15.9.5.2; + * @assertion: The Date.prototype property "toString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toString; +if(x === 1) + Date.prototype.toString = 2; +else + Date.prototype.toString = 1; +if (Date.prototype.toString === x) { + $ERROR('#1: The Date.prototype.toString has not the attribute ReadOnly'); +} + 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.2_Date.prototype.toString/S15.9.5.2_A1_T2.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.2_Date.prototype.toString/S15.9.5.2_A1_T2.js new file mode 100644 index 000000000..d0a0e2557 --- /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.2_Date.prototype.toString/S15.9.5.2_A1_T2.js @@ -0,0 +1,18 @@ +// 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.2_A1_T2; + * @section: 15.9.5.2; + * @assertion: The Date.prototype property "toString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toString === false) { + $ERROR('#1: The Date.prototype.toString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toString')) { + $FAIL('#2: The Date.prototype.toString property has not the attributes DontDelete'); +} + 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.2_Date.prototype.toString/S15.9.5.2_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.2_Date.prototype.toString/S15.9.5.2_A1_T3.js new file mode 100644 index 000000000..873c101a2 --- /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.2_Date.prototype.toString/S15.9.5.2_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.2_A1_T3; + * @section: 15.9.5.2; + * @assertion: The Date.prototype property "toString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toString')) { + $ERROR('#1: The Date.prototype.toString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toString") { + $ERROR('#2: The Date.prototype.toString has the attribute DontEnum'); + } +} + 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.2_Date.prototype.toString/S15.9.5.2_A2_T1.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.2_Date.prototype.toString/S15.9.5.2_A2_T1.js new file mode 100644 index 000000000..3fb4ee981 --- /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.2_Date.prototype.toString/S15.9.5.2_A2_T1.js @@ -0,0 +1,18 @@ +// 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.2_A2_T1; + * @section: 15.9.5.2; + * @assertion: The "length" property of the "toString" is 0; + * @description: The "length" property of the "toString" is 0; + */ + +if(Date.prototype.toString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toString has a "length" property'); +} + +if(Date.prototype.toString.length !== 0){ + $ERROR('#2: The "length" property of the toString is 0'); +} + 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.2_Date.prototype.toString/S15.9.5.2_A3_T1.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.2_Date.prototype.toString/S15.9.5.2_A3_T1.js new file mode 100644 index 000000000..58c0da63b --- /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.2_Date.prototype.toString/S15.9.5.2_A3_T1.js @@ -0,0 +1,16 @@ +// 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.2_A3_T1; + * @section: 15.9.5.2; + * @assertion: The Date.prototype.toString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toString.length; +Date.prototype.toString.length = 1; +if (Date.prototype.toString.length !== x) { + $ERROR('#1: The Date.prototype.toString.length has the attribute ReadOnly'); +} + 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.2_Date.prototype.toString/S15.9.5.2_A3_T2.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.2_Date.prototype.toString/S15.9.5.2_A3_T2.js new file mode 100644 index 000000000..d32898cb2 --- /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.2_Date.prototype.toString/S15.9.5.2_A3_T2.js @@ -0,0 +1,18 @@ +// 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.2_A3_T2; + * @section: 15.9.5.2; + * @assertion: The Date.prototype.toString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toString.length !== false) { + $ERROR('#1: The Date.prototype.toString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toString.length property has the attributes DontDelete'); +} + 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.2_Date.prototype.toString/S15.9.5.2_A3_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.2_Date.prototype.toString/S15.9.5.2_A3_T3.js new file mode 100644 index 000000000..0a7b42332 --- /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.2_Date.prototype.toString/S15.9.5.2_A3_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.2_A3_T3; + * @section: 15.9.5.2; + * @assertion: The Date.prototype.toString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toString.length has the attribute DontEnum'); + } +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T1.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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T1.js new file mode 100644 index 000000000..e9715fe23 --- /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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T1.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. + +/** + * @name: S15.9.5.30_A1_T1; + * @section: 15.9.5.30; + * @assertion: The Date.prototype property "setSeconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setSeconds; +if(x === 1) + Date.prototype.setSeconds = 2; +else + Date.prototype.setSeconds = 1; +if (Date.prototype.setSeconds === x) { + $ERROR('#1: The Date.prototype.setSeconds has not the attribute ReadOnly'); +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T2.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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T2.js new file mode 100644 index 000000000..2d298a6b2 --- /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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T2.js @@ -0,0 +1,18 @@ +// 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.30_A1_T2; + * @section: 15.9.5.30; + * @assertion: The Date.prototype property "setSeconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setSeconds === false) { + $ERROR('#1: The Date.prototype.setSeconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setSeconds')) { + $FAIL('#2: The Date.prototype.setSeconds property has not the attributes DontDelete'); +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_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.30_Date.prototype.setSeconds/S15.9.5.30_A1_T3.js new file mode 100644 index 000000000..c4c80f344 --- /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.30_Date.prototype.setSeconds/S15.9.5.30_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.30_A1_T3; + * @section: 15.9.5.30; + * @assertion: The Date.prototype property "setSeconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setSeconds')) { + $ERROR('#1: The Date.prototype.setSeconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setSeconds") { + $ERROR('#2: The Date.prototype.setSeconds has the attribute DontEnum'); + } +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_A2_T1.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.30_Date.prototype.setSeconds/S15.9.5.30_A2_T1.js new file mode 100644 index 000000000..f8346acbe --- /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.30_Date.prototype.setSeconds/S15.9.5.30_A2_T1.js @@ -0,0 +1,18 @@ +// 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.30_A2_T1; + * @section: 15.9.5.30; + * @assertion: The "length" property of the "setSeconds" is 2; + * @description: The "length" property of the "setSeconds" is 2; + */ + +if(Date.prototype.setSeconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The setSeconds has a "length" property'); +} + +if(Date.prototype.setSeconds.length !== 2){ + $ERROR('#2: The "length" property of the setSeconds is 2'); +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T1.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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T1.js new file mode 100644 index 000000000..fa307330d --- /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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T1.js @@ -0,0 +1,16 @@ +// 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.30_A3_T1; + * @section: 15.9.5.30; + * @assertion: The Date.prototype.setSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setSeconds.length; +Date.prototype.setSeconds.length = 1; +if (Date.prototype.setSeconds.length !== x) { + $ERROR('#1: The Date.prototype.setSeconds.length has the attribute ReadOnly'); +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T2.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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T2.js new file mode 100644 index 000000000..e5a6338ff --- /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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T2.js @@ -0,0 +1,18 @@ +// 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.30_A3_T2; + * @section: 15.9.5.30; + * @assertion: The Date.prototype.setSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setSeconds.length !== false) { + $ERROR('#1: The Date.prototype.setSeconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setSeconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setSeconds.length property has the attributes DontDelete'); +} + 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.30_Date.prototype.setSeconds/S15.9.5.30_A3_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.30_Date.prototype.setSeconds/S15.9.5.30_A3_T3.js new file mode 100644 index 000000000..25d7bb30c --- /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.30_Date.prototype.setSeconds/S15.9.5.30_A3_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.30_A3_T3; + * @section: 15.9.5.30; + * @assertion: The Date.prototype.setSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setSeconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setSeconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setSeconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setSeconds.length has the attribute DontEnum'); + } +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T1.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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T1.js new file mode 100644 index 000000000..54a74aafd --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T1.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. + +/** + * @name: S15.9.5.31_A1_T1; + * @section: 15.9.5.31; + * @assertion: The Date.prototype property "setUTCSeconds" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCSeconds; +if(x === 1) + Date.prototype.setUTCSeconds = 2; +else + Date.prototype.setUTCSeconds = 1; +if (Date.prototype.setUTCSeconds === x) { + $ERROR('#1: The Date.prototype.setUTCSeconds has not the attribute ReadOnly'); +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T2.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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T2.js new file mode 100644 index 000000000..77e4b1efb --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T2.js @@ -0,0 +1,18 @@ +// 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.31_A1_T2; + * @section: 15.9.5.31; + * @assertion: The Date.prototype property "setUTCSeconds" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCSeconds === false) { + $ERROR('#1: The Date.prototype.setUTCSeconds property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCSeconds')) { + $FAIL('#2: The Date.prototype.setUTCSeconds property has not the attributes DontDelete'); +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A1_T3.js new file mode 100644 index 000000000..d3418cee1 --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_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.31_A1_T3; + * @section: 15.9.5.31; + * @assertion: The Date.prototype property "setUTCSeconds" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCSeconds')) { + $ERROR('#1: The Date.prototype.setUTCSeconds property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCSeconds") { + $ERROR('#2: The Date.prototype.setUTCSeconds has the attribute DontEnum'); + } +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A2_T1.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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A2_T1.js new file mode 100644 index 000000000..b0ecfe7b2 --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A2_T1.js @@ -0,0 +1,18 @@ +// 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.31_A2_T1; + * @section: 15.9.5.31; + * @assertion: The "length" property of the "setUTCSeconds" is 2; + * @description: The "length" property of the "setUTCSeconds" is 2; + */ + +if(Date.prototype.setUTCSeconds.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCSeconds has a "length" property'); +} + +if(Date.prototype.setUTCSeconds.length !== 2){ + $ERROR('#2: The "length" property of the setUTCSeconds is 2'); +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T1.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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T1.js new file mode 100644 index 000000000..02dd13936 --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T1.js @@ -0,0 +1,16 @@ +// 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.31_A3_T1; + * @section: 15.9.5.31; + * @assertion: The Date.prototype.setUTCSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCSeconds.length; +Date.prototype.setUTCSeconds.length = 1; +if (Date.prototype.setUTCSeconds.length !== x) { + $ERROR('#1: The Date.prototype.setUTCSeconds.length has the attribute ReadOnly'); +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T2.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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T2.js new file mode 100644 index 000000000..ab1124321 --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T2.js @@ -0,0 +1,18 @@ +// 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.31_A3_T2; + * @section: 15.9.5.31; + * @assertion: The Date.prototype.setUTCSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCSeconds.length !== false) { + $ERROR('#1: The Date.prototype.setUTCSeconds.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCSeconds.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCSeconds.length property has the attributes DontDelete'); +} + 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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_T3.js new file mode 100644 index 000000000..dc704cad6 --- /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.31_Date.prototype.setUTCSeconds/S15.9.5.31_A3_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.31_A3_T3; + * @section: 15.9.5.31; + * @assertion: The Date.prototype.setUTCSeconds property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCSeconds.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCSeconds.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCSeconds) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCSeconds.length has the attribute DontEnum'); + } +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T1.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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T1.js new file mode 100644 index 000000000..65544c05a --- /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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T1.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. + +/** + * @name: S15.9.5.32_A1_T1; + * @section: 15.9.5.32; + * @assertion: The Date.prototype property "setMinutes" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setMinutes; +if(x === 1) + Date.prototype.setMinutes = 2; +else + Date.prototype.setMinutes = 1; +if (Date.prototype.setMinutes === x) { + $ERROR('#1: The Date.prototype.setMinutes has not the attribute ReadOnly'); +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T2.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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T2.js new file mode 100644 index 000000000..47b9da016 --- /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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T2.js @@ -0,0 +1,18 @@ +// 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.32_A1_T2; + * @section: 15.9.5.32; + * @assertion: The Date.prototype property "setMinutes" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setMinutes === false) { + $ERROR('#1: The Date.prototype.setMinutes property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setMinutes')) { + $FAIL('#2: The Date.prototype.setMinutes property has not the attributes DontDelete'); +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_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.32_Date.prototype.setMinutes/S15.9.5.32_A1_T3.js new file mode 100644 index 000000000..337842586 --- /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.32_Date.prototype.setMinutes/S15.9.5.32_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.32_A1_T3; + * @section: 15.9.5.32; + * @assertion: The Date.prototype property "setMinutes" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setMinutes')) { + $ERROR('#1: The Date.prototype.setMinutes property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setMinutes") { + $ERROR('#2: The Date.prototype.setMinutes has the attribute DontEnum'); + } +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_A2_T1.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.32_Date.prototype.setMinutes/S15.9.5.32_A2_T1.js new file mode 100644 index 000000000..9175dba46 --- /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.32_Date.prototype.setMinutes/S15.9.5.32_A2_T1.js @@ -0,0 +1,18 @@ +// 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.32_A2_T1; + * @section: 15.9.5.32; + * @assertion: The "length" property of the "setMinutes" is 3; + * @description: The "length" property of the "setMinutes" is 3; + */ + +if(Date.prototype.setMinutes.hasOwnProperty("length") !== true){ + $ERROR('#1: The setMinutes has a "length" property'); +} + +if(Date.prototype.setMinutes.length !== 3){ + $ERROR('#2: The "length" property of the setMinutes is 3'); +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T1.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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T1.js new file mode 100644 index 000000000..2f97aebbe --- /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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T1.js @@ -0,0 +1,16 @@ +// 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.32_A3_T1; + * @section: 15.9.5.32; + * @assertion: The Date.prototype.setMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setMinutes.length; +Date.prototype.setMinutes.length = 1; +if (Date.prototype.setMinutes.length !== x) { + $ERROR('#1: The Date.prototype.setMinutes.length has the attribute ReadOnly'); +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T2.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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T2.js new file mode 100644 index 000000000..d9edae225 --- /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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T2.js @@ -0,0 +1,18 @@ +// 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.32_A3_T2; + * @section: 15.9.5.32; + * @assertion: The Date.prototype.setMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setMinutes.length !== false) { + $ERROR('#1: The Date.prototype.setMinutes.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setMinutes.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setMinutes.length property has the attributes DontDelete'); +} + 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.32_Date.prototype.setMinutes/S15.9.5.32_A3_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.32_Date.prototype.setMinutes/S15.9.5.32_A3_T3.js new file mode 100644 index 000000000..f964ef410 --- /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.32_Date.prototype.setMinutes/S15.9.5.32_A3_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.32_A3_T3; + * @section: 15.9.5.32; + * @assertion: The Date.prototype.setMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setMinutes.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setMinutes.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setMinutes) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setMinutes.length has the attribute DontEnum'); + } +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T1.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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T1.js new file mode 100644 index 000000000..1678fecc2 --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T1.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. + +/** + * @name: S15.9.5.33_A1_T1; + * @section: 15.9.5.33; + * @assertion: The Date.prototype property "setUTCMinutes" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCMinutes; +if(x === 1) + Date.prototype.setUTCMinutes = 2; +else + Date.prototype.setUTCMinutes = 1; +if (Date.prototype.setUTCMinutes === x) { + $ERROR('#1: The Date.prototype.setUTCMinutes has not the attribute ReadOnly'); +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T2.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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T2.js new file mode 100644 index 000000000..c47039302 --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T2.js @@ -0,0 +1,18 @@ +// 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.33_A1_T2; + * @section: 15.9.5.33; + * @assertion: The Date.prototype property "setUTCMinutes" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCMinutes === false) { + $ERROR('#1: The Date.prototype.setUTCMinutes property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCMinutes')) { + $FAIL('#2: The Date.prototype.setUTCMinutes property has not the attributes DontDelete'); +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A1_T3.js new file mode 100644 index 000000000..52bbab9e2 --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_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.33_A1_T3; + * @section: 15.9.5.33; + * @assertion: The Date.prototype property "setUTCMinutes" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCMinutes')) { + $ERROR('#1: The Date.prototype.setUTCMinutes property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCMinutes") { + $ERROR('#2: The Date.prototype.setUTCMinutes has the attribute DontEnum'); + } +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A2_T1.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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A2_T1.js new file mode 100644 index 000000000..0ce4a304e --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A2_T1.js @@ -0,0 +1,18 @@ +// 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.33_A2_T1; + * @section: 15.9.5.33; + * @assertion: The "length" property of the "setUTCMinutes" is 3; + * @description: The "length" property of the "setUTCMinutes" is 3; + */ + +if(Date.prototype.setUTCMinutes.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCMinutes has a "length" property'); +} + +if(Date.prototype.setUTCMinutes.length !== 3){ + $ERROR('#2: The "length" property of the setUTCMinutes is 3'); +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T1.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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T1.js new file mode 100644 index 000000000..4eb21d891 --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T1.js @@ -0,0 +1,16 @@ +// 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.33_A3_T1; + * @section: 15.9.5.33; + * @assertion: The Date.prototype.setUTCMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCMinutes.length; +Date.prototype.setUTCMinutes.length = 1; +if (Date.prototype.setUTCMinutes.length !== x) { + $ERROR('#1: The Date.prototype.setUTCMinutes.length has the attribute ReadOnly'); +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T2.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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T2.js new file mode 100644 index 000000000..6b0773e8c --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T2.js @@ -0,0 +1,18 @@ +// 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.33_A3_T2; + * @section: 15.9.5.33; + * @assertion: The Date.prototype.setUTCMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCMinutes.length !== false) { + $ERROR('#1: The Date.prototype.setUTCMinutes.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCMinutes.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCMinutes.length property has the attributes DontDelete'); +} + 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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_T3.js new file mode 100644 index 000000000..63d03ba52 --- /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.33_Date.prototype.setUTCMinutes/S15.9.5.33_A3_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.33_A3_T3; + * @section: 15.9.5.33; + * @assertion: The Date.prototype.setUTCMinutes property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCMinutes.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCMinutes.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCMinutes) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCMinutes.length has the attribute DontEnum'); + } +} + 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.34_Date.prototype.setHours/S15.9.5.34_A1_T1.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.34_Date.prototype.setHours/S15.9.5.34_A1_T1.js new file mode 100644 index 000000000..c3b6197b3 --- /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.34_Date.prototype.setHours/S15.9.5.34_A1_T1.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. + +/** + * @name: S15.9.5.34_A1_T1; + * @section: 15.9.5.34; + * @assertion: The Date.prototype property "setHours" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setHours; +if(x === 1) + Date.prototype.setHours = 2; +else + Date.prototype.setHours = 1; +if (Date.prototype.setHours === x) { + $ERROR('#1: The Date.prototype.setHours has not the attribute ReadOnly'); +} + 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.34_Date.prototype.setHours/S15.9.5.34_A1_T2.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.34_Date.prototype.setHours/S15.9.5.34_A1_T2.js new file mode 100644 index 000000000..97ac3989b --- /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.34_Date.prototype.setHours/S15.9.5.34_A1_T2.js @@ -0,0 +1,18 @@ +// 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.34_A1_T2; + * @section: 15.9.5.34; + * @assertion: The Date.prototype property "setHours" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setHours === false) { + $ERROR('#1: The Date.prototype.setHours property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setHours')) { + $FAIL('#2: The Date.prototype.setHours property has not the attributes DontDelete'); +} + 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.34_Date.prototype.setHours/S15.9.5.34_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.34_Date.prototype.setHours/S15.9.5.34_A1_T3.js new file mode 100644 index 000000000..441bf9a6e --- /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.34_Date.prototype.setHours/S15.9.5.34_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.34_A1_T3; + * @section: 15.9.5.34; + * @assertion: The Date.prototype property "setHours" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setHours')) { + $ERROR('#1: The Date.prototype.setHours property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setHours") { + $ERROR('#2: The Date.prototype.setHours has the attribute DontEnum'); + } +} + 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.34_Date.prototype.setHours/S15.9.5.34_A2_T1.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.34_Date.prototype.setHours/S15.9.5.34_A2_T1.js new file mode 100644 index 000000000..e2a8683c8 --- /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.34_Date.prototype.setHours/S15.9.5.34_A2_T1.js @@ -0,0 +1,18 @@ +// 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.34_A2_T1; + * @section: 15.9.5.34; + * @assertion: The "length" property of the "setHours" is 4; + * @description: The "length" property of the "setHours" is 4; + */ + +if(Date.prototype.setHours.hasOwnProperty("length") !== true){ + $ERROR('#1: The setHours has a "length" property'); +} + +if(Date.prototype.setHours.length !== 4){ + $ERROR('#2: The "length" property of the setHours is 4'); +} + 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.34_Date.prototype.setHours/S15.9.5.34_A3_T1.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.34_Date.prototype.setHours/S15.9.5.34_A3_T1.js new file mode 100644 index 000000000..03d44d597 --- /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.34_Date.prototype.setHours/S15.9.5.34_A3_T1.js @@ -0,0 +1,16 @@ +// 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.34_A3_T1; + * @section: 15.9.5.34; + * @assertion: The Date.prototype.setHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setHours.length; +Date.prototype.setHours.length = 1; +if (Date.prototype.setHours.length !== x) { + $ERROR('#1: The Date.prototype.setHours.length has the attribute ReadOnly'); +} + 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.34_Date.prototype.setHours/S15.9.5.34_A3_T2.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.34_Date.prototype.setHours/S15.9.5.34_A3_T2.js new file mode 100644 index 000000000..14c6fd549 --- /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.34_Date.prototype.setHours/S15.9.5.34_A3_T2.js @@ -0,0 +1,18 @@ +// 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.34_A3_T2; + * @section: 15.9.5.34; + * @assertion: The Date.prototype.setHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setHours.length !== false) { + $ERROR('#1: The Date.prototype.setHours.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setHours.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setHours.length property has the attributes DontDelete'); +} + 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.34_Date.prototype.setHours/S15.9.5.34_A3_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.34_Date.prototype.setHours/S15.9.5.34_A3_T3.js new file mode 100644 index 000000000..84bc26c5e --- /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.34_Date.prototype.setHours/S15.9.5.34_A3_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.34_A3_T3; + * @section: 15.9.5.34; + * @assertion: The Date.prototype.setHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setHours.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setHours.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setHours) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setHours.length has the attribute DontEnum'); + } +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T1.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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T1.js new file mode 100644 index 000000000..51ab521fe --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T1.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. + +/** + * @name: S15.9.5.35_A1_T1; + * @section: 15.9.5.35; + * @assertion: The Date.prototype property "setUTCHours" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCHours; +if(x === 1) + Date.prototype.setUTCHours = 2; +else + Date.prototype.setUTCHours = 1; +if (Date.prototype.setUTCHours === x) { + $ERROR('#1: The Date.prototype.setUTCHours has not the attribute ReadOnly'); +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T2.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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T2.js new file mode 100644 index 000000000..f93e9cc1e --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T2.js @@ -0,0 +1,18 @@ +// 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.35_A1_T2; + * @section: 15.9.5.35; + * @assertion: The Date.prototype property "setUTCHours" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCHours === false) { + $ERROR('#1: The Date.prototype.setUTCHours property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCHours')) { + $FAIL('#2: The Date.prototype.setUTCHours property has not the attributes DontDelete'); +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_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.35_Date.prototype.setUTCHours/S15.9.5.35_A1_T3.js new file mode 100644 index 000000000..f5a6e062a --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_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.35_A1_T3; + * @section: 15.9.5.35; + * @assertion: The Date.prototype property "setUTCHours" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCHours')) { + $ERROR('#1: The Date.prototype.setUTCHours property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCHours") { + $ERROR('#2: The Date.prototype.setUTCHours has the attribute DontEnum'); + } +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_A2_T1.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.35_Date.prototype.setUTCHours/S15.9.5.35_A2_T1.js new file mode 100644 index 000000000..9e64188fd --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_A2_T1.js @@ -0,0 +1,18 @@ +// 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.35_A2_T1; + * @section: 15.9.5.35; + * @assertion: The "length" property of the "setUTCHours" is 4; + * @description: The "length" property of the "setUTCHours" is 4; + */ + +if(Date.prototype.setUTCHours.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCHours has a "length" property'); +} + +if(Date.prototype.setUTCHours.length !== 4){ + $ERROR('#2: The "length" property of the setUTCHours is 4'); +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T1.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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T1.js new file mode 100644 index 000000000..e17dc1290 --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T1.js @@ -0,0 +1,16 @@ +// 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.35_A3_T1; + * @section: 15.9.5.35; + * @assertion: The Date.prototype.setUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCHours.length; +Date.prototype.setUTCHours.length = 1; +if (Date.prototype.setUTCHours.length !== x) { + $ERROR('#1: The Date.prototype.setUTCHours.length has the attribute ReadOnly'); +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T2.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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T2.js new file mode 100644 index 000000000..e08ccf7c3 --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T2.js @@ -0,0 +1,18 @@ +// 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.35_A3_T2; + * @section: 15.9.5.35; + * @assertion: The Date.prototype.setUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCHours.length !== false) { + $ERROR('#1: The Date.prototype.setUTCHours.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCHours.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCHours.length property has the attributes DontDelete'); +} + 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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_T3.js new file mode 100644 index 000000000..cf3e89d60 --- /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.35_Date.prototype.setUTCHours/S15.9.5.35_A3_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.35_A3_T3; + * @section: 15.9.5.35; + * @assertion: The Date.prototype.setUTCHours property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCHours.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCHours.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCHours) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCHours.length has the attribute DontEnum'); + } +} + 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.36_Date.prototype.setDate/S15.9.5.36_A1_T1.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.36_Date.prototype.setDate/S15.9.5.36_A1_T1.js new file mode 100644 index 000000000..38448693d --- /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.36_Date.prototype.setDate/S15.9.5.36_A1_T1.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. + +/** + * @name: S15.9.5.36_A1_T1; + * @section: 15.9.5.36; + * @assertion: The Date.prototype property "setDate" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setDate; +if(x === 1) + Date.prototype.setDate = 2; +else + Date.prototype.setDate = 1; +if (Date.prototype.setDate === x) { + $ERROR('#1: The Date.prototype.setDate has not the attribute ReadOnly'); +} + 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.36_Date.prototype.setDate/S15.9.5.36_A1_T2.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.36_Date.prototype.setDate/S15.9.5.36_A1_T2.js new file mode 100644 index 000000000..7da8e64a6 --- /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.36_Date.prototype.setDate/S15.9.5.36_A1_T2.js @@ -0,0 +1,18 @@ +// 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.36_A1_T2; + * @section: 15.9.5.36; + * @assertion: The Date.prototype property "setDate" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setDate === false) { + $ERROR('#1: The Date.prototype.setDate property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setDate')) { + $FAIL('#2: The Date.prototype.setDate property has not the attributes DontDelete'); +} + 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.36_Date.prototype.setDate/S15.9.5.36_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.36_Date.prototype.setDate/S15.9.5.36_A1_T3.js new file mode 100644 index 000000000..affb3d7f5 --- /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.36_Date.prototype.setDate/S15.9.5.36_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.36_A1_T3; + * @section: 15.9.5.36; + * @assertion: The Date.prototype property "setDate" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setDate')) { + $ERROR('#1: The Date.prototype.setDate property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setDate") { + $ERROR('#2: The Date.prototype.setDate has the attribute DontEnum'); + } +} + 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.36_Date.prototype.setDate/S15.9.5.36_A2_T1.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.36_Date.prototype.setDate/S15.9.5.36_A2_T1.js new file mode 100644 index 000000000..adbc5d289 --- /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.36_Date.prototype.setDate/S15.9.5.36_A2_T1.js @@ -0,0 +1,18 @@ +// 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.36_A2_T1; + * @section: 15.9.5.36; + * @assertion: The "length" property of the "setDate" is 1; + * @description: The "length" property of the "setDate" is 1; + */ + +if(Date.prototype.setDate.hasOwnProperty("length") !== true){ + $ERROR('#1: The setDate has a "length" property'); +} + +if(Date.prototype.setDate.length !== 1){ + $ERROR('#2: The "length" property of the setDate is 1'); +} + 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.36_Date.prototype.setDate/S15.9.5.36_A3_T1.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.36_Date.prototype.setDate/S15.9.5.36_A3_T1.js new file mode 100644 index 000000000..bf4b04202 --- /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.36_Date.prototype.setDate/S15.9.5.36_A3_T1.js @@ -0,0 +1,16 @@ +// 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.36_A3_T1; + * @section: 15.9.5.36; + * @assertion: The Date.prototype.setDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setDate.length; +Date.prototype.setDate.length = 1; +if (Date.prototype.setDate.length !== x) { + $ERROR('#1: The Date.prototype.setDate.length has the attribute ReadOnly'); +} + 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.36_Date.prototype.setDate/S15.9.5.36_A3_T2.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.36_Date.prototype.setDate/S15.9.5.36_A3_T2.js new file mode 100644 index 000000000..b6645d6a4 --- /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.36_Date.prototype.setDate/S15.9.5.36_A3_T2.js @@ -0,0 +1,18 @@ +// 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.36_A3_T2; + * @section: 15.9.5.36; + * @assertion: The Date.prototype.setDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setDate.length !== false) { + $ERROR('#1: The Date.prototype.setDate.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setDate.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setDate.length property has the attributes DontDelete'); +} + 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.36_Date.prototype.setDate/S15.9.5.36_A3_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.36_Date.prototype.setDate/S15.9.5.36_A3_T3.js new file mode 100644 index 000000000..542175755 --- /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.36_Date.prototype.setDate/S15.9.5.36_A3_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.36_A3_T3; + * @section: 15.9.5.36; + * @assertion: The Date.prototype.setDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setDate.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setDate.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setDate) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setDate.length has the attribute DontEnum'); + } +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T1.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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T1.js new file mode 100644 index 000000000..8027fc2e1 --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T1.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. + +/** + * @name: S15.9.5.37_A1_T1; + * @section: 15.9.5.37; + * @assertion: The Date.prototype property "setUTCDate" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCDate; +if(x === 1) + Date.prototype.setUTCDate = 2; +else + Date.prototype.setUTCDate = 1; +if (Date.prototype.setUTCDate === x) { + $ERROR('#1: The Date.prototype.setUTCDate has not the attribute ReadOnly'); +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T2.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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T2.js new file mode 100644 index 000000000..256851fb9 --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T2.js @@ -0,0 +1,18 @@ +// 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.37_A1_T2; + * @section: 15.9.5.37; + * @assertion: The Date.prototype property "setUTCDate" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCDate === false) { + $ERROR('#1: The Date.prototype.setUTCDate property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCDate')) { + $FAIL('#2: The Date.prototype.setUTCDate property has not the attributes DontDelete'); +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_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.37_Date.prototype.setUTCDate/S15.9.5.37_A1_T3.js new file mode 100644 index 000000000..ef59c2f77 --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_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.37_A1_T3; + * @section: 15.9.5.37; + * @assertion: The Date.prototype property "setUTCDate" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCDate')) { + $ERROR('#1: The Date.prototype.setUTCDate property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCDate") { + $ERROR('#2: The Date.prototype.setUTCDate has the attribute DontEnum'); + } +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_A2_T1.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.37_Date.prototype.setUTCDate/S15.9.5.37_A2_T1.js new file mode 100644 index 000000000..848b08008 --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_A2_T1.js @@ -0,0 +1,18 @@ +// 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.37_A2_T1; + * @section: 15.9.5.37; + * @assertion: The "length" property of the "setUTCDate" is 1; + * @description: The "length" property of the "setUTCDate" is 1; + */ + +if(Date.prototype.setUTCDate.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCDate has a "length" property'); +} + +if(Date.prototype.setUTCDate.length !== 1){ + $ERROR('#2: The "length" property of the setUTCDate is 1'); +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T1.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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T1.js new file mode 100644 index 000000000..c73e119c2 --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T1.js @@ -0,0 +1,16 @@ +// 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.37_A3_T1; + * @section: 15.9.5.37; + * @assertion: The Date.prototype.setUTCDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCDate.length; +Date.prototype.setUTCDate.length = 1; +if (Date.prototype.setUTCDate.length !== x) { + $ERROR('#1: The Date.prototype.setUTCDate.length has the attribute ReadOnly'); +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T2.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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T2.js new file mode 100644 index 000000000..2d36cd97f --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T2.js @@ -0,0 +1,18 @@ +// 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.37_A3_T2; + * @section: 15.9.5.37; + * @assertion: The Date.prototype.setUTCDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCDate.length !== false) { + $ERROR('#1: The Date.prototype.setUTCDate.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCDate.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCDate.length property has the attributes DontDelete'); +} + 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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_T3.js new file mode 100644 index 000000000..165238bf6 --- /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.37_Date.prototype.setUTCDate/S15.9.5.37_A3_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.37_A3_T3; + * @section: 15.9.5.37; + * @assertion: The Date.prototype.setUTCDate property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCDate.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCDate.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCDate) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCDate.length has the attribute DontEnum'); + } +} + 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.38_Date.prototype.setMonth/S15.9.5.38_A1_T1.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.38_Date.prototype.setMonth/S15.9.5.38_A1_T1.js new file mode 100644 index 000000000..11534cf24 --- /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.38_Date.prototype.setMonth/S15.9.5.38_A1_T1.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. + +/** + * @name: S15.9.5.38_A1_T1; + * @section: 15.9.5.38; + * @assertion: The Date.prototype property "setMonth" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setMonth; +if(x === 1) + Date.prototype.setMonth = 2; +else + Date.prototype.setMonth = 1; +if (Date.prototype.setMonth === x) { + $ERROR('#1: The Date.prototype.setMonth has not the attribute ReadOnly'); +} + 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.38_Date.prototype.setMonth/S15.9.5.38_A1_T2.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.38_Date.prototype.setMonth/S15.9.5.38_A1_T2.js new file mode 100644 index 000000000..dfc5e231d --- /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.38_Date.prototype.setMonth/S15.9.5.38_A1_T2.js @@ -0,0 +1,18 @@ +// 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.38_A1_T2; + * @section: 15.9.5.38; + * @assertion: The Date.prototype property "setMonth" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setMonth === false) { + $ERROR('#1: The Date.prototype.setMonth property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setMonth')) { + $FAIL('#2: The Date.prototype.setMonth property has not the attributes DontDelete'); +} + 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.38_Date.prototype.setMonth/S15.9.5.38_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.38_Date.prototype.setMonth/S15.9.5.38_A1_T3.js new file mode 100644 index 000000000..fc394303f --- /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.38_Date.prototype.setMonth/S15.9.5.38_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.38_A1_T3; + * @section: 15.9.5.38; + * @assertion: The Date.prototype property "setMonth" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setMonth')) { + $ERROR('#1: The Date.prototype.setMonth property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setMonth") { + $ERROR('#2: The Date.prototype.setMonth has the attribute DontEnum'); + } +} + 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.38_Date.prototype.setMonth/S15.9.5.38_A2_T1.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.38_Date.prototype.setMonth/S15.9.5.38_A2_T1.js new file mode 100644 index 000000000..f739e3399 --- /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.38_Date.prototype.setMonth/S15.9.5.38_A2_T1.js @@ -0,0 +1,18 @@ +// 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.38_A2_T1; + * @section: 15.9.5.38; + * @assertion: The "length" property of the "setMonth" is 2; + * @description: The "length" property of the "setMonth" is 2; + */ + +if(Date.prototype.setMonth.hasOwnProperty("length") !== true){ + $ERROR('#1: The setMonth has a "length" property'); +} + +if(Date.prototype.setMonth.length !== 2){ + $ERROR('#2: The "length" property of the setMonth is 2'); +} + 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.38_Date.prototype.setMonth/S15.9.5.38_A3_T1.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.38_Date.prototype.setMonth/S15.9.5.38_A3_T1.js new file mode 100644 index 000000000..f5c6aa850 --- /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.38_Date.prototype.setMonth/S15.9.5.38_A3_T1.js @@ -0,0 +1,16 @@ +// 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.38_A3_T1; + * @section: 15.9.5.38; + * @assertion: The Date.prototype.setMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setMonth.length; +Date.prototype.setMonth.length = 1; +if (Date.prototype.setMonth.length !== x) { + $ERROR('#1: The Date.prototype.setMonth.length has the attribute ReadOnly'); +} + 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.38_Date.prototype.setMonth/S15.9.5.38_A3_T2.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.38_Date.prototype.setMonth/S15.9.5.38_A3_T2.js new file mode 100644 index 000000000..1edb2d087 --- /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.38_Date.prototype.setMonth/S15.9.5.38_A3_T2.js @@ -0,0 +1,18 @@ +// 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.38_A3_T2; + * @section: 15.9.5.38; + * @assertion: The Date.prototype.setMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setMonth.length !== false) { + $ERROR('#1: The Date.prototype.setMonth.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setMonth.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setMonth.length property has the attributes DontDelete'); +} + 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.38_Date.prototype.setMonth/S15.9.5.38_A3_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.38_Date.prototype.setMonth/S15.9.5.38_A3_T3.js new file mode 100644 index 000000000..5b1a74203 --- /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.38_Date.prototype.setMonth/S15.9.5.38_A3_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.38_A3_T3; + * @section: 15.9.5.38; + * @assertion: The Date.prototype.setMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setMonth.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setMonth.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setMonth) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setMonth.length has the attribute DontEnum'); + } +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T1.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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T1.js new file mode 100644 index 000000000..6f95de130 --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T1.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. + +/** + * @name: S15.9.5.39_A1_T1; + * @section: 15.9.5.39; + * @assertion: The Date.prototype property "setUTCMonth" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCMonth; +if(x === 1) + Date.prototype.setUTCMonth = 2; +else + Date.prototype.setUTCMonth = 1; +if (Date.prototype.setUTCMonth === x) { + $ERROR('#1: The Date.prototype.setUTCMonth has not the attribute ReadOnly'); +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T2.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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T2.js new file mode 100644 index 000000000..396569113 --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T2.js @@ -0,0 +1,18 @@ +// 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.39_A1_T2; + * @section: 15.9.5.39; + * @assertion: The Date.prototype property "setUTCMonth" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCMonth === false) { + $ERROR('#1: The Date.prototype.setUTCMonth property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCMonth')) { + $FAIL('#2: The Date.prototype.setUTCMonth property has not the attributes DontDelete'); +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_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.39_Date.prototype.setUTCMonth/S15.9.5.39_A1_T3.js new file mode 100644 index 000000000..2253bc6b7 --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_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.39_A1_T3; + * @section: 15.9.5.39; + * @assertion: The Date.prototype property "setUTCMonth" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCMonth')) { + $ERROR('#1: The Date.prototype.setUTCMonth property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCMonth") { + $ERROR('#2: The Date.prototype.setUTCMonth has the attribute DontEnum'); + } +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_A2_T1.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.39_Date.prototype.setUTCMonth/S15.9.5.39_A2_T1.js new file mode 100644 index 000000000..9a8e202ee --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_A2_T1.js @@ -0,0 +1,18 @@ +// 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.39_A2_T1; + * @section: 15.9.5.39; + * @assertion: The "length" property of the "setUTCMonth" is 2; + * @description: The "length" property of the "setUTCMonth" is 2; + */ + +if(Date.prototype.setUTCMonth.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCMonth has a "length" property'); +} + +if(Date.prototype.setUTCMonth.length !== 2){ + $ERROR('#2: The "length" property of the setUTCMonth is 2'); +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T1.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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T1.js new file mode 100644 index 000000000..18211da9c --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T1.js @@ -0,0 +1,16 @@ +// 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.39_A3_T1; + * @section: 15.9.5.39; + * @assertion: The Date.prototype.setUTCMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCMonth.length; +Date.prototype.setUTCMonth.length = 1; +if (Date.prototype.setUTCMonth.length !== x) { + $ERROR('#1: The Date.prototype.setUTCMonth.length has the attribute ReadOnly'); +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T2.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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T2.js new file mode 100644 index 000000000..17dd776d2 --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T2.js @@ -0,0 +1,18 @@ +// 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.39_A3_T2; + * @section: 15.9.5.39; + * @assertion: The Date.prototype.setUTCMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCMonth.length !== false) { + $ERROR('#1: The Date.prototype.setUTCMonth.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCMonth.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCMonth.length property has the attributes DontDelete'); +} + 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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_T3.js new file mode 100644 index 000000000..f43f0bbda --- /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.39_Date.prototype.setUTCMonth/S15.9.5.39_A3_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.39_A3_T3; + * @section: 15.9.5.39; + * @assertion: The Date.prototype.setUTCMonth property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCMonth.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCMonth.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCMonth) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCMonth.length has the attribute DontEnum'); + } +} + 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.3_Date.prototype.toDateString/S15.9.5.3_A1_T1.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.3_Date.prototype.toDateString/S15.9.5.3_A1_T1.js new file mode 100644 index 000000000..c4ba4a909 --- /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.3_Date.prototype.toDateString/S15.9.5.3_A1_T1.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. + +/** + * @name: S15.9.5.3_A1_T1; + * @section: 15.9.5.3; + * @assertion: The Date.prototype property "toDateString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toDateString; +if(x === 1) + Date.prototype.toDateString = 2; +else + Date.prototype.toDateString = 1; +if (Date.prototype.toDateString === x) { + $ERROR('#1: The Date.prototype.toDateString has not the attribute ReadOnly'); +} + 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.3_Date.prototype.toDateString/S15.9.5.3_A1_T2.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.3_Date.prototype.toDateString/S15.9.5.3_A1_T2.js new file mode 100644 index 000000000..fe6ea8e2b --- /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.3_Date.prototype.toDateString/S15.9.5.3_A1_T2.js @@ -0,0 +1,18 @@ +// 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.3_A1_T2; + * @section: 15.9.5.3; + * @assertion: The Date.prototype property "toDateString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toDateString === false) { + $ERROR('#1: The Date.prototype.toDateString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toDateString')) { + $FAIL('#2: The Date.prototype.toDateString property has not the attributes DontDelete'); +} + 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.3_Date.prototype.toDateString/S15.9.5.3_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.3_Date.prototype.toDateString/S15.9.5.3_A1_T3.js new file mode 100644 index 000000000..a122f63ff --- /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.3_Date.prototype.toDateString/S15.9.5.3_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.3_A1_T3; + * @section: 15.9.5.3; + * @assertion: The Date.prototype property "toDateString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toDateString')) { + $ERROR('#1: The Date.prototype.toDateString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toDateString") { + $ERROR('#2: The Date.prototype.toDateString has the attribute DontEnum'); + } +} + 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.3_Date.prototype.toDateString/S15.9.5.3_A2_T1.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.3_Date.prototype.toDateString/S15.9.5.3_A2_T1.js new file mode 100644 index 000000000..02f9fa959 --- /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.3_Date.prototype.toDateString/S15.9.5.3_A2_T1.js @@ -0,0 +1,18 @@ +// 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.3_A2_T1; + * @section: 15.9.5.3; + * @assertion: The "length" property of the "toDateString" is 0; + * @description: The "length" property of the "toDateString" is 0; + */ + +if(Date.prototype.toDateString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toDateString has a "length" property'); +} + +if(Date.prototype.toDateString.length !== 0){ + $ERROR('#2: The "length" property of the toDateString is 0'); +} + 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.3_Date.prototype.toDateString/S15.9.5.3_A3_T1.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.3_Date.prototype.toDateString/S15.9.5.3_A3_T1.js new file mode 100644 index 000000000..524ab914d --- /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.3_Date.prototype.toDateString/S15.9.5.3_A3_T1.js @@ -0,0 +1,16 @@ +// 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.3_A3_T1; + * @section: 15.9.5.3; + * @assertion: The Date.prototype.toDateString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toDateString.length; +Date.prototype.toDateString.length = 1; +if (Date.prototype.toDateString.length !== x) { + $ERROR('#1: The Date.prototype.toDateString.length has the attribute ReadOnly'); +} + 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.3_Date.prototype.toDateString/S15.9.5.3_A3_T2.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.3_Date.prototype.toDateString/S15.9.5.3_A3_T2.js new file mode 100644 index 000000000..a5294596f --- /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.3_Date.prototype.toDateString/S15.9.5.3_A3_T2.js @@ -0,0 +1,18 @@ +// 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.3_A3_T2; + * @section: 15.9.5.3; + * @assertion: The Date.prototype.toDateString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toDateString.length !== false) { + $ERROR('#1: The Date.prototype.toDateString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toDateString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toDateString.length property has the attributes DontDelete'); +} + 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.3_Date.prototype.toDateString/S15.9.5.3_A3_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.3_Date.prototype.toDateString/S15.9.5.3_A3_T3.js new file mode 100644 index 000000000..aa336ba3d --- /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.3_Date.prototype.toDateString/S15.9.5.3_A3_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.3_A3_T3; + * @section: 15.9.5.3; + * @assertion: The Date.prototype.toDateString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toDateString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toDateString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toDateString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toDateString.length has the attribute DontEnum'); + } +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T1.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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T1.js new file mode 100644 index 000000000..9391c9cbc --- /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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T1.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. + +/** + * @name: S15.9.5.40_A1_T1; + * @section: 15.9.5.40; + * @assertion: The Date.prototype property "setFullYear" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setFullYear; +if(x === 1) + Date.prototype.setFullYear = 2; +else + Date.prototype.setFullYear = 1; +if (Date.prototype.setFullYear === x) { + $ERROR('#1: The Date.prototype.setFullYear has not the attribute ReadOnly'); +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T2.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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T2.js new file mode 100644 index 000000000..21cdebef0 --- /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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T2.js @@ -0,0 +1,18 @@ +// 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.40_A1_T2; + * @section: 15.9.5.40; + * @assertion: The Date.prototype property "setFullYear" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setFullYear === false) { + $ERROR('#1: The Date.prototype.setFullYear property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setFullYear')) { + $FAIL('#2: The Date.prototype.setFullYear property has not the attributes DontDelete'); +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_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.40_Date.prototype.setFullYear/S15.9.5.40_A1_T3.js new file mode 100644 index 000000000..f95bed0e9 --- /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.40_Date.prototype.setFullYear/S15.9.5.40_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.40_A1_T3; + * @section: 15.9.5.40; + * @assertion: The Date.prototype property "setFullYear" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setFullYear')) { + $ERROR('#1: The Date.prototype.setFullYear property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setFullYear") { + $ERROR('#2: The Date.prototype.setFullYear has the attribute DontEnum'); + } +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_A2_T1.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.40_Date.prototype.setFullYear/S15.9.5.40_A2_T1.js new file mode 100644 index 000000000..cbea2f684 --- /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.40_Date.prototype.setFullYear/S15.9.5.40_A2_T1.js @@ -0,0 +1,18 @@ +// 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.40_A2_T1; + * @section: 15.9.5.40; + * @assertion: The "length" property of the "setFullYear" is 3; + * @description: The "length" property of the "setFullYear" is 3; + */ + +if(Date.prototype.setFullYear.hasOwnProperty("length") !== true){ + $ERROR('#1: The setFullYear has a "length" property'); +} + +if(Date.prototype.setFullYear.length !== 3){ + $ERROR('#2: The "length" property of the setFullYear is 3'); +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T1.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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T1.js new file mode 100644 index 000000000..534ea917f --- /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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T1.js @@ -0,0 +1,16 @@ +// 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.40_A3_T1; + * @section: 15.9.5.40; + * @assertion: The Date.prototype.setFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setFullYear.length; +Date.prototype.setFullYear.length = 1; +if (Date.prototype.setFullYear.length !== x) { + $ERROR('#1: The Date.prototype.setFullYear.length has the attribute ReadOnly'); +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T2.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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T2.js new file mode 100644 index 000000000..d6abfabd7 --- /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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T2.js @@ -0,0 +1,18 @@ +// 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.40_A3_T2; + * @section: 15.9.5.40; + * @assertion: The Date.prototype.setFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setFullYear.length !== false) { + $ERROR('#1: The Date.prototype.setFullYear.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setFullYear.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setFullYear.length property has the attributes DontDelete'); +} + 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.40_Date.prototype.setFullYear/S15.9.5.40_A3_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.40_Date.prototype.setFullYear/S15.9.5.40_A3_T3.js new file mode 100644 index 000000000..4e556d922 --- /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.40_Date.prototype.setFullYear/S15.9.5.40_A3_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.40_A3_T3; + * @section: 15.9.5.40; + * @assertion: The Date.prototype.setFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setFullYear.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setFullYear) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setFullYear.length has the attribute DontEnum'); + } +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T1.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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T1.js new file mode 100644 index 000000000..5f5e7b389 --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T1.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. + +/** + * @name: S15.9.5.41_A1_T1; + * @section: 15.9.5.41; + * @assertion: The Date.prototype property "setUTCFullYear" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.setUTCFullYear; +if(x === 1) + Date.prototype.setUTCFullYear = 2; +else + Date.prototype.setUTCFullYear = 1; +if (Date.prototype.setUTCFullYear === x) { + $ERROR('#1: The Date.prototype.setUTCFullYear has not the attribute ReadOnly'); +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T2.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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T2.js new file mode 100644 index 000000000..1b7705360 --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T2.js @@ -0,0 +1,18 @@ +// 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.41_A1_T2; + * @section: 15.9.5.41; + * @assertion: The Date.prototype property "setUTCFullYear" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.setUTCFullYear === false) { + $ERROR('#1: The Date.prototype.setUTCFullYear property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('setUTCFullYear')) { + $FAIL('#2: The Date.prototype.setUTCFullYear property has not the attributes DontDelete'); +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A1_T3.js new file mode 100644 index 000000000..1475b422e --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_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.41_A1_T3; + * @section: 15.9.5.41; + * @assertion: The Date.prototype property "setUTCFullYear" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('setUTCFullYear')) { + $ERROR('#1: The Date.prototype.setUTCFullYear property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "setUTCFullYear") { + $ERROR('#2: The Date.prototype.setUTCFullYear has the attribute DontEnum'); + } +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A2_T1.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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A2_T1.js new file mode 100644 index 000000000..a97dc8edb --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A2_T1.js @@ -0,0 +1,18 @@ +// 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.41_A2_T1; + * @section: 15.9.5.41; + * @assertion: The "length" property of the "setUTCFullYear" is 3; + * @description: The "length" property of the "setUTCFullYear" is 3; + */ + +if(Date.prototype.setUTCFullYear.hasOwnProperty("length") !== true){ + $ERROR('#1: The setUTCFullYear has a "length" property'); +} + +if(Date.prototype.setUTCFullYear.length !== 3){ + $ERROR('#2: The "length" property of the setUTCFullYear is 3'); +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T1.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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T1.js new file mode 100644 index 000000000..a3f7c1e51 --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T1.js @@ -0,0 +1,16 @@ +// 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.41_A3_T1; + * @section: 15.9.5.41; + * @assertion: The Date.prototype.setUTCFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.setUTCFullYear.length; +Date.prototype.setUTCFullYear.length = 1; +if (Date.prototype.setUTCFullYear.length !== x) { + $ERROR('#1: The Date.prototype.setUTCFullYear.length has the attribute ReadOnly'); +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T2.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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T2.js new file mode 100644 index 000000000..cbfc2a5d5 --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T2.js @@ -0,0 +1,18 @@ +// 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.41_A3_T2; + * @section: 15.9.5.41; + * @assertion: The Date.prototype.setUTCFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.setUTCFullYear.length !== false) { + $ERROR('#1: The Date.prototype.setUTCFullYear.length property has the attributes DontDelete'); +} + +if (!Date.prototype.setUTCFullYear.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.setUTCFullYear.length property has the attributes DontDelete'); +} + 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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_T3.js new file mode 100644 index 000000000..9c750acb8 --- /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.41_Date.prototype.setUTCFullYear/S15.9.5.41_A3_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.41_A3_T3; + * @section: 15.9.5.41; + * @assertion: The Date.prototype.setUTCFullYear property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.setUTCFullYear.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.setUTCFullYear.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.setUTCFullYear) { + if(x === "length") { + $ERROR('#2: The Date.prototype.setUTCFullYear.length has the attribute DontEnum'); + } +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T1.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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T1.js new file mode 100644 index 000000000..2d0ae6c8e --- /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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T1.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. + +/** + * @name: S15.9.5.42_A1_T1; + * @section: 15.9.5.42; + * @assertion: The Date.prototype property "toUTCString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toUTCString; +if(x === 1) + Date.prototype.toUTCString = 2; +else + Date.prototype.toUTCString = 1; +if (Date.prototype.toUTCString === x) { + $ERROR('#1: The Date.prototype.toUTCString has not the attribute ReadOnly'); +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T2.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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T2.js new file mode 100644 index 000000000..673f79638 --- /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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T2.js @@ -0,0 +1,18 @@ +// 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.42_A1_T2; + * @section: 15.9.5.42; + * @assertion: The Date.prototype property "toUTCString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toUTCString === false) { + $ERROR('#1: The Date.prototype.toUTCString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toUTCString')) { + $FAIL('#2: The Date.prototype.toUTCString property has not the attributes DontDelete'); +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_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.42_Date.prototype.toUTCString/S15.9.5.42_A1_T3.js new file mode 100644 index 000000000..f9df00e91 --- /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.42_Date.prototype.toUTCString/S15.9.5.42_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.42_A1_T3; + * @section: 15.9.5.42; + * @assertion: The Date.prototype property "toUTCString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toUTCString')) { + $ERROR('#1: The Date.prototype.toUTCString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toUTCString") { + $ERROR('#2: The Date.prototype.toUTCString has the attribute DontEnum'); + } +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_A2_T1.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.42_Date.prototype.toUTCString/S15.9.5.42_A2_T1.js new file mode 100644 index 000000000..8c32add87 --- /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.42_Date.prototype.toUTCString/S15.9.5.42_A2_T1.js @@ -0,0 +1,18 @@ +// 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.42_A2_T1; + * @section: 15.9.5.42; + * @assertion: The "length" property of the "toUTCString" is 0; + * @description: The "length" property of the "toUTCString" is 0; + */ + +if(Date.prototype.toUTCString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toUTCString has a "length" property'); +} + +if(Date.prototype.toUTCString.length !== 0){ + $ERROR('#2: The "length" property of the toUTCString is 0'); +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T1.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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T1.js new file mode 100644 index 000000000..c0b52d01f --- /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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T1.js @@ -0,0 +1,16 @@ +// 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.42_A3_T1; + * @section: 15.9.5.42; + * @assertion: The Date.prototype.toUTCString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toUTCString.length; +Date.prototype.toUTCString.length = 1; +if (Date.prototype.toUTCString.length !== x) { + $ERROR('#1: The Date.prototype.toUTCString.length has the attribute ReadOnly'); +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T2.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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T2.js new file mode 100644 index 000000000..fbd7dd689 --- /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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T2.js @@ -0,0 +1,18 @@ +// 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.42_A3_T2; + * @section: 15.9.5.42; + * @assertion: The Date.prototype.toUTCString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toUTCString.length !== false) { + $ERROR('#1: The Date.prototype.toUTCString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toUTCString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toUTCString.length property has the attributes DontDelete'); +} + 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.42_Date.prototype.toUTCString/S15.9.5.42_A3_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.42_Date.prototype.toUTCString/S15.9.5.42_A3_T3.js new file mode 100644 index 000000000..c1562f6f7 --- /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.42_Date.prototype.toUTCString/S15.9.5.42_A3_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.42_A3_T3; + * @section: 15.9.5.42; + * @assertion: The Date.prototype.toUTCString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toUTCString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toUTCString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toUTCString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toUTCString.length has the attribute DontEnum'); + } +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T1.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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T1.js new file mode 100644 index 000000000..3389bacda --- /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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T1.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. + +/** + * @name: S15.9.5.4_A1_T1; + * @section: 15.9.5.4; + * @assertion: The Date.prototype property "toTimeString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toTimeString; +if(x === 1) + Date.prototype.toTimeString = 2; +else + Date.prototype.toTimeString = 1; +if (Date.prototype.toTimeString === x) { + $ERROR('#1: The Date.prototype.toTimeString has not the attribute ReadOnly'); +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T2.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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T2.js new file mode 100644 index 000000000..2dfdcc8f9 --- /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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T2.js @@ -0,0 +1,18 @@ +// 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.4_A1_T2; + * @section: 15.9.5.4; + * @assertion: The Date.prototype property "toTimeString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toTimeString === false) { + $ERROR('#1: The Date.prototype.toTimeString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toTimeString')) { + $FAIL('#2: The Date.prototype.toTimeString property has not the attributes DontDelete'); +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_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.4_Date.prototype.toTimeString/S15.9.5.4_A1_T3.js new file mode 100644 index 000000000..3d3f12337 --- /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.4_Date.prototype.toTimeString/S15.9.5.4_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.4_A1_T3; + * @section: 15.9.5.4; + * @assertion: The Date.prototype property "toTimeString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toTimeString')) { + $ERROR('#1: The Date.prototype.toTimeString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toTimeString") { + $ERROR('#2: The Date.prototype.toTimeString has the attribute DontEnum'); + } +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_A2_T1.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.4_Date.prototype.toTimeString/S15.9.5.4_A2_T1.js new file mode 100644 index 000000000..480ea8e1e --- /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.4_Date.prototype.toTimeString/S15.9.5.4_A2_T1.js @@ -0,0 +1,18 @@ +// 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.4_A2_T1; + * @section: 15.9.5.4; + * @assertion: The "length" property of the "toTimeString" is 0; + * @description: The "length" property of the "toTimeString" is 0; + */ + +if(Date.prototype.toTimeString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toTimeString has a "length" property'); +} + +if(Date.prototype.toTimeString.length !== 0){ + $ERROR('#2: The "length" property of the toTimeString is 0'); +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T1.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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T1.js new file mode 100644 index 000000000..daafd19a6 --- /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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T1.js @@ -0,0 +1,16 @@ +// 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.4_A3_T1; + * @section: 15.9.5.4; + * @assertion: The Date.prototype.toTimeString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toTimeString.length; +Date.prototype.toTimeString.length = 1; +if (Date.prototype.toTimeString.length !== x) { + $ERROR('#1: The Date.prototype.toTimeString.length has the attribute ReadOnly'); +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T2.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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T2.js new file mode 100644 index 000000000..b6f67f5ce --- /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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T2.js @@ -0,0 +1,18 @@ +// 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.4_A3_T2; + * @section: 15.9.5.4; + * @assertion: The Date.prototype.toTimeString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toTimeString.length !== false) { + $ERROR('#1: The Date.prototype.toTimeString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toTimeString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toTimeString.length property has the attributes DontDelete'); +} + 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.4_Date.prototype.toTimeString/S15.9.5.4_A3_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.4_Date.prototype.toTimeString/S15.9.5.4_A3_T3.js new file mode 100644 index 000000000..9fb440ac1 --- /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.4_Date.prototype.toTimeString/S15.9.5.4_A3_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.4_A3_T3; + * @section: 15.9.5.4; + * @assertion: The Date.prototype.toTimeString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toTimeString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toTimeString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toTimeString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toTimeString.length has the attribute DontEnum'); + } +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T1.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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T1.js new file mode 100644 index 000000000..81c4460a3 --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T1.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. + +/** + * @name: S15.9.5.5_A1_T1; + * @section: 15.9.5.5; + * @assertion: The Date.prototype property "toLocaleString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toLocaleString; +if(x === 1) + Date.prototype.toLocaleString = 2; +else + Date.prototype.toLocaleString = 1; +if (Date.prototype.toLocaleString === x) { + $ERROR('#1: The Date.prototype.toLocaleString has not the attribute ReadOnly'); +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T2.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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T2.js new file mode 100644 index 000000000..3a1d0fb3a --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T2.js @@ -0,0 +1,18 @@ +// 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.5_A1_T2; + * @section: 15.9.5.5; + * @assertion: The Date.prototype property "toLocaleString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toLocaleString === false) { + $ERROR('#1: The Date.prototype.toLocaleString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toLocaleString')) { + $FAIL('#2: The Date.prototype.toLocaleString property has not the attributes DontDelete'); +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_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.5_Date.prototype.toLocaleString/S15.9.5.5_A1_T3.js new file mode 100644 index 000000000..6b6f891b1 --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_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.5_A1_T3; + * @section: 15.9.5.5; + * @assertion: The Date.prototype property "toLocaleString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toLocaleString')) { + $ERROR('#1: The Date.prototype.toLocaleString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toLocaleString") { + $ERROR('#2: The Date.prototype.toLocaleString has the attribute DontEnum'); + } +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_A2_T1.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.5_Date.prototype.toLocaleString/S15.9.5.5_A2_T1.js new file mode 100644 index 000000000..25638f234 --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_A2_T1.js @@ -0,0 +1,18 @@ +// 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.5_A2_T1; + * @section: 15.9.5.5; + * @assertion: The "length" property of the "toLocaleString" is 0; + * @description: The "length" property of the "toLocaleString" is 0; + */ + +if(Date.prototype.toLocaleString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toLocaleString has a "length" property'); +} + +if(Date.prototype.toLocaleString.length !== 0){ + $ERROR('#2: The "length" property of the toLocaleString is 0'); +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T1.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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T1.js new file mode 100644 index 000000000..79876efb0 --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T1.js @@ -0,0 +1,16 @@ +// 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.5_A3_T1; + * @section: 15.9.5.5; + * @assertion: The Date.prototype.toLocaleString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toLocaleString.length; +Date.prototype.toLocaleString.length = 1; +if (Date.prototype.toLocaleString.length !== x) { + $ERROR('#1: The Date.prototype.toLocaleString.length has the attribute ReadOnly'); +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T2.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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T2.js new file mode 100644 index 000000000..f645f68b9 --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T2.js @@ -0,0 +1,18 @@ +// 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.5_A3_T2; + * @section: 15.9.5.5; + * @assertion: The Date.prototype.toLocaleString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toLocaleString.length !== false) { + $ERROR('#1: The Date.prototype.toLocaleString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toLocaleString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toLocaleString.length property has the attributes DontDelete'); +} + 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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_T3.js new file mode 100644 index 000000000..2b77361f3 --- /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.5_Date.prototype.toLocaleString/S15.9.5.5_A3_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.5_A3_T3; + * @section: 15.9.5.5; + * @assertion: The Date.prototype.toLocaleString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toLocaleString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toLocaleString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toLocaleString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toLocaleString.length has the attribute DontEnum'); + } +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T1.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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T1.js new file mode 100644 index 000000000..887d13417 --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T1.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. + +/** + * @name: S15.9.5.6_A1_T1; + * @section: 15.9.5.6; + * @assertion: The Date.prototype property "toLocaleDateString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toLocaleDateString; +if(x === 1) + Date.prototype.toLocaleDateString = 2; +else + Date.prototype.toLocaleDateString = 1; +if (Date.prototype.toLocaleDateString === x) { + $ERROR('#1: The Date.prototype.toLocaleDateString has not the attribute ReadOnly'); +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T2.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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T2.js new file mode 100644 index 000000000..6d1e1a12a --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T2.js @@ -0,0 +1,18 @@ +// 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.6_A1_T2; + * @section: 15.9.5.6; + * @assertion: The Date.prototype property "toLocaleDateString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toLocaleDateString === false) { + $ERROR('#1: The Date.prototype.toLocaleDateString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toLocaleDateString')) { + $FAIL('#2: The Date.prototype.toLocaleDateString property has not the attributes DontDelete'); +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A1_T3.js new file mode 100644 index 000000000..05011c1dc --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_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.6_A1_T3; + * @section: 15.9.5.6; + * @assertion: The Date.prototype property "toLocaleDateString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toLocaleDateString')) { + $ERROR('#1: The Date.prototype.toLocaleDateString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toLocaleDateString") { + $ERROR('#2: The Date.prototype.toLocaleDateString has the attribute DontEnum'); + } +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A2_T1.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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A2_T1.js new file mode 100644 index 000000000..d39433cd8 --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A2_T1.js @@ -0,0 +1,18 @@ +// 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.6_A2_T1; + * @section: 15.9.5.6; + * @assertion: The "length" property of the "toLocaleDateString" is 0; + * @description: The "length" property of the "toLocaleDateString" is 0; + */ + +if(Date.prototype.toLocaleDateString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toLocaleDateString has a "length" property'); +} + +if(Date.prototype.toLocaleDateString.length !== 0){ + $ERROR('#2: The "length" property of the toLocaleDateString is 0'); +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T1.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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T1.js new file mode 100644 index 000000000..add952304 --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T1.js @@ -0,0 +1,16 @@ +// 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.6_A3_T1; + * @section: 15.9.5.6; + * @assertion: The Date.prototype.toLocaleDateString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toLocaleDateString.length; +Date.prototype.toLocaleDateString.length = 1; +if (Date.prototype.toLocaleDateString.length !== x) { + $ERROR('#1: The Date.prototype.toLocaleDateString.length has the attribute ReadOnly'); +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T2.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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T2.js new file mode 100644 index 000000000..607e8d976 --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T2.js @@ -0,0 +1,18 @@ +// 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.6_A3_T2; + * @section: 15.9.5.6; + * @assertion: The Date.prototype.toLocaleDateString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toLocaleDateString.length !== false) { + $ERROR('#1: The Date.prototype.toLocaleDateString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toLocaleDateString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toLocaleDateString.length property has the attributes DontDelete'); +} + 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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_T3.js new file mode 100644 index 000000000..974cffe9c --- /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.6_Date.prototype.toLocaleDateString/S15.9.5.6_A3_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.6_A3_T3; + * @section: 15.9.5.6; + * @assertion: The Date.prototype.toLocaleDateString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toLocaleDateString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toLocaleDateString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toLocaleDateString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toLocaleDateString.length has the attribute DontEnum'); + } +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T1.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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T1.js new file mode 100644 index 000000000..2671f0480 --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T1.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. + +/** + * @name: S15.9.5.7_A1_T1; + * @section: 15.9.5.7; + * @assertion: The Date.prototype property "toLocaleTimeString" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.toLocaleTimeString; +if(x === 1) + Date.prototype.toLocaleTimeString = 2; +else + Date.prototype.toLocaleTimeString = 1; +if (Date.prototype.toLocaleTimeString === x) { + $ERROR('#1: The Date.prototype.toLocaleTimeString has not the attribute ReadOnly'); +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T2.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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T2.js new file mode 100644 index 000000000..d48cd2d2b --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T2.js @@ -0,0 +1,18 @@ +// 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.7_A1_T2; + * @section: 15.9.5.7; + * @assertion: The Date.prototype property "toLocaleTimeString" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.toLocaleTimeString === false) { + $ERROR('#1: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('toLocaleTimeString')) { + $FAIL('#2: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete'); +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A1_T3.js new file mode 100644 index 000000000..27a175f14 --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_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.7_A1_T3; + * @section: 15.9.5.7; + * @assertion: The Date.prototype property "toLocaleTimeString" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('toLocaleTimeString')) { + $ERROR('#1: The Date.prototype.toLocaleTimeString property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "toLocaleTimeString") { + $ERROR('#2: The Date.prototype.toLocaleTimeString has the attribute DontEnum'); + } +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A2_T1.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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A2_T1.js new file mode 100644 index 000000000..b2a89e32e --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A2_T1.js @@ -0,0 +1,18 @@ +// 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.7_A2_T1; + * @section: 15.9.5.7; + * @assertion: The "length" property of the "toLocaleTimeString" is 0; + * @description: The "length" property of the "toLocaleTimeString" is 0; + */ + +if(Date.prototype.toLocaleTimeString.hasOwnProperty("length") !== true){ + $ERROR('#1: The toLocaleTimeString has a "length" property'); +} + +if(Date.prototype.toLocaleTimeString.length !== 0){ + $ERROR('#2: The "length" property of the toLocaleTimeString is 0'); +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T1.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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T1.js new file mode 100644 index 000000000..bcfbb6b9a --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T1.js @@ -0,0 +1,16 @@ +// 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.7_A3_T1; + * @section: 15.9.5.7; + * @assertion: The Date.prototype.toLocaleTimeString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.toLocaleTimeString.length; +Date.prototype.toLocaleTimeString.length = 1; +if (Date.prototype.toLocaleTimeString.length !== x) { + $ERROR('#1: The Date.prototype.toLocaleTimeString.length has the attribute ReadOnly'); +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T2.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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T2.js new file mode 100644 index 000000000..2053fea08 --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T2.js @@ -0,0 +1,18 @@ +// 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.7_A3_T2; + * @section: 15.9.5.7; + * @assertion: The Date.prototype.toLocaleTimeString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.toLocaleTimeString.length !== false) { + $ERROR('#1: The Date.prototype.toLocaleTimeString.length property has the attributes DontDelete'); +} + +if (!Date.prototype.toLocaleTimeString.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.toLocaleTimeString.length property has the attributes DontDelete'); +} + 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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_T3.js new file mode 100644 index 000000000..05ea5728f --- /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.7_Date.prototype.toLocaleTimeString/S15.9.5.7_A3_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.7_A3_T3; + * @section: 15.9.5.7; + * @assertion: The Date.prototype.toLocaleTimeString property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.toLocaleTimeString.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.toLocaleTimeString.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.toLocaleTimeString) { + if(x === "length") { + $ERROR('#2: The Date.prototype.toLocaleTimeString.length has the attribute DontEnum'); + } +} + 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.8_Date.prototype.valueOf/S15.9.5.8_A1_T1.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.8_Date.prototype.valueOf/S15.9.5.8_A1_T1.js new file mode 100644 index 000000000..f66a475f5 --- /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.8_Date.prototype.valueOf/S15.9.5.8_A1_T1.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. + +/** + * @name: S15.9.5.8_A1_T1; + * @section: 15.9.5.8; + * @assertion: The Date.prototype property "valueOf" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.valueOf; +if(x === 1) + Date.prototype.valueOf = 2; +else + Date.prototype.valueOf = 1; +if (Date.prototype.valueOf === x) { + $ERROR('#1: The Date.prototype.valueOf has not the attribute ReadOnly'); +} + 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.8_Date.prototype.valueOf/S15.9.5.8_A1_T2.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.8_Date.prototype.valueOf/S15.9.5.8_A1_T2.js new file mode 100644 index 000000000..314bc5b76 --- /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.8_Date.prototype.valueOf/S15.9.5.8_A1_T2.js @@ -0,0 +1,18 @@ +// 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.8_A1_T2; + * @section: 15.9.5.8; + * @assertion: The Date.prototype property "valueOf" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.valueOf === false) { + $ERROR('#1: The Date.prototype.valueOf property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('valueOf')) { + $FAIL('#2: The Date.prototype.valueOf property has not the attributes DontDelete'); +} + 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.8_Date.prototype.valueOf/S15.9.5.8_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.8_Date.prototype.valueOf/S15.9.5.8_A1_T3.js new file mode 100644 index 000000000..f61432ae9 --- /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.8_Date.prototype.valueOf/S15.9.5.8_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.8_A1_T3; + * @section: 15.9.5.8; + * @assertion: The Date.prototype property "valueOf" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('valueOf')) { + $ERROR('#1: The Date.prototype.valueOf property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "valueOf") { + $ERROR('#2: The Date.prototype.valueOf has the attribute DontEnum'); + } +} + 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.8_Date.prototype.valueOf/S15.9.5.8_A2_T1.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.8_Date.prototype.valueOf/S15.9.5.8_A2_T1.js new file mode 100644 index 000000000..a4da47ec7 --- /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.8_Date.prototype.valueOf/S15.9.5.8_A2_T1.js @@ -0,0 +1,18 @@ +// 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.8_A2_T1; + * @section: 15.9.5.8; + * @assertion: The "length" property of the "valueOf" is 0; + * @description: The "length" property of the "valueOf" is 0; + */ + +if(Date.prototype.valueOf.hasOwnProperty("length") !== true){ + $ERROR('#1: The valueOf has a "length" property'); +} + +if(Date.prototype.valueOf.length !== 0){ + $ERROR('#2: The "length" property of the valueOf is 0'); +} + 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.8_Date.prototype.valueOf/S15.9.5.8_A3_T1.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.8_Date.prototype.valueOf/S15.9.5.8_A3_T1.js new file mode 100644 index 000000000..a5f622a09 --- /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.8_Date.prototype.valueOf/S15.9.5.8_A3_T1.js @@ -0,0 +1,16 @@ +// 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.8_A3_T1; + * @section: 15.9.5.8; + * @assertion: The Date.prototype.valueOf property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.valueOf.length; +Date.prototype.valueOf.length = 1; +if (Date.prototype.valueOf.length !== x) { + $ERROR('#1: The Date.prototype.valueOf.length has the attribute ReadOnly'); +} + 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.8_Date.prototype.valueOf/S15.9.5.8_A3_T2.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.8_Date.prototype.valueOf/S15.9.5.8_A3_T2.js new file mode 100644 index 000000000..9548522ef --- /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.8_Date.prototype.valueOf/S15.9.5.8_A3_T2.js @@ -0,0 +1,18 @@ +// 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.8_A3_T2; + * @section: 15.9.5.8; + * @assertion: The Date.prototype.valueOf property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.valueOf.length !== false) { + $ERROR('#1: The Date.prototype.valueOf.length property has the attributes DontDelete'); +} + +if (!Date.prototype.valueOf.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.valueOf.length property has the attributes DontDelete'); +} + 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.8_Date.prototype.valueOf/S15.9.5.8_A3_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.8_Date.prototype.valueOf/S15.9.5.8_A3_T3.js new file mode 100644 index 000000000..8e6683f59 --- /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.8_Date.prototype.valueOf/S15.9.5.8_A3_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.8_A3_T3; + * @section: 15.9.5.8; + * @assertion: The Date.prototype.valueOf property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.valueOf.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.valueOf.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.valueOf) { + if(x === "length") { + $ERROR('#2: The Date.prototype.valueOf.length has the attribute DontEnum'); + } +} + 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.9_Date.prototype.getTime/S15.9.5.9_A1_T1.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.9_Date.prototype.getTime/S15.9.5.9_A1_T1.js new file mode 100644 index 000000000..8833782bf --- /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.9_Date.prototype.getTime/S15.9.5.9_A1_T1.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. + +/** + * @name: S15.9.5.9_A1_T1; + * @section: 15.9.5.9; + * @assertion: The Date.prototype property "getTime" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.prototype.getTime; +if(x === 1) + Date.prototype.getTime = 2; +else + Date.prototype.getTime = 1; +if (Date.prototype.getTime === x) { + $ERROR('#1: The Date.prototype.getTime has not the attribute ReadOnly'); +} + 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.9_Date.prototype.getTime/S15.9.5.9_A1_T2.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.9_Date.prototype.getTime/S15.9.5.9_A1_T2.js new file mode 100644 index 000000000..2f5a23058 --- /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.9_Date.prototype.getTime/S15.9.5.9_A1_T2.js @@ -0,0 +1,18 @@ +// 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.9_A1_T2; + * @section: 15.9.5.9; + * @assertion: The Date.prototype property "getTime" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.prototype.getTime === false) { + $ERROR('#1: The Date.prototype.getTime property has not the attributes DontDelete'); +} + +if (Date.prototype.hasOwnProperty('getTime')) { + $FAIL('#2: The Date.prototype.getTime property has not the attributes DontDelete'); +} + 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.9_Date.prototype.getTime/S15.9.5.9_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.9_Date.prototype.getTime/S15.9.5.9_A1_T3.js new file mode 100644 index 000000000..9d60b320e --- /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.9_Date.prototype.getTime/S15.9.5.9_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.9_A1_T3; + * @section: 15.9.5.9; + * @assertion: The Date.prototype property "getTime" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.propertyIsEnumerable('getTime')) { + $ERROR('#1: The Date.prototype.getTime property has the attribute DontEnum'); +} + +for(x in Date.prototype) { + if(x === "getTime") { + $ERROR('#2: The Date.prototype.getTime has the attribute DontEnum'); + } +} + 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.9_Date.prototype.getTime/S15.9.5.9_A2_T1.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.9_Date.prototype.getTime/S15.9.5.9_A2_T1.js new file mode 100644 index 000000000..e26b1dfc8 --- /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.9_Date.prototype.getTime/S15.9.5.9_A2_T1.js @@ -0,0 +1,18 @@ +// 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.9_A2_T1; + * @section: 15.9.5.9; + * @assertion: The "length" property of the "getTime" is 0; + * @description: The "length" property of the "getTime" is 0; + */ + +if(Date.prototype.getTime.hasOwnProperty("length") !== true){ + $ERROR('#1: The getTime has a "length" property'); +} + +if(Date.prototype.getTime.length !== 0){ + $ERROR('#2: The "length" property of the getTime is 0'); +} + 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.9_Date.prototype.getTime/S15.9.5.9_A3_T1.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.9_Date.prototype.getTime/S15.9.5.9_A3_T1.js new file mode 100644 index 000000000..61743a2f9 --- /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.9_Date.prototype.getTime/S15.9.5.9_A3_T1.js @@ -0,0 +1,16 @@ +// 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.9_A3_T1; + * @section: 15.9.5.9; + * @assertion: The Date.prototype.getTime property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype.getTime.length; +Date.prototype.getTime.length = 1; +if (Date.prototype.getTime.length !== x) { + $ERROR('#1: The Date.prototype.getTime.length has the attribute ReadOnly'); +} + 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.9_Date.prototype.getTime/S15.9.5.9_A3_T2.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.9_Date.prototype.getTime/S15.9.5.9_A3_T2.js new file mode 100644 index 000000000..1540e6344 --- /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.9_Date.prototype.getTime/S15.9.5.9_A3_T2.js @@ -0,0 +1,18 @@ +// 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.9_A3_T2; + * @section: 15.9.5.9; + * @assertion: The Date.prototype.getTime property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype.getTime.length !== false) { + $ERROR('#1: The Date.prototype.getTime.length property has the attributes DontDelete'); +} + +if (!Date.prototype.getTime.hasOwnProperty('length')) { + $FAIL('#2: The Date.prototype.getTime.length property has the attributes DontDelete'); +} + 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.9_Date.prototype.getTime/S15.9.5.9_A3_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.9_Date.prototype.getTime/S15.9.5.9_A3_T3.js new file mode 100644 index 000000000..49f9a3567 --- /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.9_Date.prototype.getTime/S15.9.5.9_A3_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.9_A3_T3; + * @section: 15.9.5.9; + * @assertion: The Date.prototype.getTime property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.prototype.getTime.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.prototype.getTime.length property has the attribute DontEnum'); +} + +for(x in Date.prototype.getTime) { + if(x === "length") { + $ERROR('#2: The Date.prototype.getTime.length has the attribute DontEnum'); + } +} + 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/S15.9.5_A01_T1.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/S15.9.5_A01_T1.js new file mode 100644 index 000000000..018662cef --- /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/S15.9.5_A01_T1.js @@ -0,0 +1,14 @@ +// 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_A01_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "constructor"; + * @description: The Date.prototype has the property "constructor"; + */ + +if(Date.prototype.hasOwnProperty("constructor") !== true){ + $ERROR('#1: The Date.prototype has the property "constructor"'); +} + 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/S15.9.5_A02_T1.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/S15.9.5_A02_T1.js new file mode 100644 index 000000000..6cc27810d --- /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/S15.9.5_A02_T1.js @@ -0,0 +1,14 @@ +// 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_A02_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toString"; + * @description: The Date.prototype has the property "toString"; + */ + +if(Date.prototype.hasOwnProperty("toString") !== true){ + $ERROR('#1: The Date.prototype has the property "toString"'); +} + 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/S15.9.5_A03_T1.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/S15.9.5_A03_T1.js new file mode 100644 index 000000000..e54e07557 --- /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/S15.9.5_A03_T1.js @@ -0,0 +1,14 @@ +// 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_A03_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toDateString"; + * @description: The Date.prototype has the property "toDateString"; + */ + +if(Date.prototype.hasOwnProperty("toDateString") !== true){ + $ERROR('#1: The Date.prototype has the property "toDateString"'); +} + 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/S15.9.5_A04_T1.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/S15.9.5_A04_T1.js new file mode 100644 index 000000000..c9e55c33b --- /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/S15.9.5_A04_T1.js @@ -0,0 +1,14 @@ +// 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_A04_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toTimeString"; + * @description: The Date.prototype has the property "toTimeString"; + */ + +if(Date.prototype.hasOwnProperty("toTimeString") !== true){ + $ERROR('#1: The Date.prototype has the property "toTimeString"'); +} + 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/S15.9.5_A05_T1.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/S15.9.5_A05_T1.js new file mode 100644 index 000000000..55e60dd58 --- /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/S15.9.5_A05_T1.js @@ -0,0 +1,14 @@ +// 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_A05_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toLocaleString"; + * @description: The Date.prototype has the property "toLocaleString"; + */ + +if(Date.prototype.hasOwnProperty("toLocaleString") !== true){ + $ERROR('#1: The Date.prototype has the property "toLocaleString"'); +} + 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/S15.9.5_A06_T1.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/S15.9.5_A06_T1.js new file mode 100644 index 000000000..d404fb9fe --- /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/S15.9.5_A06_T1.js @@ -0,0 +1,14 @@ +// 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_A06_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toLocaleDateString"; + * @description: The Date.prototype has the property "toLocaleDateString"; + */ + +if(Date.prototype.hasOwnProperty("toLocaleDateString") !== true){ + $ERROR('#1: The Date.prototype has the property "toLocaleDateString"'); +} + 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/S15.9.5_A07_T1.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/S15.9.5_A07_T1.js new file mode 100644 index 000000000..547275946 --- /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/S15.9.5_A07_T1.js @@ -0,0 +1,14 @@ +// 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_A07_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toLocaleTimeString"; + * @description: The Date.prototype has the property "toLocaleTimeString"; + */ + +if(Date.prototype.hasOwnProperty("toLocaleTimeString") !== true){ + $ERROR('#1: The Date.prototype has the property "toLocaleTimeString"'); +} + 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/S15.9.5_A08_T1.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/S15.9.5_A08_T1.js new file mode 100644 index 000000000..ace9a9fa6 --- /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/S15.9.5_A08_T1.js @@ -0,0 +1,14 @@ +// 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_A08_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "valueOf"; + * @description: The Date.prototype has the property "valueOf"; + */ + +if(Date.prototype.hasOwnProperty("valueOf") !== true){ + $ERROR('#1: The Date.prototype has the property "valueOf"'); +} + 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/S15.9.5_A09_T1.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/S15.9.5_A09_T1.js new file mode 100644 index 000000000..9ca724967 --- /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/S15.9.5_A09_T1.js @@ -0,0 +1,14 @@ +// 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_A09_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getTime"; + * @description: The Date.prototype has the property "getTime"; + */ + +if(Date.prototype.hasOwnProperty("getTime") !== true){ + $ERROR('#1: The Date.prototype has the property "getTime"'); +} + 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/S15.9.5_A10_T1.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/S15.9.5_A10_T1.js new file mode 100644 index 000000000..702ccdd71 --- /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/S15.9.5_A10_T1.js @@ -0,0 +1,14 @@ +// 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_A10_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getFullYear"; + * @description: The Date.prototype has the property "getFullYear"; + */ + +if(Date.prototype.hasOwnProperty("getFullYear") !== true){ + $ERROR('#1: The Date.prototype has the property "getFullYear"'); +} + 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/S15.9.5_A11_T1.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/S15.9.5_A11_T1.js new file mode 100644 index 000000000..9f04a7493 --- /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/S15.9.5_A11_T1.js @@ -0,0 +1,14 @@ +// 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_A11_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCFullYear"; + * @description: The Date.prototype has the property "getUTCFullYear"; + */ + +if(Date.prototype.hasOwnProperty("getUTCFullYear") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCFullYear"'); +} + 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/S15.9.5_A12_T1.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/S15.9.5_A12_T1.js new file mode 100644 index 000000000..0062cc56b --- /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/S15.9.5_A12_T1.js @@ -0,0 +1,14 @@ +// 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_A12_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getMonth"; + * @description: The Date.prototype has the property "getMonth"; + */ + +if(Date.prototype.hasOwnProperty("getMonth") !== true){ + $ERROR('#1: The Date.prototype has the property "getMonth"'); +} + 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/S15.9.5_A13_T1.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/S15.9.5_A13_T1.js new file mode 100644 index 000000000..e7e519cc0 --- /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/S15.9.5_A13_T1.js @@ -0,0 +1,14 @@ +// 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_A13_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCMonth"; + * @description: The Date.prototype has the property "getUTCMonth"; + */ + +if(Date.prototype.hasOwnProperty("getUTCMonth") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCMonth"'); +} + 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/S15.9.5_A14_T1.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/S15.9.5_A14_T1.js new file mode 100644 index 000000000..c1df13b85 --- /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/S15.9.5_A14_T1.js @@ -0,0 +1,14 @@ +// 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_A14_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getDate"; + * @description: The Date.prototype has the property "getDate"; + */ + +if(Date.prototype.hasOwnProperty("getDate") !== true){ + $ERROR('#1: The Date.prototype has the property "getDate"'); +} + 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/S15.9.5_A15_T1.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/S15.9.5_A15_T1.js new file mode 100644 index 000000000..4a801ae1f --- /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/S15.9.5_A15_T1.js @@ -0,0 +1,14 @@ +// 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_A15_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCDate"; + * @description: The Date.prototype has the property "getUTCDate"; + */ + +if(Date.prototype.hasOwnProperty("getUTCDate") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCDate"'); +} + 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/S15.9.5_A16_T1.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/S15.9.5_A16_T1.js new file mode 100644 index 000000000..a3401af6e --- /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/S15.9.5_A16_T1.js @@ -0,0 +1,14 @@ +// 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_A16_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getDay"; + * @description: The Date.prototype has the property "getDay"; + */ + +if(Date.prototype.hasOwnProperty("getDay") !== true){ + $ERROR('#1: The Date.prototype has the property "getDay"'); +} + 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/S15.9.5_A17_T1.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/S15.9.5_A17_T1.js new file mode 100644 index 000000000..e8a003293 --- /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/S15.9.5_A17_T1.js @@ -0,0 +1,14 @@ +// 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_A17_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCDay"; + * @description: The Date.prototype has the property "getUTCDay"; + */ + +if(Date.prototype.hasOwnProperty("getUTCDay") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCDay"'); +} + 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/S15.9.5_A18_T1.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/S15.9.5_A18_T1.js new file mode 100644 index 000000000..6c742fbff --- /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/S15.9.5_A18_T1.js @@ -0,0 +1,14 @@ +// 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_A18_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getHours"; + * @description: The Date.prototype has the property "getHours"; + */ + +if(Date.prototype.hasOwnProperty("getHours") !== true){ + $ERROR('#1: The Date.prototype has the property "getHours"'); +} + 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/S15.9.5_A19_T1.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/S15.9.5_A19_T1.js new file mode 100644 index 000000000..6c7e39d1a --- /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/S15.9.5_A19_T1.js @@ -0,0 +1,14 @@ +// 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_A19_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCHours"; + * @description: The Date.prototype has the property "getUTCHours"; + */ + +if(Date.prototype.hasOwnProperty("getUTCHours") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCHours"'); +} + 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/S15.9.5_A20_T1.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/S15.9.5_A20_T1.js new file mode 100644 index 000000000..6c726e780 --- /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/S15.9.5_A20_T1.js @@ -0,0 +1,14 @@ +// 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_A20_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getMinutes"; + * @description: The Date.prototype has the property "getMinutes"; + */ + +if(Date.prototype.hasOwnProperty("getMinutes") !== true){ + $ERROR('#1: The Date.prototype has the property "getMinutes"'); +} + 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/S15.9.5_A21_T1.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/S15.9.5_A21_T1.js new file mode 100644 index 000000000..0780e15ae --- /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/S15.9.5_A21_T1.js @@ -0,0 +1,14 @@ +// 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_A21_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCMinutes"; + * @description: The Date.prototype has the property "getUTCMinutes"; + */ + +if(Date.prototype.hasOwnProperty("getUTCMinutes") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCMinutes"'); +} + 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/S15.9.5_A22_T1.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/S15.9.5_A22_T1.js new file mode 100644 index 000000000..08d9c510f --- /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/S15.9.5_A22_T1.js @@ -0,0 +1,14 @@ +// 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_A22_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getSeconds"; + * @description: The Date.prototype has the property "getSeconds"; + */ + +if(Date.prototype.hasOwnProperty("getSeconds") !== true){ + $ERROR('#1: The Date.prototype has the property "getSeconds"'); +} + 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/S15.9.5_A23_T1.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/S15.9.5_A23_T1.js new file mode 100644 index 000000000..a0dfabf0a --- /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/S15.9.5_A23_T1.js @@ -0,0 +1,14 @@ +// 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_A23_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCSeconds"; + * @description: The Date.prototype has the property "getUTCSeconds"; + */ + +if(Date.prototype.hasOwnProperty("getUTCSeconds") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCSeconds"'); +} + 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/S15.9.5_A24_T1.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/S15.9.5_A24_T1.js new file mode 100644 index 000000000..49137d080 --- /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/S15.9.5_A24_T1.js @@ -0,0 +1,14 @@ +// 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_A24_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getMilliseconds"; + * @description: The Date.prototype has the property "getMilliseconds"; + */ + +if(Date.prototype.hasOwnProperty("getMilliseconds") !== true){ + $ERROR('#1: The Date.prototype has the property "getMilliseconds"'); +} + 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/S15.9.5_A25_T1.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/S15.9.5_A25_T1.js new file mode 100644 index 000000000..efe9b6553 --- /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/S15.9.5_A25_T1.js @@ -0,0 +1,14 @@ +// 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_A25_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getUTCMilliseconds"; + * @description: The Date.prototype has the property "getUTCMilliseconds"; + */ + +if(Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true){ + $ERROR('#1: The Date.prototype has the property "getUTCMilliseconds"'); +} + 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/S15.9.5_A26_T1.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/S15.9.5_A26_T1.js new file mode 100644 index 000000000..005dfb063 --- /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/S15.9.5_A26_T1.js @@ -0,0 +1,14 @@ +// 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_A26_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "getTimezoneOffset"; + * @description: The Date.prototype has the property "getTimezoneOffset"; + */ + +if(Date.prototype.hasOwnProperty("getTimezoneOffset") !== true){ + $ERROR('#1: The Date.prototype has the property "getTimezoneOffset"'); +} + 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/S15.9.5_A27_T1.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/S15.9.5_A27_T1.js new file mode 100644 index 000000000..8f8afdef9 --- /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/S15.9.5_A27_T1.js @@ -0,0 +1,14 @@ +// 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_A27_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setTime"; + * @description: The Date.prototype has the property "setTime"; + */ + +if(Date.prototype.hasOwnProperty("setTime") !== true){ + $ERROR('#1: The Date.prototype has the property "setTime"'); +} + 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/S15.9.5_A28_T1.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/S15.9.5_A28_T1.js new file mode 100644 index 000000000..54a3d5387 --- /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/S15.9.5_A28_T1.js @@ -0,0 +1,14 @@ +// 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_A28_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setMilliseconds"; + * @description: The Date.prototype has the property "setMilliseconds"; + */ + +if(Date.prototype.hasOwnProperty("setMilliseconds") !== true){ + $ERROR('#1: The Date.prototype has the property "setMilliseconds"'); +} + 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/S15.9.5_A29_T1.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/S15.9.5_A29_T1.js new file mode 100644 index 000000000..091b3eb45 --- /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/S15.9.5_A29_T1.js @@ -0,0 +1,14 @@ +// 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_A29_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCMilliseconds"; + * @description: The Date.prototype has the property "setUTCMilliseconds"; + */ + +if(Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCMilliseconds"'); +} + 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/S15.9.5_A30_T1.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/S15.9.5_A30_T1.js new file mode 100644 index 000000000..1c154bace --- /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/S15.9.5_A30_T1.js @@ -0,0 +1,14 @@ +// 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_A30_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setSeconds"; + * @description: The Date.prototype has the property "setSeconds"; + */ + +if(Date.prototype.hasOwnProperty("setSeconds") !== true){ + $ERROR('#1: The Date.prototype has the property "setSeconds"'); +} + 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/S15.9.5_A31_T1.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/S15.9.5_A31_T1.js new file mode 100644 index 000000000..74ede2b2e --- /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/S15.9.5_A31_T1.js @@ -0,0 +1,14 @@ +// 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_A31_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCSeconds"; + * @description: The Date.prototype has the property "setUTCSeconds"; + */ + +if(Date.prototype.hasOwnProperty("setUTCSeconds") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCSeconds"'); +} + 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/S15.9.5_A32_T1.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/S15.9.5_A32_T1.js new file mode 100644 index 000000000..123f2f1fb --- /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/S15.9.5_A32_T1.js @@ -0,0 +1,14 @@ +// 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_A32_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setMinutes"; + * @description: The Date.prototype has the property "setMinutes"; + */ + +if(Date.prototype.hasOwnProperty("setMinutes") !== true){ + $ERROR('#1: The Date.prototype has the property "setMinutes"'); +} + 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/S15.9.5_A33_T1.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/S15.9.5_A33_T1.js new file mode 100644 index 000000000..addcce6c9 --- /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/S15.9.5_A33_T1.js @@ -0,0 +1,14 @@ +// 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_A33_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCMinutes"; + * @description: The Date.prototype has the property "setUTCMinutes"; + */ + +if(Date.prototype.hasOwnProperty("setUTCMinutes") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCMinutes"'); +} + 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/S15.9.5_A34_T1.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/S15.9.5_A34_T1.js new file mode 100644 index 000000000..9f42d90db --- /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/S15.9.5_A34_T1.js @@ -0,0 +1,14 @@ +// 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_A34_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setHours"; + * @description: The Date.prototype has the property "setHours"; + */ + +if(Date.prototype.hasOwnProperty("setHours") !== true){ + $ERROR('#1: The Date.prototype has the property "setHours"'); +} + 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/S15.9.5_A35_T1.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/S15.9.5_A35_T1.js new file mode 100644 index 000000000..c5acca3b8 --- /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/S15.9.5_A35_T1.js @@ -0,0 +1,14 @@ +// 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_A35_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCHours"; + * @description: The Date.prototype has the property "setUTCHours"; + */ + +if(Date.prototype.hasOwnProperty("setUTCHours") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCHours"'); +} + 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/S15.9.5_A36_T1.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/S15.9.5_A36_T1.js new file mode 100644 index 000000000..6ec40317f --- /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/S15.9.5_A36_T1.js @@ -0,0 +1,14 @@ +// 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_A36_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setDate"; + * @description: The Date.prototype has the property "setDate"; + */ + +if(Date.prototype.hasOwnProperty("setDate") !== true){ + $ERROR('#1: The Date.prototype has the property "setDate"'); +} + 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/S15.9.5_A37_T1.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/S15.9.5_A37_T1.js new file mode 100644 index 000000000..db874501d --- /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/S15.9.5_A37_T1.js @@ -0,0 +1,14 @@ +// 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_A37_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCDate"; + * @description: The Date.prototype has the property "setUTCDate"; + */ + +if(Date.prototype.hasOwnProperty("setUTCDate") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCDate"'); +} + 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/S15.9.5_A38_T1.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/S15.9.5_A38_T1.js new file mode 100644 index 000000000..bfe124154 --- /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/S15.9.5_A38_T1.js @@ -0,0 +1,14 @@ +// 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_A38_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setMonth"; + * @description: The Date.prototype has the property "setMonth"; + */ + +if(Date.prototype.hasOwnProperty("setMonth") !== true){ + $ERROR('#1: The Date.prototype has the property "setMonth"'); +} + 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/S15.9.5_A39_T1.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/S15.9.5_A39_T1.js new file mode 100644 index 000000000..be6c1bb7e --- /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/S15.9.5_A39_T1.js @@ -0,0 +1,14 @@ +// 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_A39_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCMonth"; + * @description: The Date.prototype has the property "setUTCMonth"; + */ + +if(Date.prototype.hasOwnProperty("setUTCMonth") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCMonth"'); +} + 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/S15.9.5_A40_T1.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/S15.9.5_A40_T1.js new file mode 100644 index 000000000..587928d1e --- /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/S15.9.5_A40_T1.js @@ -0,0 +1,14 @@ +// 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_A40_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setFullYear"; + * @description: The Date.prototype has the property "setFullYear"; + */ + +if(Date.prototype.hasOwnProperty("setFullYear") !== true){ + $ERROR('#1: The Date.prototype has the property "setFullYear"'); +} + 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/S15.9.5_A41_T1.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/S15.9.5_A41_T1.js new file mode 100644 index 000000000..ceac904c2 --- /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/S15.9.5_A41_T1.js @@ -0,0 +1,14 @@ +// 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_A41_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "setUTCFullYear"; + * @description: The Date.prototype has the property "setUTCFullYear"; + */ + +if(Date.prototype.hasOwnProperty("setUTCFullYear") !== true){ + $ERROR('#1: The Date.prototype has the property "setUTCFullYear"'); +} + 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/S15.9.5_A42_T1.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/S15.9.5_A42_T1.js new file mode 100644 index 000000000..055e51bdf --- /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/S15.9.5_A42_T1.js @@ -0,0 +1,14 @@ +// 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_A42_T1; + * @section: 15.9.5; + * @assertion: The Date.prototype has the property "toUTCString"; + * @description: The Date.prototype has the property "toUTCString"; + */ + +if(Date.prototype.hasOwnProperty("toUTCString") !== true){ + $ERROR('#1: The Date.prototype has the property "toUTCString"'); +} + |