diff options
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects')
405 files changed, 11481 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.2_The_Date_Constructor_Called_as_a_Function/S15.9.2.1_A1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.2_The_Date_Constructor_Called_as_a_Function/S15.9.2.1_A1.js new file mode 100644 index 000000000..74b567225 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.2_The_Date_Constructor_Called_as_a_Function/S15.9.2.1_A1.js @@ -0,0 +1,80 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.2.1_A1; + * @section: 15.9.2.1; + * @assertion: When Date is called as a function rather than as a constructor, + * it should be "string" representing the current time (UTC); + * @description: Checking type of returned value; +*/ + +//CHECK#1 +if( typeof Date() !== "string" ) { + $ERROR('#1: typeof Date() should be "string", actual is '+(typeof Date())); +} + +//CHECK#2 +if( typeof Date(1) !== "string" ) { + $ERROR('#2: typeof Date(1) should be "string", actual is '+(typeof Date(1))); +} + +//CHECK#3 +if( typeof Date(1970, 1) !== "string" ) { + $ERROR('#3: typeof Date(1970, 1) should be "string", actual is '+(typeof Date(1970, 1))); +} + +//CHECK#4 +if( typeof Date(1970, 1, 1) !== "string" ) { + $ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1))); +} + +//CHECK#5 +if( typeof Date(1970, 1, 1, 1) !== "string" ) { + $ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1))); +} + +//CHECK#6 +if( typeof Date(1970, 1, 1, 1) !== "string" ) { + $ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1))); +} + +//CHECK#8 +if( typeof Date(1970, 1, 1, 1, 0) !== "string" ) { + $ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0))); +} + +//CHECK#9 +if( typeof Date(1970, 1, 1, 1, 0, 0) !== "string" ) { + $ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0))); +} + +//CHECK#10 +if( typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string" ) { + $ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0, 0))); +} + +//CHECK#11 +if( typeof Date(Number.NaN) !== "string" ) { + $ERROR('#11: typeof Date(Number.NaN) should be "string", actual is '+(typeof Date(Number.NaN))); +} + +//CHECK#12 +if( typeof Date(Number.POSITIVE_INFINITY) !== "string" ) { + $ERROR('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.POSITIVE_INFINITY))); +} + +//CHECK#13 +if( typeof Date(Number.NEGATIVE_INFINITY) !== "string" ) { + $ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.NEGATIVE_INFINITY))); +} + +//CHECK#14 +if( typeof Date(undefined) !== "string" ) { + $ERROR('#14: typeof Date(undefined) should be "string", actual is '+(typeof Date(undefined))); +} + +//CHECK#15 +if( typeof Date(null) !== "string" ) { + $ERROR('#15: typeof Date(null) should be "string", actual is '+(typeof Date(null))); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.2_The_Date_Constructor_Called_as_a_Function/S15.9.2.1_A2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.2_The_Date_Constructor_Called_as_a_Function/S15.9.2.1_A2.js new file mode 100644 index 000000000..27c040e08 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.2_The_Date_Constructor_Called_as_a_Function/S15.9.2.1_A2.js @@ -0,0 +1,91 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.2.1_A2; + * @section: 15.9.2.1; + * @assertion: All of the arguments are optional, any arguments supplied are + * accepted but are completely ignored. A string is created and returned as + * if by the expression (new Date()).toString(); + * @description: Use various number arguments and various types of ones; +*/ + +function isEqual(d1, d2) { + if (d1 === d2) { + return true; + } else if (Math.abs(Date.parse(d1) - Date.parse(d2)) <= 1000) { + return true; + } else { + return false; + } +} + +//CHECK#1 +if( !isEqual(Date(), (new Date()).toString()) ) { + $ERROR('#1: Date() is equal to (new Date()).toString()'); +} + +//CHECK#2 +if( !isEqual(Date(1), (new Date()).toString()) ) { + $ERROR('#2: Date(1) is equal to (new Date()).toString()'); +} + +//CHECK#3 +if( !isEqual(Date(1970, 1), (new Date()).toString()) ) { + $ERROR('#3: Date(1970, 1) is equal to (new Date()).toString()'); +} + +//CHECK#4 +if( !isEqual(Date(1970, 1, 1), (new Date()).toString()) ) { + $ERROR('#4: Date(1970, 1, 1) is equal to (new Date()).toString()'); +} + +//CHECK#5 +if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) { + $ERROR('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); +} + +//CHECK#6 +if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) { + $ERROR('#7: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); +} + +//CHECK#8 +if( !isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString()) ) { + $ERROR('#8: Date(1970, 1, 1, 1, 0) is equal to (new Date()).toString()'); +} + +//CHECK#9 +if( !isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString()) ) { + $ERROR('#9: Date(1970, 1, 1, 1, 0, 0) is equal to (new Date()).toString()'); +} + +//CHECK#10 +if( !isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString()) ) { + $ERROR('#10: Date(1970, 1, 1, 1, 0, 0, 0) is equal to (new Date()).toString()'); +} + +//CHECK#11 +if( !isEqual(Date(Number.NaN), (new Date()).toString()) ) { + $ERROR('#11: Date(Number.NaN) is equal to (new Date()).toString()'); +} + +//CHECK#12 +if( !isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString()) ) { + $ERROR('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()'); +} + +//CHECK#13 +if( !isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString()) ) { + $ERROR('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()'); +} + +//CHECK#14 +if( !isEqual(Date(undefined), (new Date()).toString()) ) { + $ERROR('#14: Date(undefined) is equal to (new Date()).toString()'); +} + +//CHECK#15 +if( !isEqual(Date(null), (new Date()).toString()) ) { + $ERROR('#15: Date(null) is equal to (new Date()).toString()'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T1.js new file mode 100644 index 000000000..ea189e433 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T1.js @@ -0,0 +1,226 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A1_T1; + * @section: 15.9.3.1; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initializes the newly created object; + * @description: 2 arguments, (year, month); +*/ + +if (typeof new Date(1899, 11) !== "object") { + $FAIL("#1.1: typeof new Date(1899, 11) should be 'object'"); +} + +if (new Date(1899, 11) === undefined) { + $FAIL("#1.2: new Date(1899, 11) should not be undefined"); +} + +var x13 = new Date(1899, 11); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(1899, 11) should be 'object'"); +} + +var x14 = new Date(1899, 11); +if(x14 === undefined){ + $FAIL("#1.4: new Date(1899, 11) should not be undefined"); +} + +if (typeof new Date(1899, 12) !== "object") { + $FAIL("#2.1: typeof new Date(1899, 12) should be 'object'"); +} + +if (new Date(1899, 12) === undefined) { + $FAIL("#2.2: new Date(1899, 12) should not be undefined"); +} + +var x23 = new Date(1899, 12); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(1899, 12) should be 'object'"); +} + +var x24 = new Date(1899, 12); +if(x24 === undefined){ + $FAIL("#2.4: new Date(1899, 12) should not be undefined"); +} + +if (typeof new Date(1900, 0) !== "object") { + $FAIL("#3.1: typeof new Date(1900, 0) should be 'object'"); +} + +if (new Date(1900, 0) === undefined) { + $FAIL("#3.2: new Date(1900, 0) should not be undefined"); +} + +var x33 = new Date(1900, 0); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(1900, 0) should be 'object'"); +} + +var x34 = new Date(1900, 0); +if(x34 === undefined){ + $FAIL("#3.4: new Date(1900, 0) should not be undefined"); +} + +if (typeof new Date(1969, 11) !== "object") { + $FAIL("#4.1: typeof new Date(1969, 11) should be 'object'"); +} + +if (new Date(1969, 11) === undefined) { + $FAIL("#4.2: new Date(1969, 11) should not be undefined"); +} + +var x43 = new Date(1969, 11); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(1969, 11) should be 'object'"); +} + +var x44 = new Date(1969, 11); +if(x44 === undefined){ + $FAIL("#4.4: new Date(1969, 11) should not be undefined"); +} + +if (typeof new Date(1969, 12) !== "object") { + $FAIL("#5.1: typeof new Date(1969, 12) should be 'object'"); +} + +if (new Date(1969, 12) === undefined) { + $FAIL("#5.2: new Date(1969, 12) should not be undefined"); +} + +var x53 = new Date(1969, 12); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(1969, 12) should be 'object'"); +} + +var x54 = new Date(1969, 12); +if(x54 === undefined){ + $FAIL("#5.4: new Date(1969, 12) should not be undefined"); +} + +if (typeof new Date(1970, 0) !== "object") { + $FAIL("#6.1: typeof new Date(1970, 0) should be 'object'"); +} + +if (new Date(1970, 0) === undefined) { + $FAIL("#6.2: new Date(1970, 0) should not be undefined"); +} + +var x63 = new Date(1970, 0); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(1970, 0) should be 'object'"); +} + +var x64 = new Date(1970, 0); +if(x64 === undefined){ + $FAIL("#6.4: new Date(1970, 0) should not be undefined"); +} + +if (typeof new Date(1999, 11) !== "object") { + $FAIL("#7.1: typeof new Date(1999, 11) should be 'object'"); +} + +if (new Date(1999, 11) === undefined) { + $FAIL("#7.2: new Date(1999, 11) should not be undefined"); +} + +var x73 = new Date(1999, 11); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(1999, 11) should be 'object'"); +} + +var x74 = new Date(1999, 11); +if(x74 === undefined){ + $FAIL("#7.4: new Date(1999, 11) should not be undefined"); +} + +if (typeof new Date(1999, 12) !== "object") { + $FAIL("#8.1: typeof new Date(1999, 12) should be 'object'"); +} + +if (new Date(1999, 12) === undefined) { + $FAIL("#8.2: new Date(1999, 12) should not be undefined"); +} + +var x83 = new Date(1999, 12); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(1999, 12) should be 'object'"); +} + +var x84 = new Date(1999, 12); +if(x84 === undefined){ + $FAIL("#8.4: new Date(1999, 12) should not be undefined"); +} + +if (typeof new Date(2000, 0) !== "object") { + $FAIL("#9.1: typeof new Date(2000, 0) should be 'object'"); +} + +if (new Date(2000, 0) === undefined) { + $FAIL("#9.2: new Date(2000, 0) should not be undefined"); +} + +var x93 = new Date(2000, 0); +if(typeof x93 !== "object"){ + $FAIL("#9.3: typeof new Date(2000, 0) should be 'object'"); +} + +var x94 = new Date(2000, 0); +if(x94 === undefined){ + $FAIL("#9.4: new Date(2000, 0) should not be undefined"); +} + +if (typeof new Date(2099, 11) !== "object") { + $FAIL("#10.1: typeof new Date(2099, 11) should be 'object'"); +} + +if (new Date(2099, 11) === undefined) { + $FAIL("#10.2: new Date(2099, 11) should not be undefined"); +} + +var x103 = new Date(2099, 11); +if(typeof x103 !== "object"){ + $FAIL("#10.3: typeof new Date(2099, 11) should be 'object'"); +} + +var x104 = new Date(2099, 11); +if(x104 === undefined){ + $FAIL("#10.4: new Date(2099, 11) should not be undefined"); +} + +if (typeof new Date(2099, 12) !== "object") { + $FAIL("#11.1: typeof new Date(2099, 12) should be 'object'"); +} + +if (new Date(2099, 12) === undefined) { + $FAIL("#11.2: new Date(2099, 12) should not be undefined"); +} + +var x113 = new Date(2099, 12); +if(typeof x113 !== "object"){ + $FAIL("#11.3: typeof new Date(2099, 12) should be 'object'"); +} + +var x114 = new Date(2099, 12); +if(x114 === undefined){ + $FAIL("#11.4: new Date(2099, 12) should not be undefined"); +} + +if (typeof new Date(2100, 0) !== "object") { + $FAIL("#12.1: typeof new Date(2100, 0) should be 'object'"); +} + +if (new Date(2100, 0) === undefined) { + $FAIL("#12.2: new Date(2100, 0) should not be undefined"); +} + +var x123 = new Date(2100, 0); +if(typeof x123 !== "object"){ + $FAIL("#12.3: typeof new Date(2100, 0) should be 'object'"); +} + +var x124 = new Date(2100, 0); +if(x124 === undefined){ + $FAIL("#12.4: new Date(2100, 0) should not be undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T2.js new file mode 100644 index 000000000..c5668a9fd --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T2.js @@ -0,0 +1,226 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A1_T2; + * @section: 15.9.3.1; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initializes the newly created object; + * @description: 3 arguments, (year, month, date); +*/ + +if (typeof new Date(1899, 11, 31) !== "object") { + $FAIL("#1.1: typeof new Date(1899, 11, 31) should be 'object'"); +} + +if (new Date(1899, 11, 31) === undefined) { + $FAIL("#1.2: new Date(1899, 11, 31) should not be undefined"); +} + +var x13 = new Date(1899, 11, 31); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(1899, 11, 31) should be 'object'"); +} + +var x14 = new Date(1899, 11, 31); +if(x14 === undefined){ + $FAIL("#1.4: new Date(1899, 11, 31) should not be undefined"); +} + +if (typeof new Date(1899, 12, 1) !== "object") { + $FAIL("#2.1: typeof new Date(1899, 12, 1) should be 'object'"); +} + +if (new Date(1899, 12, 1) === undefined) { + $FAIL("#2.2: new Date(1899, 12, 1) should not be undefined"); +} + +var x23 = new Date(1899, 12, 1); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(1899, 12, 1) should be 'object'"); +} + +var x24 = new Date(1899, 12, 1); +if(x24 === undefined){ + $FAIL("#2.4: new Date(1899, 12, 1) should not be undefined"); +} + +if (typeof new Date(1900, 0, 1) !== "object") { + $FAIL("#3.1: typeof new Date(1900, 0, 1) should be 'object'"); +} + +if (new Date(1900, 0, 1) === undefined) { + $FAIL("#3.2: new Date(1900, 0, 1) should not be undefined"); +} + +var x33 = new Date(1900, 0, 1); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(1900, 0, 1) should be 'object'"); +} + +var x34 = new Date(1900, 0, 1); +if(x34 === undefined){ + $FAIL("#3.4: new Date(1900, 0, 1) should not be undefined"); +} + +if (typeof new Date(1969, 11, 31) !== "object") { + $FAIL("#4.1: typeof new Date(1969, 11, 31) should be 'object'"); +} + +if (new Date(1969, 11, 31) === undefined) { + $FAIL("#4.2: new Date(1969, 11, 31) should not be undefined"); +} + +var x43 = new Date(1969, 11, 31); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(1969, 11, 31) should be 'object'"); +} + +var x44 = new Date(1969, 11, 31); +if(x44 === undefined){ + $FAIL("#4.4: new Date(1969, 11, 31) should not be undefined"); +} + +if (typeof new Date(1969, 12, 1) !== "object") { + $FAIL("#5.1: typeof new Date(1969, 12, 1) should be 'object'"); +} + +if (new Date(1969, 12, 1) === undefined) { + $FAIL("#5.2: new Date(1969, 12, 1) should not be undefined"); +} + +var x53 = new Date(1969, 12, 1); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(1969, 12, 1) should be 'object'"); +} + +var x54 = new Date(1969, 12, 1); +if(x54 === undefined){ + $FAIL("#5.4: new Date(1969, 12, 1) should not be undefined"); +} + +if (typeof new Date(1970, 0, 1) !== "object") { + $FAIL("#6.1: typeof new Date(1970, 0, 1) should be 'object'"); +} + +if (new Date(1970, 0, 1) === undefined) { + $FAIL("#6.2: new Date(1970, 0, 1) should not be undefined"); +} + +var x63 = new Date(1970, 0, 1); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(1970, 0, 1) should be 'object'"); +} + +var x64 = new Date(1970, 0, 1); +if(x64 === undefined){ + $FAIL("#6.4: new Date(1970, 0, 1) should not be undefined"); +} + +if (typeof new Date(1999, 11, 31) !== "object") { + $FAIL("#7.1: typeof new Date(1999, 11, 31) should be 'object'"); +} + +if (new Date(1999, 11, 31) === undefined) { + $FAIL("#7.2: new Date(1999, 11, 31) should not be undefined"); +} + +var x73 = new Date(1999, 11, 31); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(1999, 11, 31) should be 'object'"); +} + +var x74 = new Date(1999, 11, 31); +if(x74 === undefined){ + $FAIL("#7.4: new Date(1999, 11, 31) should not be undefined"); +} + +if (typeof new Date(1999, 12, 1) !== "object") { + $FAIL("#8.1: typeof new Date(1999, 12, 1) should be 'object'"); +} + +if (new Date(1999, 12, 1) === undefined) { + $FAIL("#8.2: new Date(1999, 12, 1) should not be undefined"); +} + +var x83 = new Date(1999, 12, 1); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(1999, 12, 1) should be 'object'"); +} + +var x84 = new Date(1999, 12, 1); +if(x84 === undefined){ + $FAIL("#8.4: new Date(1999, 12, 1) should not be undefined"); +} + +if (typeof new Date(2000, 0, 1) !== "object") { + $FAIL("#9.1: typeof new Date(2000, 0, 1) should be 'object'"); +} + +if (new Date(2000, 0, 1) === undefined) { + $FAIL("#9.2: new Date(2000, 0, 1) should not be undefined"); +} + +var x93 = new Date(2000, 0, 1); +if(typeof x93 !== "object"){ + $FAIL("#9.3: typeof new Date(2000, 0, 1) should be 'object'"); +} + +var x94 = new Date(2000, 0, 1); +if(x94 === undefined){ + $FAIL("#9.4: new Date(2000, 0, 1) should not be undefined"); +} + +if (typeof new Date(2099, 11, 31) !== "object") { + $FAIL("#10.1: typeof new Date(2099, 11, 31) should be 'object'"); +} + +if (new Date(2099, 11, 31) === undefined) { + $FAIL("#10.2: new Date(2099, 11, 31) should not be undefined"); +} + +var x103 = new Date(2099, 11, 31); +if(typeof x103 !== "object"){ + $FAIL("#10.3: typeof new Date(2099, 11, 31) should be 'object'"); +} + +var x104 = new Date(2099, 11, 31); +if(x104 === undefined){ + $FAIL("#10.4: new Date(2099, 11, 31) should not be undefined"); +} + +if (typeof new Date(2099, 12, 1) !== "object") { + $FAIL("#11.1: typeof new Date(2099, 12, 1) should be 'object'"); +} + +if (new Date(2099, 12, 1) === undefined) { + $FAIL("#11.2: new Date(2099, 12, 1) should not be undefined"); +} + +var x113 = new Date(2099, 12, 1); +if(typeof x113 !== "object"){ + $FAIL("#11.3: typeof new Date(2099, 12, 1) should be 'object'"); +} + +var x114 = new Date(2099, 12, 1); +if(x114 === undefined){ + $FAIL("#11.4: new Date(2099, 12, 1) should not be undefined"); +} + +if (typeof new Date(2100, 0, 1) !== "object") { + $FAIL("#12.1: typeof new Date(2100, 0, 1) should be 'object'"); +} + +if (new Date(2100, 0, 1) === undefined) { + $FAIL("#12.2: new Date(2100, 0, 1) should not be undefined"); +} + +var x123 = new Date(2100, 0, 1); +if(typeof x123 !== "object"){ + $FAIL("#12.3: typeof new Date(2100, 0, 1) should be 'object'"); +} + +var x124 = new Date(2100, 0, 1); +if(x124 === undefined){ + $FAIL("#12.4: new Date(2100, 0, 1) should not be undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T3.js new file mode 100644 index 000000000..bd22ff46a --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T3.js @@ -0,0 +1,226 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A1_T3; + * @section: 15.9.3.1; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initializes the newly created object; + * @description: 4 arguments, (year, month, date, hours); +*/ + +if (typeof new Date(1899, 11, 31, 23) !== "object") { + $FAIL("#1.1: typeof new Date(1899, 11, 31, 23) should be 'object'"); +} + +if (new Date(1899, 11, 31, 23) === undefined) { + $FAIL("#1.2: new Date(1899, 11, 31, 23) should not be undefined"); +} + +var x13 = new Date(1899, 11, 31, 23); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'"); +} + +var x14 = new Date(1899, 11, 31, 23); +if(x14 === undefined){ + $FAIL("#1.4: new Date(1899, 11, 31, 23) should not be undefined"); +} + +if (typeof new Date(1899, 12, 1, 0) !== "object") { + $FAIL("#2.1: typeof new Date(1899, 12, 1, 0) should be 'object'"); +} + +if (new Date(1899, 12, 1, 0) === undefined) { + $FAIL("#2.2: new Date(1899, 12, 1, 0) should not be undefined"); +} + +var x23 = new Date(1899, 12, 1, 0); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'"); +} + +var x24 = new Date(1899, 12, 1, 0); +if(x24 === undefined){ + $FAIL("#2.4: new Date(1899, 12, 1, 0) should not be undefined"); +} + +if (typeof new Date(1900, 0, 1, 0) !== "object") { + $FAIL("#3.1: typeof new Date(1900, 0, 1, 0) should be 'object'"); +} + +if (new Date(1900, 0, 1, 0) === undefined) { + $FAIL("#3.2: new Date(1900, 0, 1, 0) should not be undefined"); +} + +var x33 = new Date(1900, 0, 1, 0); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'"); +} + +var x34 = new Date(1900, 0, 1, 0); +if(x34 === undefined){ + $FAIL("#3.4: new Date(1900, 0, 1, 0) should not be undefined"); +} + +if (typeof new Date(1969, 11, 31, 23) !== "object") { + $FAIL("#4.1: typeof new Date(1969, 11, 31, 23) should be 'object'"); +} + +if (new Date(1969, 11, 31, 23) === undefined) { + $FAIL("#4.2: new Date(1969, 11, 31, 23) should not be undefined"); +} + +var x43 = new Date(1969, 11, 31, 23); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'"); +} + +var x44 = new Date(1969, 11, 31, 23); +if(x44 === undefined){ + $FAIL("#4.4: new Date(1969, 11, 31, 23) should not be undefined"); +} + +if (typeof new Date(1969, 12, 1, 0) !== "object") { + $FAIL("#5.1: typeof new Date(1969, 12, 1, 0) should be 'object'"); +} + +if (new Date(1969, 12, 1, 0) === undefined) { + $FAIL("#5.2: new Date(1969, 12, 1, 0) should not be undefined"); +} + +var x53 = new Date(1969, 12, 1, 0); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'"); +} + +var x54 = new Date(1969, 12, 1, 0); +if(x54 === undefined){ + $FAIL("#5.4: new Date(1969, 12, 1, 0) should not be undefined"); +} + +if (typeof new Date(1970, 0, 1, 0) !== "object") { + $FAIL("#6.1: typeof new Date(1970, 0, 1, 0) should be 'object'"); +} + +if (new Date(1970, 0, 1, 0) === undefined) { + $FAIL("#6.2: new Date(1970, 0, 1, 0) should not be undefined"); +} + +var x63 = new Date(1970, 0, 1, 0); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'"); +} + +var x64 = new Date(1970, 0, 1, 0); +if(x64 === undefined){ + $FAIL("#6.4: new Date(1970, 0, 1, 0) should not be undefined"); +} + +if (typeof new Date(1999, 11, 31, 23) !== "object") { + $FAIL("#7.1: typeof new Date(1999, 11, 31, 23) should be 'object'"); +} + +if (new Date(1999, 11, 31, 23) === undefined) { + $FAIL("#7.2: new Date(1999, 11, 31, 23) should not be undefined"); +} + +var x73 = new Date(1999, 11, 31, 23); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'"); +} + +var x74 = new Date(1999, 11, 31, 23); +if(x74 === undefined){ + $FAIL("#7.4: new Date(1999, 11, 31, 23) should not be undefined"); +} + +if (typeof new Date(1999, 12, 1, 0) !== "object") { + $FAIL("#8.1: typeof new Date(1999, 12, 1, 0) should be 'object'"); +} + +if (new Date(1999, 12, 1, 0) === undefined) { + $FAIL("#8.2: new Date(1999, 12, 1, 0) should not be undefined"); +} + +var x83 = new Date(1999, 12, 1, 0); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'"); +} + +var x84 = new Date(1999, 12, 1, 0); +if(x84 === undefined){ + $FAIL("#8.4: new Date(1999, 12, 1, 0) should not be undefined"); +} + +if (typeof new Date(2000, 0, 1, 0) !== "object") { + $FAIL("#9.1: typeof new Date(2000, 0, 1, 0) should be 'object'"); +} + +if (new Date(2000, 0, 1, 0) === undefined) { + $FAIL("#9.2: new Date(2000, 0, 1, 0) should not be undefined"); +} + +var x93 = new Date(2000, 0, 1, 0); +if(typeof x93 !== "object"){ + $FAIL("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'"); +} + +var x94 = new Date(2000, 0, 1, 0); +if(x94 === undefined){ + $FAIL("#9.4: new Date(2000, 0, 1, 0) should not be undefined"); +} + +if (typeof new Date(2099, 11, 31, 23) !== "object") { + $FAIL("#10.1: typeof new Date(2099, 11, 31, 23) should be 'object'"); +} + +if (new Date(2099, 11, 31, 23) === undefined) { + $FAIL("#10.2: new Date(2099, 11, 31, 23) should not be undefined"); +} + +var x103 = new Date(2099, 11, 31, 23); +if(typeof x103 !== "object"){ + $FAIL("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'"); +} + +var x104 = new Date(2099, 11, 31, 23); +if(x104 === undefined){ + $FAIL("#10.4: new Date(2099, 11, 31, 23) should not be undefined"); +} + +if (typeof new Date(2099, 12, 1, 0) !== "object") { + $FAIL("#11.1: typeof new Date(2099, 12, 1, 0) should be 'object'"); +} + +if (new Date(2099, 12, 1, 0) === undefined) { + $FAIL("#11.2: new Date(2099, 12, 1, 0) should not be undefined"); +} + +var x113 = new Date(2099, 12, 1, 0); +if(typeof x113 !== "object"){ + $FAIL("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'"); +} + +var x114 = new Date(2099, 12, 1, 0); +if(x114 === undefined){ + $FAIL("#11.4: new Date(2099, 12, 1, 0) should not be undefined"); +} + +if (typeof new Date(2100, 0, 1, 0) !== "object") { + $FAIL("#12.1: typeof new Date(2100, 0, 1, 0) should be 'object'"); +} + +if (new Date(2100, 0, 1, 0) === undefined) { + $FAIL("#12.2: new Date(2100, 0, 1, 0) should not be undefined"); +} + +var x123 = new Date(2100, 0, 1, 0); +if(typeof x123 !== "object"){ + $FAIL("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'"); +} + +var x124 = new Date(2100, 0, 1, 0); +if(x124 === undefined){ + $FAIL("#12.4: new Date(2100, 0, 1, 0) should not be undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T4.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T4.js new file mode 100644 index 000000000..c24ac08c5 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T4.js @@ -0,0 +1,226 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A1_T4; + * @section: 15.9.3.1; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initializes the newly created object; + * @description: 5 arguments, (year, month, date, hours, minutes); +*/ + +if (typeof new Date(1899, 11, 31, 23, 59) !== "object") { + $FAIL("#1.1: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); +} + +if (new Date(1899, 11, 31, 23, 59) === undefined) { + $FAIL("#1.2: new Date(1899, 11, 31, 23, 59) should not be undefined"); +} + +var x13 = new Date(1899, 11, 31, 23, 59); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); +} + +var x14 = new Date(1899, 11, 31, 23, 59); +if(x14 === undefined){ + $FAIL("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined"); +} + +if (typeof new Date(1899, 12, 1, 0, 0) !== "object") { + $FAIL("#2.1: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); +} + +if (new Date(1899, 12, 1, 0, 0) === undefined) { + $FAIL("#2.2: new Date(1899, 12, 1, 0, 0) should not be undefined"); +} + +var x23 = new Date(1899, 12, 1, 0, 0); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); +} + +var x24 = new Date(1899, 12, 1, 0, 0); +if(x24 === undefined){ + $FAIL("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(1900, 0, 1, 0, 0) !== "object") { + $FAIL("#3.1: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); +} + +if (new Date(1900, 0, 1, 0, 0) === undefined) { + $FAIL("#3.2: new Date(1900, 0, 1, 0, 0) should not be undefined"); +} + +var x33 = new Date(1900, 0, 1, 0, 0); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); +} + +var x34 = new Date(1900, 0, 1, 0, 0); +if(x34 === undefined){ + $FAIL("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(1969, 11, 31, 23, 59) !== "object") { + $FAIL("#4.1: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); +} + +if (new Date(1969, 11, 31, 23, 59) === undefined) { + $FAIL("#4.2: new Date(1969, 11, 31, 23, 59) should not be undefined"); +} + +var x43 = new Date(1969, 11, 31, 23, 59); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); +} + +var x44 = new Date(1969, 11, 31, 23, 59); +if(x44 === undefined){ + $FAIL("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined"); +} + +if (typeof new Date(1969, 12, 1, 0, 0) !== "object") { + $FAIL("#5.1: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); +} + +if (new Date(1969, 12, 1, 0, 0) === undefined) { + $FAIL("#5.2: new Date(1969, 12, 1, 0, 0) should not be undefined"); +} + +var x53 = new Date(1969, 12, 1, 0, 0); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); +} + +var x54 = new Date(1969, 12, 1, 0, 0); +if(x54 === undefined){ + $FAIL("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(1970, 0, 1, 0, 0) !== "object") { + $FAIL("#6.1: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); +} + +if (new Date(1970, 0, 1, 0, 0) === undefined) { + $FAIL("#6.2: new Date(1970, 0, 1, 0, 0) should not be undefined"); +} + +var x63 = new Date(1970, 0, 1, 0, 0); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); +} + +var x64 = new Date(1970, 0, 1, 0, 0); +if(x64 === undefined){ + $FAIL("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(1999, 11, 31, 23, 59) !== "object") { + $FAIL("#7.1: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); +} + +if (new Date(1999, 11, 31, 23, 59) === undefined) { + $FAIL("#7.2: new Date(1999, 11, 31, 23, 59) should not be undefined"); +} + +var x73 = new Date(1999, 11, 31, 23, 59); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); +} + +var x74 = new Date(1999, 11, 31, 23, 59); +if(x74 === undefined){ + $FAIL("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined"); +} + +if (typeof new Date(1999, 12, 1, 0, 0) !== "object") { + $FAIL("#8.1: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); +} + +if (new Date(1999, 12, 1, 0, 0) === undefined) { + $FAIL("#8.2: new Date(1999, 12, 1, 0, 0) should not be undefined"); +} + +var x83 = new Date(1999, 12, 1, 0, 0); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); +} + +var x84 = new Date(1999, 12, 1, 0, 0); +if(x84 === undefined){ + $FAIL("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(2000, 0, 1, 0, 0) !== "object") { + $FAIL("#9.1: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); +} + +if (new Date(2000, 0, 1, 0, 0) === undefined) { + $FAIL("#9.2: new Date(2000, 0, 1, 0, 0) should not be undefined"); +} + +var x93 = new Date(2000, 0, 1, 0, 0); +if(typeof x93 !== "object"){ + $FAIL("#9.3: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); +} + +var x94 = new Date(2000, 0, 1, 0, 0); +if(x94 === undefined){ + $FAIL("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(2099, 11, 31, 23, 59) !== "object") { + $FAIL("#10.1: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); +} + +if (new Date(2099, 11, 31, 23, 59) === undefined) { + $FAIL("#10.2: new Date(2099, 11, 31, 23, 59) should not be undefined"); +} + +var x103 = new Date(2099, 11, 31, 23, 59); +if(typeof x103 !== "object"){ + $FAIL("#10.3: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); +} + +var x104 = new Date(2099, 11, 31, 23, 59); +if(x104 === undefined){ + $FAIL("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined"); +} + +if (typeof new Date(2099, 12, 1, 0, 0) !== "object") { + $FAIL("#11.1: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); +} + +if (new Date(2099, 12, 1, 0, 0) === undefined) { + $FAIL("#11.2: new Date(2099, 12, 1, 0, 0) should not be undefined"); +} + +var x113 = new Date(2099, 12, 1, 0, 0); +if(typeof x113 !== "object"){ + $FAIL("#11.3: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); +} + +var x114 = new Date(2099, 12, 1, 0, 0); +if(x114 === undefined){ + $FAIL("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined"); +} + +if (typeof new Date(2100, 0, 1, 0, 0) !== "object") { + $FAIL("#12.1: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); +} + +if (new Date(2100, 0, 1, 0, 0) === undefined) { + $FAIL("#12.2: new Date(2100, 0, 1, 0, 0) should not be undefined"); +} + +var x123 = new Date(2100, 0, 1, 0, 0); +if(typeof x123 !== "object"){ + $FAIL("#12.3: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); +} + +var x124 = new Date(2100, 0, 1, 0, 0); +if(x124 === undefined){ + $FAIL("#12.4: new Date(2100, 0, 1, 0, 0) should not be undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T5.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T5.js new file mode 100644 index 000000000..7715457f8 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T5.js @@ -0,0 +1,226 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A1_T5; + * @section: 15.9.3.1; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initializes the newly created object; + * @description: 6 arguments, (year, month, date, hours, minutes, seconds); +*/ + +if (typeof new Date(1899, 11, 31, 23, 59, 59) !== "object") { + $FAIL("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); +} + +if (new Date(1899, 11, 31, 23, 59, 59) === undefined) { + $FAIL("#1.2: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); +} + +var x13 = new Date(1899, 11, 31, 23, 59, 59); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); +} + +var x14 = new Date(1899, 11, 31, 23, 59, 59); +if(x14 === undefined){ + $FAIL("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); +} + +if (typeof new Date(1899, 12, 1, 0, 0, 0) !== "object") { + $FAIL("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(1899, 12, 1, 0, 0, 0) === undefined) { + $FAIL("#2.2: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); +} + +var x23 = new Date(1899, 12, 1, 0, 0, 0); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); +} + +var x24 = new Date(1899, 12, 1, 0, 0, 0); +if(x24 === undefined){ + $FAIL("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1900, 0, 1, 0, 0, 0) !== "object") { + $FAIL("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(1900, 0, 1, 0, 0, 0) === undefined) { + $FAIL("#3.2: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); +} + +var x33 = new Date(1900, 0, 1, 0, 0, 0); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); +} + +var x34 = new Date(1900, 0, 1, 0, 0, 0); +if(x34 === undefined){ + $FAIL("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1969, 11, 31, 23, 59, 59) !== "object") { + $FAIL("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); +} + +if (new Date(1969, 11, 31, 23, 59, 59) === undefined) { + $FAIL("#4.2: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); +} + +var x43 = new Date(1969, 11, 31, 23, 59, 59); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); +} + +var x44 = new Date(1969, 11, 31, 23, 59, 59); +if(x44 === undefined){ + $FAIL("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); +} + +if (typeof new Date(1969, 12, 1, 0, 0, 0) !== "object") { + $FAIL("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(1969, 12, 1, 0, 0, 0) === undefined) { + $FAIL("#5.2: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); +} + +var x53 = new Date(1969, 12, 1, 0, 0, 0); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); +} + +var x54 = new Date(1969, 12, 1, 0, 0, 0); +if(x54 === undefined){ + $FAIL("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1970, 0, 1, 0, 0, 0) !== "object") { + $FAIL("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(1970, 0, 1, 0, 0, 0) === undefined) { + $FAIL("#6.2: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); +} + +var x63 = new Date(1970, 0, 1, 0, 0, 0); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); +} + +var x64 = new Date(1970, 0, 1, 0, 0, 0); +if(x64 === undefined){ + $FAIL("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1999, 11, 31, 23, 59, 59) !== "object") { + $FAIL("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); +} + +if (new Date(1999, 11, 31, 23, 59, 59) === undefined) { + $FAIL("#7.2: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); +} + +var x73 = new Date(1999, 11, 31, 23, 59, 59); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); +} + +var x74 = new Date(1999, 11, 31, 23, 59, 59); +if(x74 === undefined){ + $FAIL("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); +} + +if (typeof new Date(1999, 12, 1, 0, 0, 0) !== "object") { + $FAIL("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(1999, 12, 1, 0, 0, 0) === undefined) { + $FAIL("#8.2: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); +} + +var x83 = new Date(1999, 12, 1, 0, 0, 0); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); +} + +var x84 = new Date(1999, 12, 1, 0, 0, 0); +if(x84 === undefined){ + $FAIL("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(2000, 0, 1, 0, 0, 0) !== "object") { + $FAIL("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(2000, 0, 1, 0, 0, 0) === undefined) { + $FAIL("#9.2: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); +} + +var x93 = new Date(2000, 0, 1, 0, 0, 0); +if(typeof x93 !== "object"){ + $FAIL("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); +} + +var x94 = new Date(2000, 0, 1, 0, 0, 0); +if(x94 === undefined){ + $FAIL("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(2099, 11, 31, 23, 59, 59) !== "object") { + $FAIL("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); +} + +if (new Date(2099, 11, 31, 23, 59, 59) === undefined) { + $FAIL("#10.2: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); +} + +var x103 = new Date(2099, 11, 31, 23, 59, 59); +if(typeof x103 !== "object"){ + $FAIL("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); +} + +var x104 = new Date(2099, 11, 31, 23, 59, 59); +if(x104 === undefined){ + $FAIL("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); +} + +if (typeof new Date(2099, 12, 1, 0, 0, 0) !== "object") { + $FAIL("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(2099, 12, 1, 0, 0, 0) === undefined) { + $FAIL("#11.2: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); +} + +var x113 = new Date(2099, 12, 1, 0, 0, 0); +if(typeof x113 !== "object"){ + $FAIL("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); +} + +var x114 = new Date(2099, 12, 1, 0, 0, 0); +if(x114 === undefined){ + $FAIL("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(2100, 0, 1, 0, 0, 0) !== "object") { + $FAIL("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); +} + +if (new Date(2100, 0, 1, 0, 0, 0) === undefined) { + $FAIL("#12.2: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); +} + +var x123 = new Date(2100, 0, 1, 0, 0, 0); +if(typeof x123 !== "object"){ + $FAIL("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); +} + +var x124 = new Date(2100, 0, 1, 0, 0, 0); +if(x124 === undefined){ + $FAIL("#12.4: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T6.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T6.js new file mode 100644 index 000000000..aff407b05 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A1_T6.js @@ -0,0 +1,226 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A1_T6; + * @section: 15.9.3.1; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initializes the newly created object; + * @description: 7 arguments, (year, month, date, hours, minutes, seconds, ms); +*/ + +if (typeof new Date(1899, 11, 31, 23, 59, 59, 999) !== "object") { + $FAIL("#1.1: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) { + $FAIL("#1.2: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +var x14 = new Date(1899, 11, 31, 23, 59, 59, 999); +if(x14 === undefined){ + $FAIL("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +if (typeof new Date(1899, 12, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#2.1: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#2.2: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x24 = new Date(1899, 12, 1, 0, 0, 0, 0); +if(x24 === undefined){ + $FAIL("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1900, 0, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#3.1: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#3.2: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x34 = new Date(1900, 0, 1, 0, 0, 0, 0); +if(x34 === undefined){ + $FAIL("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1969, 11, 31, 23, 59, 59, 999) !== "object") { + $FAIL("#4.1: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) { + $FAIL("#4.2: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +var x44 = new Date(1969, 11, 31, 23, 59, 59, 999); +if(x44 === undefined){ + $FAIL("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +if (typeof new Date(1969, 12, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#5.1: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#5.2: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x54 = new Date(1969, 12, 1, 0, 0, 0, 0); +if(x54 === undefined){ + $FAIL("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1970, 0, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#6.1: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#6.2: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x64 = new Date(1970, 0, 1, 0, 0, 0, 0); +if(x64 === undefined){ + $FAIL("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(1999, 11, 31, 23, 59, 59, 999) !== "object") { + $FAIL("#7.1: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) { + $FAIL("#7.2: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +var x74 = new Date(1999, 11, 31, 23, 59, 59, 999); +if(x74 === undefined){ + $FAIL("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +if (typeof new Date(1999, 12, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#8.1: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#8.2: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x84 = new Date(1999, 12, 1, 0, 0, 0, 0); +if(x84 === undefined){ + $FAIL("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(2000, 0, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#9.1: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#9.2: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); +if(typeof x93 !== "object"){ + $FAIL("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x94 = new Date(2000, 0, 1, 0, 0, 0, 0); +if(x94 === undefined){ + $FAIL("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(2099, 11, 31, 23, 59, 59, 999) !== "object") { + $FAIL("#10.1: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) { + $FAIL("#10.2: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); +if(typeof x103 !== "object"){ + $FAIL("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); +} + +var x104 = new Date(2099, 11, 31, 23, 59, 59, 999); +if(x104 === undefined){ + $FAIL("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); +} + +if (typeof new Date(2099, 12, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#11.1: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#11.2: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); +if(typeof x113 !== "object"){ + $FAIL("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x114 = new Date(2099, 12, 1, 0, 0, 0, 0); +if(x114 === undefined){ + $FAIL("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); +} + +if (typeof new Date(2100, 0, 1, 0, 0, 0, 0) !== "object") { + $FAIL("#12.1: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) { + $FAIL("#12.2: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); +} + +var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); +if(typeof x123 !== "object"){ + $FAIL("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); +} + +var x124 = new Date(2100, 0, 1, 0, 0, 0, 0); +if(x124 === undefined){ + $FAIL("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T1.js new file mode 100644 index 000000000..fed34da13 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T1.js @@ -0,0 +1,191 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A2_T1; + * @section: 15.9.3.1; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: 2 arguments, (year, month); +*/ + +var x11 = new Date(1899, 11); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(1899, 11); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(1899, 11); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype === x13.constructor.prototype"); +} + +var x21 = new Date(1899, 12); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x11.constructor.prototype === 'object'"); +} + +var x22 = new Date(1899, 12); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(1899, 12); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype === x23.constructor.prototype"); +} + +var x31 = new Date(1900, 0); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(1900, 0); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(1900, 0); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype === x33.constructor.prototype"); +} + +var x41 = new Date(1969, 11); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x41.constructor.prototype === 'object'"); +} + +var x42 = new Date(1969, 11); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(1969, 11); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype === x43.constructor.prototype"); +} + +var x51 = new Date(1969, 12); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(1969, 12); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(1969, 12); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype === x53.constructor.prototype"); +} + +var x61 = new Date(1970, 0); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(1970, 0); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(1970, 0); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype === x63.constructor.prototype"); +} + +var x71 = new Date(1999, 11); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(1999, 11); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(1999, 11); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype === x73.constructor.prototype"); +} + +var x81 = new Date(1999, 12); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(1999, 12); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(1999, 12); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype === x83.constructor.prototype"); +} + +var x91 = new Date(2000, 0); +if (typeof x91.constructor.prototype !== "object") { + $FAIL("#9.1: typeof x91.constructor.prototype === 'object'"); +} + +var x92 = new Date(2000, 0); +if (!Date.prototype.isPrototypeOf(x92)) { + $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); +} + +var x93 = new Date(2000, 0); +if(Date.prototype !== x93.constructor.prototype){ + $FAIL("#9.3: Date.prototype === x93.constructor.prototype"); +} + +var x101 = new Date(2099, 11); +if (typeof x101.constructor.prototype !== "object") { + $FAIL("#10.1: typeof x101.constructor.prototype === 'object'"); +} + +var x102 = new Date(2099, 11); +if (!Date.prototype.isPrototypeOf(x102)) { + $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); +} + +var x103 = new Date(2099, 11); +if(Date.prototype !== x103.constructor.prototype){ + $FAIL("#10.3: Date.prototype === x103.constructor.prototype"); +} + +var x111 = new Date(2099, 12); +if (typeof x111.constructor.prototype !== "object") { + $FAIL("#11.1: typeof x111.constructor.prototype === 'object'"); +} + +var x112 = new Date(2099, 12); +if (!Date.prototype.isPrototypeOf(x112)) { + $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); +} + +var x113 = new Date(2099, 12); +if(Date.prototype !== x113.constructor.prototype){ + $FAIL("#11.3: Date.prototype === x113.constructor.prototype"); +} + +var x121 = new Date(2100, 0); +if (typeof x121.constructor.prototype !== "object") { + $FAIL("#12.1: typeof x121.constructor.prototype === 'object'"); +} + +var x122 = new Date(2100, 0); +if (!Date.prototype.isPrototypeOf(x122)) { + $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); +} + +var x123 = new Date(2100, 0); +if(Date.prototype !== x123.constructor.prototype){ + $FAIL("#12.3: Date.prototype === x123.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T2.js new file mode 100644 index 000000000..0f9f55da2 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T2.js @@ -0,0 +1,191 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A2_T2; + * @section: 15.9.3.1; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: 3 arguments, (year, month, date); +*/ + +var x11 = new Date(1899, 11, 31); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(1899, 11, 31); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(1899, 11, 31); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype === x13.constructor.prototype"); +} + +var x21 = new Date(1899, 12, 1); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x21.constructor.prototype === 'object'"); +} + +var x22 = new Date(1899, 12, 1); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(1899, 12, 1); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype === x23.constructor.prototype"); +} + +var x31 = new Date(1900, 0, 1); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(1900, 0, 1); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(1900, 0, 1); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype === x33.constructor.prototype"); +} + +var x41 = new Date(1969, 11, 31); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x41.constructor.prototype === 'object'"); +} + +var x42 = new Date(1969, 11, 31); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(1969, 11, 31); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype === x43.constructor.prototype"); +} + +var x51 = new Date(1969, 12, 1); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(1969, 12, 1); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(1969, 12, 1); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype === x53.constructor.prototype"); +} + +var x61 = new Date(1970, 0, 1); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(1970, 0, 1); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(1970, 0, 1); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype === x63.constructor.prototype"); +} + +var x71 = new Date(1999, 11, 31); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(1999, 11, 31); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(1999, 11, 31); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype === x73.constructor.prototype"); +} + +var x81 = new Date(1999, 12, 1); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(1999, 12, 1); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(1999, 12, 1); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype === x83.constructor.prototype"); +} + +var x91 = new Date(2000, 0, 1); +if (typeof x91.constructor.prototype !== "object") { + $FAIL("#9.1: typeof x91.constructor.prototype === 'object'"); +} + +var x92 = new Date(2000, 0, 1); +if (!Date.prototype.isPrototypeOf(x92)) { + $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); +} + +var x93 = new Date(2000, 0, 1); +if(Date.prototype !== x93.constructor.prototype){ + $FAIL("#9.3: Date.prototype === x93.constructor.prototype"); +} + +var x101 = new Date(2099, 11, 31); +if (typeof x101.constructor.prototype !== "object") { + $FAIL("#10.1: typeof x101.constructor.prototype === 'object'"); +} + +var x102 = new Date(2099, 11, 31); +if (!Date.prototype.isPrototypeOf(x102)) { + $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); +} + +var x103 = new Date(2099, 11, 31); +if(Date.prototype !== x103.constructor.prototype){ + $FAIL("#10.3: Date.prototype === x103.constructor.prototype"); +} + +var x111 = new Date(2099, 12, 1); +if (typeof x111.constructor.prototype !== "object") { + $FAIL("#11.1: typeof x111.constructor.prototype === 'object'"); +} + +var x112 = new Date(2099, 12, 1); +if (!Date.prototype.isPrototypeOf(x112)) { + $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); +} + +var x113 = new Date(2099, 12, 1); +if(Date.prototype !== x113.constructor.prototype){ + $FAIL("#11.3: Date.prototype === x113.constructor.prototype"); +} + +var x121 = new Date(2100, 0, 1); +if (typeof x121.constructor.prototype !== "object") { + $FAIL("#12.1: typeof x121.constructor.prototype === 'object'"); +} + +var x122 = new Date(2100, 0, 1); +if (!Date.prototype.isPrototypeOf(x122)) { + $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); +} + +var x123 = new Date(2100, 0, 1); +if(Date.prototype !== x123.constructor.prototype){ + $FAIL("#12.3: Date.prototype === x123.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T3.js new file mode 100644 index 000000000..c0e1286aa --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T3.js @@ -0,0 +1,191 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A2_T3; + * @section: 15.9.3.1; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: 4 arguments, (year, month, date, hours); +*/ + +var x11 = new Date(1899, 11, 31, 23); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(1899, 11, 31, 23); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(1899, 11, 31, 23); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype === x13.constructor.prototype"); +} + +var x21 = new Date(1899, 12, 1, 0); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x21.constructor.prototype === 'object'"); +} + +var x22 = new Date(1899, 12, 1, 0); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(1899, 12, 1, 0); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype === x23.constructor.prototype"); +} + +var x31 = new Date(1900, 0, 1, 0); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(1900, 0, 1, 0); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(1900, 0, 1, 0); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype === x33.constructor.prototype"); +} + +var x41 = new Date(1969, 11, 31, 23); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x41.constructor.prototype === 'object'"); +} + +var x42 = new Date(1969, 11, 31, 23); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(1969, 11, 31, 23); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype === x43.constructor.prototype"); +} + +var x51 = new Date(1969, 12, 1, 0); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(1969, 12, 1, 0); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(1969, 12, 1, 0); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype === x53.constructor.prototype"); +} + +var x61 = new Date(1970, 0, 1, 0); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(1970, 0, 1, 0); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(1970, 0, 1, 0); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype === x63.constructor.prototype"); +} + +var x71 = new Date(1999, 11, 31, 23); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(1999, 11, 31, 23); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(1999, 11, 31, 23); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype === x73.constructor.prototype"); +} + +var x81 = new Date(1999, 12, 1, 0); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(1999, 12, 1, 0); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(1999, 12, 1, 0); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype === x83.constructor.prototype"); +} + +var x91 = new Date(2000, 0, 1, 0); +if (typeof x91.constructor.prototype !== "object") { + $FAIL("#9.1: typeof x91.constructor.prototype === 'object'"); +} + +var x92 = new Date(2000, 0, 1, 0); +if (!Date.prototype.isPrototypeOf(x92)) { + $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); +} + +var x93 = new Date(2000, 0, 1, 0); +if(Date.prototype !== x93.constructor.prototype){ + $FAIL("#9.3: Date.prototype === x93.constructor.prototype"); +} + +var x101 = new Date(2099, 11, 31, 23); +if (typeof x101.constructor.prototype !== "object") { + $FAIL("#10.1: typeof x101.constructor.prototype === 'object'"); +} + +var x102 = new Date(2099, 11, 31, 23); +if (!Date.prototype.isPrototypeOf(x102)) { + $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); +} + +var x103 = new Date(2099, 11, 31, 23); +if(Date.prototype !== x103.constructor.prototype){ + $FAIL("#10.3: Date.prototype === x103.constructor.prototype"); +} + +var x111 = new Date(2099, 12, 1, 0); +if (typeof x111.constructor.prototype !== "object") { + $FAIL("#11.1: typeof x111.constructor.prototype === 'object'"); +} + +var x112 = new Date(2099, 12, 1, 0); +if (!Date.prototype.isPrototypeOf(x112)) { + $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); +} + +var x113 = new Date(2099, 12, 1, 0); +if(Date.prototype !== x113.constructor.prototype){ + $FAIL("#11.3: Date.prototype === x113.constructor.prototype"); +} + +var x121 = new Date(2100, 0, 1, 0); +if (typeof x121.constructor.prototype !== "object") { + $FAIL("#12.1: typeof x121.constructor.prototype === 'object'"); +} + +var x122 = new Date(2100, 0, 1, 0); +if (!Date.prototype.isPrototypeOf(x122)) { + $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); +} + +var x123 = new Date(2100, 0, 1, 0); +if(Date.prototype !== x123.constructor.prototype){ + $FAIL("#12.3: Date.prototype === x123.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T4.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T4.js new file mode 100644 index 000000000..a2dbeeba4 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T4.js @@ -0,0 +1,191 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A2_T4; + * @section: 15.9.3.1; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: 5 arguments, (year, month, date, hours, minutes); +*/ + +var x11 = new Date(1899, 11, 31, 23, 59); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(1899, 11, 31, 23, 59); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(1899, 11, 31, 23, 59); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype === x13.constructor.prototype"); +} + +var x21 = new Date(1899, 12, 1, 0, 0); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x21.constructor.prototype === 'object'"); +} + +var x22 = new Date(1899, 12, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(1899, 12, 1, 0, 0); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype === x23.constructor.prototype"); +} + +var x31 = new Date(1900, 0, 1, 0, 0); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(1900, 0, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(1900, 0, 1, 0, 0); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype === x33.constructor.prototype"); +} + +var x41 = new Date(1969, 11, 31, 23, 59); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x41.constructor.prototype === 'object'"); +} + +var x42 = new Date(1969, 11, 31, 23, 59); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(1969, 11, 31, 23, 59); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype === x43.constructor.prototype"); +} + +var x51 = new Date(1969, 12, 1, 0, 0); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(1969, 12, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(1969, 12, 1, 0, 0); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype === x53.constructor.prototype"); +} + +var x61 = new Date(1970, 0, 1, 0, 0); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(1970, 0, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(1970, 0, 1, 0, 0); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype === x63.constructor.prototype"); +} + +var x71 = new Date(1999, 11, 31, 23, 59); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(1999, 11, 31, 23, 59); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(1999, 11, 31, 23, 59); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype === x73.constructor.prototype"); +} + +var x81 = new Date(1999, 12, 1, 0, 0); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(1999, 12, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(1999, 12, 1, 0, 0); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype === x83.constructor.prototype"); +} + +var x91 = new Date(2000, 0, 1, 0, 0); +if (typeof x91.constructor.prototype !== "object") { + $FAIL("#9.1: typeof x91.constructor.prototype === 'object'"); +} + +var x92 = new Date(2000, 0, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x92)) { + $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); +} + +var x93 = new Date(2000, 0, 1, 0, 0); +if(Date.prototype !== x93.constructor.prototype){ + $FAIL("#9.3: Date.prototype === x93.constructor.prototype"); +} + +var x101 = new Date(2099, 11, 31, 23, 59); +if (typeof x101.constructor.prototype !== "object") { + $FAIL("#10.1: typeof x101.constructor.prototype === 'object'"); +} + +var x102 = new Date(2099, 11, 31, 23, 59); +if (!Date.prototype.isPrototypeOf(x102)) { + $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); +} + +var x103 = new Date(2099, 11, 31, 23, 59); +if(Date.prototype !== x103.constructor.prototype){ + $FAIL("#10.3: Date.prototype === x103.constructor.prototype"); +} + +var x111 = new Date(2099, 12, 1, 0, 0); +if (typeof x111.constructor.prototype !== "object") { + $FAIL("#11.1: typeof x111.constructor.prototype === 'object'"); +} + +var x112 = new Date(2099, 12, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x112)) { + $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); +} + +var x113 = new Date(2099, 12, 1, 0, 0); +if(Date.prototype !== x113.constructor.prototype){ + $FAIL("#11.3: Date.prototype === x113.constructor.prototype"); +} + +var x121 = new Date(2100, 0, 1, 0, 0); +if (typeof x121.constructor.prototype !== "object") { + $FAIL("#12.1: typeof x121.constructor.prototype === 'object'"); +} + +var x122 = new Date(2100, 0, 1, 0, 0); +if (!Date.prototype.isPrototypeOf(x122)) { + $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); +} + +var x123 = new Date(2100, 0, 1, 0, 0); +if(Date.prototype !== x123.constructor.prototype){ + $FAIL("#12.3: Date.prototype === x123.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T5.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T5.js new file mode 100644 index 000000000..bbc366156 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T5.js @@ -0,0 +1,191 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A2_T5; + * @section: 15.9.3.1; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: 6 arguments, (year, month, date, hours, minutes, seconds); +*/ + +var x11 = new Date(1899, 11, 31, 23, 59, 59); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(1899, 11, 31, 23, 59, 59); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(1899, 11, 31, 23, 59, 59); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype === x13.constructor.prototype"); +} + +var x21 = new Date(1899, 12, 1, 0, 0, 0); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x21.constructor.prototype === 'object'"); +} + +var x22 = new Date(1899, 12, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(1899, 12, 1, 0, 0, 0); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype === x23.constructor.prototype"); +} + +var x31 = new Date(1900, 0, 1, 0, 0, 0); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(1900, 0, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(1900, 0, 1, 0, 0, 0); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype === x33.constructor.prototype"); +} + +var x41 = new Date(1969, 11, 31, 23, 59, 59); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x41.constructor.prototype === 'object'"); +} + +var x42 = new Date(1969, 11, 31, 23, 59, 59); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(1969, 11, 31, 23, 59, 59); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype === x43.constructor.prototype"); +} + +var x51 = new Date(1969, 12, 1, 0, 0, 0); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(1969, 12, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(1969, 12, 1, 0, 0, 0); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype === x53.constructor.prototype"); +} + +var x61 = new Date(1970, 0, 1, 0, 0, 0); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(1970, 0, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(1970, 0, 1, 0, 0, 0); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype === x63.constructor.prototype"); +} + +var x71 = new Date(1999, 11, 31, 23, 59, 59); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(1999, 11, 31, 23, 59, 59); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(1999, 11, 31, 23, 59, 59); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype === x73.constructor.prototype"); +} + +var x81 = new Date(1999, 12, 1, 0, 0, 0); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(1999, 12, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(1999, 12, 1, 0, 0, 0); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype === x83.constructor.prototype"); +} + +var x91 = new Date(2000, 0, 1, 0, 0, 0); +if (typeof x91.constructor.prototype !== "object") { + $FAIL("#9.1: typeof x91.constructor.prototype === 'object'"); +} + +var x92 = new Date(2000, 0, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x92)) { + $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); +} + +var x93 = new Date(2000, 0, 1, 0, 0, 0); +if(Date.prototype !== x93.constructor.prototype){ + $FAIL("#9.3: Date.prototype === x93.constructor.prototype"); +} + +var x101 = new Date(2099, 11, 31, 23, 59, 59); +if (typeof x101.constructor.prototype !== "object") { + $FAIL("#10.1: typeof x101.constructor.prototype === 'object'"); +} + +var x102 = new Date(2099, 11, 31, 23, 59, 59); +if (!Date.prototype.isPrototypeOf(x102)) { + $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); +} + +var x103 = new Date(2099, 11, 31, 23, 59, 59); +if(Date.prototype !== x103.constructor.prototype){ + $FAIL("#10.3: Date.prototype === x103.constructor.prototype"); +} + +var x111 = new Date(2099, 12, 1, 0, 0, 0); +if (typeof x111.constructor.prototype !== "object") { + $FAIL("#11.1: typeof x111.constructor.prototype === 'object'"); +} + +var x112 = new Date(2099, 12, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x112)) { + $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); +} + +var x113 = new Date(2099, 12, 1, 0, 0, 0); +if(Date.prototype !== x113.constructor.prototype){ + $FAIL("#11.3: Date.prototype === x113.constructor.prototype"); +} + +var x121 = new Date(2100, 0, 1, 0, 0, 0); +if (typeof x121.constructor.prototype !== "object") { + $FAIL("#12.1: typeof x121.constructor.prototype === 'object'"); +} + +var x122 = new Date(2100, 0, 1, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x122)) { + $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); +} + +var x123 = new Date(2100, 0, 1, 0, 0, 0); +if(Date.prototype !== x123.constructor.prototype){ + $FAIL("#12.3: Date.prototype === x123.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T6.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T6.js new file mode 100644 index 000000000..8b8a6bb54 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A2_T6.js @@ -0,0 +1,191 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A2_T6; + * @section: 15.9.3.1; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: 7 arguments, (year, month, date, hours, minutes, seconds, ms); +*/ + +var x11 = new Date(1899, 11, 31, 23, 59, 59, 999); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(1899, 11, 31, 23, 59, 59, 999); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype === x13.constructor.prototype"); +} + +var x21 = new Date(1899, 12, 1, 0, 0, 0, 0); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x21.constructor.prototype === 'object'"); +} + +var x22 = new Date(1899, 12, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype === x23.constructor.prototype"); +} + +var x31 = new Date(1900, 0, 1, 0, 0, 0, 0); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(1900, 0, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype === x33.constructor.prototype"); +} + +var x41 = new Date(1969, 11, 31, 23, 59, 59, 999); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x41.constructor.prototype === 'object'"); +} + +var x42 = new Date(1969, 11, 31, 23, 59, 59, 999); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype === x43.constructor.prototype"); +} + +var x51 = new Date(1969, 12, 1, 0, 0, 0, 0); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(1969, 12, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype === x53.constructor.prototype"); +} + +var x61 = new Date(1970, 0, 1, 0, 0, 0, 0); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(1970, 0, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype === x63.constructor.prototype"); +} + +var x71 = new Date(1999, 11, 31, 23, 59, 59, 999); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(1999, 11, 31, 23, 59, 59, 999); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype === x73.constructor.prototype"); +} + +var x81 = new Date(1999, 12, 1, 0, 0, 0, 0); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(1999, 12, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype === x83.constructor.prototype"); +} + +var x91 = new Date(2000, 0, 1, 0, 0, 0, 0); +if (typeof x91.constructor.prototype !== "object") { + $FAIL("#9.1: typeof x91.constructor.prototype === 'object'"); +} + +var x92 = new Date(2000, 0, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x92)) { + $ERROR('#9.2: Date.prototype.isPrototypeOf(x92)'); +} + +var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); +if(Date.prototype !== x93.constructor.prototype){ + $FAIL("#9.3: Date.prototype === x93.constructor.prototype"); +} + +var x101 = new Date(2099, 11, 31, 23, 59, 59, 999); +if (typeof x101.constructor.prototype !== "object") { + $FAIL("#10.1: typeof x101.constructor.prototype === 'object'"); +} + +var x102 = new Date(2099, 11, 31, 23, 59, 59, 999); +if (!Date.prototype.isPrototypeOf(x102)) { + $ERROR('#10.2: Date.prototype.isPrototypeOf(x102)'); +} + +var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); +if(Date.prototype !== x103.constructor.prototype){ + $FAIL("#10.3: Date.prototype === x103.constructor.prototype"); +} + +var x111 = new Date(2099, 12, 1, 0, 0, 0, 0); +if (typeof x111.constructor.prototype !== "object") { + $FAIL("#11.1: typeof x111.constructor.prototype === 'object'"); +} + +var x112 = new Date(2099, 12, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x112)) { + $ERROR('#11.2: Date.prototype.isPrototypeOf(x112)'); +} + +var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); +if(Date.prototype !== x113.constructor.prototype){ + $FAIL("#11.3: Date.prototype === x113.constructor.prototype"); +} + +var x121 = new Date(2100, 0, 1, 0, 0, 0, 0); +if (typeof x121.constructor.prototype !== "object") { + $FAIL("#12.1: typeof x121.constructor.prototype === 'object'"); +} + +var x122 = new Date(2100, 0, 1, 0, 0, 0, 0); +if (!Date.prototype.isPrototypeOf(x122)) { + $ERROR('#12.2: Date.prototype.isPrototypeOf(x122)'); +} + +var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); +if(Date.prototype !== x123.constructor.prototype){ + $FAIL("#12.3: Date.prototype === x123.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T1.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T1.1.js new file mode 100644 index 000000000..c9e39fdd4 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T1.1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T1.1; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on delete prototype.toString - 2 arguments, (year, month); +*/ + +var x1 = new Date(1899, 11); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0); +if (Object.prototype.toString.call(x9) !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11); +if (Object.prototype.toString.call(x10) !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12); +if (Object.prototype.toString.call(x11) !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0); +if (Object.prototype.toString.call(x12) !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T1.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T1.2.js new file mode 100644 index 000000000..159c2a033 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T1.2.js @@ -0,0 +1,73 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T1.2; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString - 2 arguments, (year, month); +*/ + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(1899, 11); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0); +if (x9.toString() !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11); +if (x10.toString() !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12); +if (x11.toString() !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0); +if (x12.toString() !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T2.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T2.1.js new file mode 100644 index 000000000..c35f5207e --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T2.1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T2.1; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on delete prototype.toString - 3 arguments, (year, month, date); +*/ + +var x1 = new Date(1899, 11, 31); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1); +if (Object.prototype.toString.call(x9) !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31); +if (Object.prototype.toString.call(x10) !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1); +if (Object.prototype.toString.call(x11) !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1); +if (Object.prototype.toString.call(x12) !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T2.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T2.2.js new file mode 100644 index 000000000..2189a087e --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T2.2.js @@ -0,0 +1,73 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T2.2; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString - 3 arguments, (year, month, date); +*/ + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(1899, 11, 31); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1); +if (x9.toString() !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31); +if (x10.toString() !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1); +if (x11.toString() !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1); +if (x12.toString() !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T3.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T3.1.js new file mode 100644 index 000000000..4b4cfc7b9 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T3.1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T3.1; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on delete prototype.toString - 4 arguments, (year, month, date, hours); +*/ + +var x1 = new Date(1899, 11, 31, 23); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0); +if (Object.prototype.toString.call(x9) !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23); +if (Object.prototype.toString.call(x10) !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0); +if (Object.prototype.toString.call(x11) !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0); +if (Object.prototype.toString.call(x12) !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T3.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T3.2.js new file mode 100644 index 000000000..914585fe3 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T3.2.js @@ -0,0 +1,72 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T3.2; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString - 4 arguments, (year, month, date, hours); +*/ + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(1899, 11, 31, 23); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0); +if (x9.toString() !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23); +if (x10.toString() !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0); +if (x11.toString() !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0); +if (x12.toString() !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T4.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T4.1.js new file mode 100644 index 000000000..8bf42466f --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T4.1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T4.1; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on delete prototype.toString - 5 arguments, (year, month, date, hours, minutes); +*/ + +var x1 = new Date(1899, 11, 31, 23, 59); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0, 0); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0, 0); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23, 59); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0, 0); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0, 0); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23, 59); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0, 0); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0, 0); +if (Object.prototype.toString.call(x9) !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23, 59); +if (Object.prototype.toString.call(x10) !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0, 0); +if (Object.prototype.toString.call(x11) !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0, 0); +if (Object.prototype.toString.call(x12) !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T4.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T4.2.js new file mode 100644 index 000000000..c9fcc3907 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T4.2.js @@ -0,0 +1,72 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T4.2; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString - 5 arguments, (year, month, date, hours, minutes); +*/ + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(1899, 11, 31, 23, 59); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0, 0); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0, 0); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23, 59); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0, 0); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0, 0); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23, 59); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0, 0); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0, 0); +if (x9.toString() !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23, 59); +if (x10.toString() !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0, 0); +if (x11.toString() !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0, 0); +if (x12.toString() !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T5.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T5.1.js new file mode 100644 index 000000000..e519fbd5e --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T5.1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T5.1; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: 6 arguments, (year, month, date, hours, minutes, seconds); +*/ + +var x1 = new Date(1899, 11, 31, 23, 59, 59); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0, 0, 0); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0, 0, 0); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23, 59, 59); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0, 0, 0); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0, 0, 0); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23, 59, 59); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0, 0, 0); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0, 0, 0); +if (Object.prototype.toString.call(x9) !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23, 59, 59); +if (Object.prototype.toString.call(x10) !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0, 0, 0); +if (Object.prototype.toString.call(x11) !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0, 0, 0); +if (Object.prototype.toString.call(x12) !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T5.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T5.2.js new file mode 100644 index 000000000..3badc050e --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T5.2.js @@ -0,0 +1,72 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T5.2; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString - 6 arguments, (year, month, date, hours, minutes, seconds); +*/ + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(1899, 11, 31, 23, 59, 59); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0, 0, 0); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0, 0, 0); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23, 59, 59); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0, 0, 0); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0, 0, 0); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23, 59, 59); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0, 0, 0); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0, 0, 0); +if (x9.toString() !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23, 59, 59); +if (x10.toString() !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0, 0, 0); +if (x11.toString() !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0, 0, 0); +if (x12.toString() !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T6.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T6.1.js new file mode 100644 index 000000000..75131d915 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T6.1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T6.1; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: 7 arguments, (year, month, date, hours, minutes, seconds, ms); +*/ + +var x1 = new Date(1899, 11, 31, 23, 59, 59, 999); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23, 59, 59, 999); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23, 59, 59, 999); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x9) !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23, 59, 59, 999); +if (Object.prototype.toString.call(x10) !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x11) !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0, 0, 0, 0); +if (Object.prototype.toString.call(x12) !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T6.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T6.2.js new file mode 100644 index 000000000..913970485 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A3_T6.2.js @@ -0,0 +1,72 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A3_T6.2; + * @section: 15.9.3.1; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString - 7 arguments, (year, month, date, hours, minutes, seconds, ms); +*/ + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(1899, 11, 31, 23, 59, 59, 999); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(1899, 12, 1, 0, 0, 0, 0); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(1900, 0, 1, 0, 0, 0, 0); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(1969, 11, 31, 23, 59, 59, 999); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(1969, 12, 1, 0, 0, 0, 0); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(1970, 0, 1, 0, 0, 0, 0); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(1999, 11, 31, 23, 59, 59, 999); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(1999, 12, 1, 0, 0, 0, 0); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x9 = new Date(2000, 0, 1, 0, 0, 0, 0); +if (x9.toString() !== "[object Date]") { + $FAIL("#9: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x10 = new Date(2099, 11, 31, 23, 59, 59, 999); +if (x10.toString() !== "[object Date]") { + $FAIL("#10: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x11 = new Date(2099, 12, 1, 0, 0, 0, 0); +if (x11.toString() !== "[object Date]") { + $FAIL("#11: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x12 = new Date(2100, 0, 1, 0, 0, 0, 0); +if (x12.toString() !== "[object Date]") { + $FAIL("#12: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T1.js new file mode 100644 index 000000000..f12142ffb --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T1.js @@ -0,0 +1,45 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A4_T1; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 1. Call ToNumber(year) + * 2. Call ToNumber(month) + * 3. If date is supplied use ToNumber(date) + * 4. If hours is supplied use ToNumber(hours) + * 5. If minutes is supplied use ToNumber(minutes) + * 6. If seconds is supplied use ToNumber(seconds) + * 7. If ms is supplied use ToNumber(ms); + * @description: 2 arguments, (year, month); + */ + +var myObj = function(val){ + this.value = val; + this.valueOf = function(){throw "valueOf-"+this.value;}; + this.toString = function(){throw "toString-"+this.value;}; +}; + +//CHECK#1 +try{ + var x1 = new Date(new myObj(1), new myObj(2)); + $ERROR("#1: The 1st step is calling ToNumber(year)"); +} +catch(e){ + if(e !== "valueOf-1"){ + $ERROR("#1: The 1st step is calling ToNumber(year)"); + } +} + +//CHECK#2 +try{ + var x2 = new Date(1, new myObj(2)); + $ERROR("#2: The 2nd step is calling ToNumber(month)"); +} +catch(e){ + if(e !== "valueOf-2"){ + $ERROR("#2: The 2nd step is calling ToNumber(month)"); + } +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T2.js new file mode 100644 index 000000000..38d241be2 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T2.js @@ -0,0 +1,56 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A4_T2; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 1. Call ToNumber(year) + * 2. Call ToNumber(month) + * 3. If date is supplied use ToNumber(date) + * 4. If hours is supplied use ToNumber(hours) + * 5. If minutes is supplied use ToNumber(minutes) + * 6. If seconds is supplied use ToNumber(seconds) + * 7. If ms is supplied use ToNumber(ms); + * @description: 3 arguments, (year, month, date); + */ + +var myObj = function(val){ + this.value = val; + this.valueOf = function(){throw "valueOf-"+this.value;}; + this.toString = function(){throw "toString-"+this.value;}; +}; + +//CHECK#1 +try{ + var x1 = new Date(new myObj(1), new myObj(2), new myObj(3)); + $ERROR("#1: The 1st step is calling ToNumber(year)"); +} +catch(e){ + if(e !== "valueOf-1"){ + $ERROR("#1: The 1st step is calling ToNumber(year)"); + } +} + +//CHECK#2 +try{ + var x2 = new Date(1, new myObj(2), new myObj(3)); + $ERROR("#2: The 2nd step is calling ToNumber(month)"); +} +catch(e){ + if(e !== "valueOf-2"){ + $ERROR("#2: The 2nd step is calling ToNumber(month)"); + } +} + +//CHECK#3 +try{ + var x3 = new Date(1, 2, new myObj(3)); + $ERROR("#3: The 3rd step is calling ToNumber(date)"); +} +catch(e){ + if(e !== "valueOf-3"){ + $ERROR("#3: The 3rd step is calling ToNumber(date)"); + } +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T3.js new file mode 100644 index 000000000..4b4989101 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T3.js @@ -0,0 +1,67 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A4_T3; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 1. Call ToNumber(year) + * 2. Call ToNumber(month) + * 3. If date is supplied use ToNumber(date) + * 4. If hours is supplied use ToNumber(hours) + * 5. If minutes is supplied use ToNumber(minutes) + * 6. If seconds is supplied use ToNumber(seconds) + * 7. If ms is supplied use ToNumber(ms); + * @description: 4 arguments, (year, month, date, hours); + */ + +var myObj = function(val){ + this.value = val; + this.valueOf = function(){throw "valueOf-"+this.value;}; + this.toString = function(){throw "toString-"+this.value;}; +}; + +//CHECK#1 +try{ + var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4)); + $ERROR("#1: The 1st step is calling ToNumber(year)"); +} +catch(e){ + if(e !== "valueOf-1"){ + $ERROR("#1: The 1st step is calling ToNumber(year)"); + } +} + +//CHECK#2 +try{ + var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4)); + $ERROR("#2: The 2nd step is calling ToNumber(month)"); +} +catch(e){ + if(e !== "valueOf-2"){ + $ERROR("#2: The 2nd step is calling ToNumber(month)"); + } +} + +//CHECK#3 +try{ + var x3 = new Date(1, 2, new myObj(3), new myObj(4)); + $ERROR("#3: The 3rd step is calling ToNumber(date)"); +} +catch(e){ + if(e !== "valueOf-3"){ + $ERROR("#3: The 3rd step is calling ToNumber(date)"); + } +} + +//CHECK#4 +try{ + var x4 = new Date(1, 2, 3, new myObj(4)); + $ERROR("#4: The 4th step is calling ToNumber(hours)"); +} +catch(e){ + if(e !== "valueOf-4"){ + $ERROR("#4: The 4th step is calling ToNumber(hours)"); + } +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T4.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T4.js new file mode 100644 index 000000000..ba80ecd96 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T4.js @@ -0,0 +1,78 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A4_T4; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 1. Call ToNumber(year) + * 2. Call ToNumber(month) + * 3. If date is supplied use ToNumber(date) + * 4. If hours is supplied use ToNumber(hours) + * 5. If minutes is supplied use ToNumber(minutes) + * 6. If seconds is supplied use ToNumber(seconds) + * 7. If ms is supplied use ToNumber(ms); + * @description: 5 arguments, (year, month, date, hours, minutes); + */ + +var myObj = function(val){ + this.value = val; + this.valueOf = function(){throw "valueOf-"+this.value;}; + this.toString = function(){throw "toString-"+this.value;}; +}; + +//CHECK#1 +try{ + var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5)); + $ERROR("#1: The 1st step is calling ToNumber(year)"); +} +catch(e){ + if(e !== "valueOf-1"){ + $ERROR("#1: The 1st step is calling ToNumber(year)"); + } +} + +//CHECK#2 +try{ + var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5)); + $ERROR("#2: The 2nd step is calling ToNumber(month)"); +} +catch(e){ + if(e !== "valueOf-2"){ + $ERROR("#2: The 2nd step is calling ToNumber(month)"); + } +} + +//CHECK#3 +try{ + var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5)); + $ERROR("#3: The 3rd step is calling ToNumber(date)"); +} +catch(e){ + if(e !== "valueOf-3"){ + $ERROR("#3: The 3rd step is calling ToNumber(date)"); + } +} + +//CHECK#4 +try{ + var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5)); + $ERROR("#4: The 4th step is calling ToNumber(hours)"); +} +catch(e){ + if(e !== "valueOf-4"){ + $ERROR("#4: The 4th step is calling ToNumber(hours)"); + } +} + +//CHECK#5 +try{ + var x5 = new Date(1, 2, 3, 4, new myObj(5)); + $ERROR("#5: The 5th step is calling ToNumber(minutes)"); +} +catch(e){ + if(e !== "valueOf-5"){ + $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + } +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T5.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T5.js new file mode 100644 index 000000000..234e567fe --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T5.js @@ -0,0 +1,89 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A4_T5; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 1. Call ToNumber(year) + * 2. Call ToNumber(month) + * 3. If date is supplied use ToNumber(date) + * 4. If hours is supplied use ToNumber(hours) + * 5. If minutes is supplied use ToNumber(minutes) + * 6. If seconds is supplied use ToNumber(seconds) + * 7. If ms is supplied use ToNumber(ms); + * @description: 6 arguments, (year, month, date, hours, minutes, seconds); + */ + +var myObj = function(val){ + this.value = val; + this.valueOf = function(){throw "valueOf-"+this.value;}; + this.toString = function(){throw "toString-"+this.value;}; +}; + +//CHECK#1 +try{ + var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); + $ERROR("#1: The 1st step is calling ToNumber(year)"); +} +catch(e){ + if(e !== "valueOf-1"){ + $ERROR("#1: The 1st step is calling ToNumber(year)"); + } +} + +//CHECK#2 +try{ + var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); + $ERROR("#2: The 2nd step is calling ToNumber(month)"); +} +catch(e){ + if(e !== "valueOf-2"){ + $ERROR("#2: The 2nd step is calling ToNumber(month)"); + } +} + +//CHECK#3 +try{ + var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6)); + $ERROR("#3: The 3rd step is calling ToNumber(date)"); +} +catch(e){ + if(e !== "valueOf-3"){ + $ERROR("#3: The 3rd step is calling ToNumber(date)"); + } +} + +//CHECK#4 +try{ + var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6)); + $ERROR("#4: The 4th step is calling ToNumber(hours)"); +} +catch(e){ + if(e !== "valueOf-4"){ + $ERROR("#4: The 4th step is calling ToNumber(hours)"); + } +} + +//CHECK#5 +try{ + var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6)); + $ERROR("#5: The 5th step is calling ToNumber(minutes)"); +} +catch(e){ + if(e !== "valueOf-5"){ + $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + } +} + +//CHECK#6 +try{ + var x6 = new Date(1, 2, 3, 4, 5, new myObj(6)); + $ERROR("#6: The 6th step is calling ToNumber(seconds)"); +} +catch(e){ + if(e !== "valueOf-6"){ + $ERROR("#6: The 6th step is calling ToNumber(seconds)"); + } +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T6.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T6.js new file mode 100644 index 000000000..d50b643b0 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A4_T6.js @@ -0,0 +1,100 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A4_T6; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 1. Call ToNumber(year) + * 2. Call ToNumber(month) + * 3. If date is supplied use ToNumber(date) + * 4. If hours is supplied use ToNumber(hours) + * 5. If minutes is supplied use ToNumber(minutes) + * 6. If seconds is supplied use ToNumber(seconds) + * 7. If ms is supplied use ToNumber(ms); + * @description: 7 arguments, (year, month, date, hours, minutes, seconds, ms); + */ + +var myObj = function(val){ + this.value = val; + this.valueOf = function(){throw "valueOf-"+this.value;}; + this.toString = function(){throw "toString-"+this.value;}; +}; + +//CHECK#1 +try{ + var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); + $ERROR("#1: The 1st step is calling ToNumber(year)"); +} +catch(e){ + if(e !== "valueOf-1"){ + $ERROR("#1: The 1st step is calling ToNumber(year)"); + } +} + +//CHECK#2 +try{ + var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); + $ERROR("#2: The 2nd step is calling ToNumber(month)"); +} +catch(e){ + if(e !== "valueOf-2"){ + $ERROR("#2: The 2nd step is calling ToNumber(month)"); + } +} + +//CHECK#3 +try{ + var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); + $ERROR("#3: The 3rd step is calling ToNumber(date)"); +} +catch(e){ + if(e !== "valueOf-3"){ + $ERROR("#3: The 3rd step is calling ToNumber(date)"); + } +} + +//CHECK#4 +try{ + var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7)); + $ERROR("#4: The 4th step is calling ToNumber(hours)"); +} +catch(e){ + if(e !== "valueOf-4"){ + $ERROR("#4: The 4th step is calling ToNumber(hours)"); + } +} + +//CHECK#5 +try{ + var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7)); + $ERROR("#5: The 5th step is calling ToNumber(minutes)"); +} +catch(e){ + if(e !== "valueOf-5"){ + $ERROR("#5: The 5th step is calling ToNumber(minutes)"); + } +} + +//CHECK#6 +try{ + var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7)); + $ERROR("#6: The 6th step is calling ToNumber(seconds)"); +} +catch(e){ + if(e !== "valueOf-6"){ + $ERROR("#6: The 6th step is calling ToNumber(seconds)"); + } +} + +//CHECK#7 +try{ + var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7)); + $ERROR("#7: The 7th step is calling ToNumber(ms)"); +} +catch(e){ + if(e !== "valueOf-7"){ + $ERROR("#7: The 7th step is calling ToNumber(ms)"); + } +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T1.js new file mode 100644 index 000000000..48582e45a --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T1.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A5_T1; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is + * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1) + * 9. Compute MakeDay(Result(8), Result(2), Result(3)) + * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7)) + * 11. Compute MakeDate(Result(9), Result(10)) + * 12. Set the [[Value]] property of the newly constructed object to + * TimeClip(UTC(Result(11))); + * @description: 2 arguments, (year, month); + */ + +$INCLUDE("environment.js"); +$INCLUDE("numeric_conversion.js"); +$INCLUDE("Date_constants.js"); +$INCLUDE("Date_library.js"); + +if (ConstructDate(1899, 11) !== new Date(1899, 11).valueOf()) { + $FAIL("#1: Incorrect value of Date"); +} + +if (ConstructDate(1899, 12) !== new Date(1899, 12).valueOf()) { + $FAIL("#2: Incorrect value of Date"); +} + +if (ConstructDate(1900, 0) !== new Date(1900, 0).valueOf()) { + $FAIL("#3: Incorrect value of Date"); +} + +if (ConstructDate(1969, 11) !== new Date(1969, 11).valueOf()) { + $FAIL("#4: Incorrect value of Date"); +} + +if (ConstructDate(1969, 12) !== new Date(1969, 12).valueOf()) { + $FAIL("#5: Incorrect value of Date"); +} + +if (ConstructDate(1970, 0) !== new Date(1970, 0).valueOf()) { + $FAIL("#6: Incorrect value of Date"); +} + +if (ConstructDate(1999, 11) !== new Date(1999, 11).valueOf()) { + $FAIL("#7: Incorrect value of Date"); +} + +if (ConstructDate(1999, 12) !== new Date(1999, 12).valueOf()) { + $FAIL("#8: Incorrect value of Date"); +} + +if (ConstructDate(2000, 0) !== new Date(2000, 0).valueOf()) { + $FAIL("#9: Incorrect value of Date"); +} + +if (ConstructDate(2099, 11) !== new Date(2099, 11).valueOf()) { + $FAIL("#10: Incorrect value of Date"); +} + +if (ConstructDate(2099, 12) !== new Date(2099, 12).valueOf()) { + $FAIL("#11: Incorrect value of Date"); +} + +if (ConstructDate(2100, 0) !== new Date(2100, 0).valueOf()) { + $FAIL("#12: Incorrect value of Date"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T2.js new file mode 100644 index 000000000..5828b2c2d --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T2.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A5_T2; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is + * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1) + * 9. Compute MakeDay(Result(8), Result(2), Result(3)) + * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7)) + * 11. Compute MakeDate(Result(9), Result(10)) + * 12. Set the [[Value]] property of the newly constructed object to + * TimeClip(UTC(Result(11))); + * @description: 3 arguments, (year, month, date); + */ + +$INCLUDE("environment.js"); +$INCLUDE("numeric_conversion.js"); +$INCLUDE("Date_constants.js"); +$INCLUDE("Date_library.js"); + +if (ConstructDate(1899, 11, 31) !== new Date(1899, 11, 31).valueOf()) { + $FAIL("#1: Incorrect value of Date"); +} + +if (ConstructDate(1899, 12, 1) !== new Date(1899, 12, 1).valueOf()) { + $FAIL("#2: Incorrect value of Date"); +} + +if (ConstructDate(1900, 0, 1) !== new Date(1900, 0, 1).valueOf()) { + $FAIL("#3: Incorrect value of Date"); +} + +if (ConstructDate(1969, 11, 31) !== new Date(1969, 11, 31).valueOf()) { + $FAIL("#4: Incorrect value of Date"); +} + +if (ConstructDate(1969, 12, 1) !== new Date(1969, 12, 1).valueOf()) { + $FAIL("#5: Incorrect value of Date"); +} + +if (ConstructDate(1970, 0, 1) !== new Date(1970, 0, 1).valueOf()) { + $FAIL("#6: Incorrect value of Date"); +} + +if (ConstructDate(1999, 11, 31) !== new Date(1999, 11, 31).valueOf()) { + $FAIL("#7: Incorrect value of Date"); +} + +if (ConstructDate(1999, 12, 1) !== new Date(1999, 12, 1).valueOf()) { + $FAIL("#8: Incorrect value of Date"); +} + +if (ConstructDate(2000, 0, 1) !== new Date(2000, 0, 1).valueOf()) { + $FAIL("#9: Incorrect value of Date"); +} + +if (ConstructDate(2099, 11, 31) !== new Date(2099, 11, 31).valueOf()) { + $FAIL("#10: Incorrect value of Date"); +} + +if (ConstructDate(2099, 12, 1) !== new Date(2099, 12, 1).valueOf()) { + $FAIL("#11: Incorrect value of Date"); +} + +if (ConstructDate(2100, 0, 1) !== new Date(2100, 0, 1).valueOf()) { + $FAIL("#12: Incorrect value of Date"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T3.js new file mode 100644 index 000000000..f56034a9c --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T3.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A5_T3; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is + * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1) + * 9. Compute MakeDay(Result(8), Result(2), Result(3)) + * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7)) + * 11. Compute MakeDate(Result(9), Result(10)) + * 12. Set the [[Value]] property of the newly constructed object to + * TimeClip(UTC(Result(11))); + * @description: 4 arguments, (year, month, date, hours); + */ + +$INCLUDE("environment.js"); +$INCLUDE("numeric_conversion.js"); +$INCLUDE("Date_constants.js"); +$INCLUDE("Date_library.js"); + +if (ConstructDate(1899, 11, 31, 23) !== new Date(1899, 11, 31, 23).valueOf()) { + $FAIL("#1: Incorrect value of Date"); +} + +if (ConstructDate(1899, 12, 1, 0) !== new Date(1899, 12, 1, 0).valueOf()) { + $FAIL("#2: Incorrect value of Date"); +} + +if (ConstructDate(1900, 0, 1, 0) !== new Date(1900, 0, 1, 0).valueOf()) { + $FAIL("#3: Incorrect value of Date"); +} + +if (ConstructDate(1969, 11, 31, 23) !== new Date(1969, 11, 31, 23).valueOf()) { + $FAIL("#4: Incorrect value of Date"); +} + +if (ConstructDate(1969, 12, 1, 0) !== new Date(1969, 12, 1, 0).valueOf()) { + $FAIL("#5: Incorrect value of Date"); +} + +if (ConstructDate(1970, 0, 1, 0) !== new Date(1970, 0, 1, 0).valueOf()) { + $FAIL("#6: Incorrect value of Date"); +} + +if (ConstructDate(1999, 11, 31, 23) !== new Date(1999, 11, 31, 23).valueOf()) { + $FAIL("#7: Incorrect value of Date"); +} + +if (ConstructDate(1999, 12, 1, 0) !== new Date(1999, 12, 1, 0).valueOf()) { + $FAIL("#8: Incorrect value of Date"); +} + +if (ConstructDate(2000, 0, 1, 0) !== new Date(2000, 0, 1, 0).valueOf()) { + $FAIL("#9: Incorrect value of Date"); +} + +if (ConstructDate(2099, 11, 31, 23) !== new Date(2099, 11, 31, 23).valueOf()) { + $FAIL("#10: Incorrect value of Date"); +} + +if (ConstructDate(2099, 12, 1, 0) !== new Date(2099, 12, 1, 0).valueOf()) { + $FAIL("#11: Incorrect value of Date"); +} + +if (ConstructDate(2100, 0, 1, 0) !== new Date(2100, 0, 1, 0).valueOf()) { + $FAIL("#12: Incorrect value of Date"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T4.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T4.js new file mode 100644 index 000000000..ef5329adb --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T4.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A5_T4; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is + * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1) + * 9. Compute MakeDay(Result(8), Result(2), Result(3)) + * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7)) + * 11. Compute MakeDate(Result(9), Result(10)) + * 12. Set the [[Value]] property of the newly constructed object to + * TimeClip(UTC(Result(11))); + * @description: 5 arguments, (year, month, date, hours, minutes); + */ + +$INCLUDE("environment.js"); +$INCLUDE("numeric_conversion.js"); +$INCLUDE("Date_constants.js"); +$INCLUDE("Date_library.js"); + +if (ConstructDate(1899, 11, 31, 23, 59) !== new Date(1899, 11, 31, 23, 59).valueOf()) { + $FAIL("#1: Incorrect value of Date"); +} + +if (ConstructDate(1899, 12, 1, 0, 0) !== new Date(1899, 12, 1, 0, 0).valueOf()) { + $FAIL("#2: Incorrect value of Date"); +} + +if (ConstructDate(1900, 0, 1, 0, 0) !== new Date(1900, 0, 1, 0, 0).valueOf()) { + $FAIL("#3: Incorrect value of Date"); +} + +if (ConstructDate(1969, 11, 31, 23, 59) !== new Date(1969, 11, 31, 23, 59).valueOf()) { + $FAIL("#4: Incorrect value of Date"); +} + +if (ConstructDate(1969, 12, 1, 0, 0) !== new Date(1969, 12, 1, 0, 0).valueOf()) { + $FAIL("#5: Incorrect value of Date"); +} + +if (ConstructDate(1970, 0, 1, 0, 0) !== new Date(1970, 0, 1, 0, 0).valueOf()) { + $FAIL("#6: Incorrect value of Date"); +} + +if (ConstructDate(1999, 11, 31, 23, 59) !== new Date(1999, 11, 31, 23, 59).valueOf()) { + $FAIL("#7: Incorrect value of Date"); +} + +if (ConstructDate(1999, 12, 1, 0, 0) !== new Date(1999, 12, 1, 0, 0).valueOf()) { + $FAIL("#8: Incorrect value of Date"); +} + +if (ConstructDate(2000, 0, 1, 0, 0) !== new Date(2000, 0, 1, 0, 0).valueOf()) { + $FAIL("#9: Incorrect value of Date"); +} + +if (ConstructDate(2099, 11, 31, 23, 59) !== new Date(2099, 11, 31, 23, 59).valueOf()) { + $FAIL("#10: Incorrect value of Date"); +} + +if (ConstructDate(2099, 12, 1, 0, 0) !== new Date(2099, 12, 1, 0, 0).valueOf()) { + $FAIL("#11: Incorrect value of Date"); +} + +if (ConstructDate(2100, 0, 1, 0, 0) !== new Date(2100, 0, 1, 0, 0).valueOf()) { + $FAIL("#12: Incorrect value of Date"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js new file mode 100644 index 000000000..76d087776 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T5.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A5_T5; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is + * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1) + * 9. Compute MakeDay(Result(8), Result(2), Result(3)) + * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7)) + * 11. Compute MakeDate(Result(9), Result(10)) + * 12. Set the [[Value]] property of the newly constructed object to + * TimeClip(UTC(Result(11))); + * @description: 6 arguments, (year, month, date, hours, minutes, seconds); + */ + +$INCLUDE("environment.js"); +$INCLUDE("numeric_conversion.js"); +$INCLUDE("Date_constants.js"); +$INCLUDE("Date_library.js"); + +if (ConstructDate(1899, 11, 31, 23, 59, 59) !== new Date(1899, 11, 31, 23, 59, 59).valueOf()) { + $FAIL("#1: Incorrect value of Date"); +} + +if (ConstructDate(1899, 12, 1, 0, 0, 0) !== new Date(1899, 12, 1, 0, 0, 0).valueOf()) { + $FAIL("#2: Incorrect value of Date"); +} + +if (ConstructDate(1900, 0, 1, 0, 0, 0) !== new Date(1900, 0, 1, 0, 0, 0).valueOf()) { + $FAIL("#3: Incorrect value of Date"); +} + +if (ConstructDate(1969, 11, 31, 23, 59, 59) !== new Date(1969, 11, 31, 23, 59, 59).valueOf()) { + $FAIL("#4: Incorrect value of Date"); +} + +if (ConstructDate(1969, 12, 1, 0, 0, 0) !== new Date(1969, 12, 1, 0, 0, 0).valueOf()) { + $FAIL("#5: Incorrect value of Date"); +} + +if (ConstructDate(1970, 0, 1, 0, 0, 0) !== new Date(1970, 0, 1, 0, 0, 0).valueOf()) { + $FAIL("#6: Incorrect value of Date"); +} + +if (ConstructDate(1999, 11, 31, 23, 59, 59) !== new Date(1999, 11, 31, 23, 59, 59).valueOf()) { + $FAIL("#7: Incorrect value of Date"); +} + +if (ConstructDate(1999, 12, 1, 0, 0, 0) !== new Date(1999, 12, 1, 0, 0, 0).valueOf()) { + $FAIL("#8: Incorrect value of Date"); +} + +if (ConstructDate(2000, 0, 1, 0, 0, 0) !== new Date(2000, 0, 1, 0, 0, 0).valueOf()) { + $FAIL("#9: Incorrect value of Date"); +} + +if (ConstructDate(2099, 11, 31, 23, 59, 59) !== new Date(2099, 11, 31, 23, 59, 59).valueOf()) { + $FAIL("#10: Incorrect value of Date"); +} + +if (ConstructDate(2099, 12, 1, 0, 0, 0) !== new Date(2099, 12, 1, 0, 0, 0).valueOf()) { + $FAIL("#11: Incorrect value of Date"); +} + +if (ConstructDate(2100, 0, 1, 0, 0, 0) !== new Date(2100, 0, 1, 0, 0, 0).valueOf()) { + $FAIL("#12: Incorrect value of Date"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T6.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T6.js new file mode 100644 index 000000000..b89944f2a --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A5_T6.js @@ -0,0 +1,70 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A5_T6; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * is set by following steps: + * 8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is + * 1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1) + * 9. Compute MakeDay(Result(8), Result(2), Result(3)) + * 10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7)) + * 11. Compute MakeDate(Result(9), Result(10)) + * 12. Set the [[Value]] property of the newly constructed object to + * TimeClip(UTC(Result(11))); + * @description: 7 arguments, (year, month, date, hours, minutes, seconds, ms); + */ + +$INCLUDE("environment.js"); +$INCLUDE("numeric_conversion.js"); +$INCLUDE("Date_constants.js"); +$INCLUDE("Date_library.js"); + +if (ConstructDate(1899, 11, 31, 23, 59, 59, 999) !== new Date(1899, 11, 31, 23, 59, 59, 999).valueOf()) { + $FAIL("#1: Incorrect value of Date"); +} + +if (ConstructDate(1899, 12, 1, 0, 0, 0, 0) !== new Date(1899, 12, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#2: Incorrect value of Date"); +} + +if (ConstructDate(1900, 0, 1, 0, 0, 0, 0) !== new Date(1900, 0, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#3: Incorrect value of Date"); +} + +if (ConstructDate(1969, 11, 31, 23, 59, 59, 999) !== new Date(1969, 11, 31, 23, 59, 59, 999).valueOf()) { + $FAIL("#4: Incorrect value of Date"); +} + +if (ConstructDate(1969, 12, 1, 0, 0, 0, 0) !== new Date(1969, 12, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#5: Incorrect value of Date"); +} + +if (ConstructDate(1970, 0, 1, 0, 0, 0, 0) !== new Date(1970, 0, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#6: Incorrect value of Date"); +} + +if (ConstructDate(1999, 11, 31, 23, 59, 59, 999) !== new Date(1999, 11, 31, 23, 59, 59, 999).valueOf()) { + $FAIL("#7: Incorrect value of Date"); +} + +if (ConstructDate(1999, 12, 1, 0, 0, 0, 0) !== new Date(1999, 12, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#8: Incorrect value of Date"); +} + +if (ConstructDate(2000, 0, 1, 0, 0, 0, 0) !== new Date(2000, 0, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#9: Incorrect value of Date"); +} + +if (ConstructDate(2099, 11, 31, 23, 59, 59, 999) !== new Date(2099, 11, 31, 23, 59, 59, 999).valueOf()) { + $FAIL("#10: Incorrect value of Date"); +} + +if (ConstructDate(2099, 12, 1, 0, 0, 0, 0) !== new Date(2099, 12, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#11: Incorrect value of Date"); +} + +if (ConstructDate(2100, 0, 1, 0, 0, 0, 0) !== new Date(2100, 0, 1, 0, 0, 0, 0).valueOf()) { + $FAIL("#12: Incorrect value of Date"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T1.js new file mode 100644 index 000000000..49db8553e --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T1.js @@ -0,0 +1,62 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A6_T1; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * with supplied "undefined" argument should be NaN; + * @description: 2 arguments, (year, month); + */ + +function DateValue(year, month, date, hours, minutes, seconds, ms){ + return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); +} + +if (!isNaN(DateValue(1899, 11))) { + $FAIL("#1: The value should be NaN"); +} + +if (!isNaN(DateValue(1899, 12))) { + $FAIL("#2: The value should be NaN"); +} + +if (!isNaN(DateValue(1900, 0))) { + $FAIL("#3: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 11))) { + $FAIL("#4: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 12))) { + $FAIL("#5: The value should be NaN"); +} + +if (!isNaN(DateValue(1970, 0))) { + $FAIL("#6: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 11))) { + $FAIL("#7: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 12))) { + $FAIL("#8: The value should be NaN"); +} + +if (!isNaN(DateValue(2000, 0))) { + $FAIL("#9: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 11))) { + $FAIL("#10: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 12))) { + $FAIL("#11: The value should be NaN"); +} + +if (!isNaN(DateValue(2100, 0))) { + $FAIL("#12: The value should be NaN"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T2.js new file mode 100644 index 000000000..95380c622 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T2.js @@ -0,0 +1,62 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A6_T2; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * with supplied "undefined" argument should be NaN; + * @description: 3 arguments, (year, month, date); + */ + +function DateValue(year, month, date, hours, minutes, seconds, ms){ + return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); +} + +if (!isNaN(DateValue(1899, 11, 31))) { + $FAIL("#1: The value should be NaN"); +} + +if (!isNaN(DateValue(1899, 12, 1))) { + $FAIL("#2: The value should be NaN"); +} + +if (!isNaN(DateValue(1900, 0, 1))) { + $FAIL("#3: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 11, 31))) { + $FAIL("#4: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 12, 1))) { + $FAIL("#5: The value should be NaN"); +} + +if (!isNaN(DateValue(1970, 0, 1))) { + $FAIL("#6: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 11, 31))) { + $FAIL("#7: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 12, 1))) { + $FAIL("#8: The value should be NaN"); +} + +if (!isNaN(DateValue(2000, 0, 1))) { + $FAIL("#9: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 11, 31))) { + $FAIL("#10: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 12, 1))) { + $FAIL("#11: The value should be NaN"); +} + +if (!isNaN(DateValue(2100, 0, 1))) { + $FAIL("#12: The value should be NaN"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js new file mode 100644 index 000000000..d9ce1228d --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T3.js @@ -0,0 +1,62 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A6_T3; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * with supplied "undefined" argument should be NaN; + * @description: 4 arguments, (year, month, date, hours); + */ + +function DateValue(year, month, date, hours, minutes, seconds, ms){ + return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); +} + +if (!isNaN(DateValue(1899, 11, 31, 23))) { + $FAIL("#1: The value should be NaN"); +} + +if (!isNaN(DateValue(1899, 12, 1, 0))) { + $FAIL("#2: The value should be NaN"); +} + +if (!isNaN(DateValue(1900, 0, 1, 0))) { + $FAIL("#3: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 11, 31, 23))) { + $FAIL("#4: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 12, 1, 0))) { + $FAIL("#5: The value should be NaN"); +} + +if (!isNaN(DateValue(1970, 0, 1, 0))) { + $FAIL("#6: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 11, 31, 23))) { + $FAIL("#7: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 12, 1, 0))) { + $FAIL("#8: The value should be NaN"); +} + +if (!isNaN(DateValue(2000, 0, 1, 0))) { + $FAIL("#9: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 11, 31, 23))) { + $FAIL("#10: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 12, 1, 0))) { + $FAIL("#11: The value should be NaN"); +} + +if (!isNaN(DateValue(2100, 0, 1, 0))) { + $FAIL("#12: The value should be NaN"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T4.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T4.js new file mode 100644 index 000000000..6bbd9a3ae --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T4.js @@ -0,0 +1,62 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A6_T4; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * with supplied "undefined" argument should be NaN; + * @description: 5 arguments, (year, month, date, hours, minutes); + */ + +function DateValue(year, month, date, hours, minutes, seconds, ms){ + return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); +} + +if (!isNaN(DateValue(1899, 11, 31, 23, 59))) { + $FAIL("#1: The value should be NaN"); +} + +if (!isNaN(DateValue(1899, 12, 1, 0, 0))) { + $FAIL("#2: The value should be NaN"); +} + +if (!isNaN(DateValue(1900, 0, 1, 0, 0))) { + $FAIL("#3: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 11, 31, 23, 59))) { + $FAIL("#4: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 12, 1, 0, 0))) { + $FAIL("#5: The value should be NaN"); +} + +if (!isNaN(DateValue(1970, 0, 1, 0, 0))) { + $FAIL("#6: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 11, 31, 23, 59))) { + $FAIL("#7: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 12, 1, 0, 0))) { + $FAIL("#8: The value should be NaN"); +} + +if (!isNaN(DateValue(2000, 0, 1, 0, 0))) { + $FAIL("#9: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 11, 31, 23, 59))) { + $FAIL("#10: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 12, 1, 0, 0))) { + $FAIL("#11: The value should be NaN"); +} + +if (!isNaN(DateValue(2100, 0, 1, 0, 0))) { + $FAIL("#12: The value should be NaN"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T5.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T5.js new file mode 100644 index 000000000..c81b1afef --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.1_A6_T5.js @@ -0,0 +1,62 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.1_A6_T5; + * @section: 15.9.3.1; + * @assertion: The [[Value]] property of the newly constructed object + * with supplied "undefined" argument should be NaN; + * @description: 6 arguments, (year, month, date, hours, minutes, seconds); + */ + +function DateValue(year, month, date, hours, minutes, seconds, ms){ + return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); +} + +if (!isNaN(DateValue(1899, 11, 31, 23, 59, 59))) { + $FAIL("#1: The value should be NaN"); +} + +if (!isNaN(DateValue(1899, 12, 1, 0, 0, 0))) { + $FAIL("#2: The value should be NaN"); +} + +if (!isNaN(DateValue(1900, 0, 1, 0, 0, 0))) { + $FAIL("#3: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 11, 31, 23, 59, 59))) { + $FAIL("#4: The value should be NaN"); +} + +if (!isNaN(DateValue(1969, 12, 1, 0, 0, 0))) { + $FAIL("#5: The value should be NaN"); +} + +if (!isNaN(DateValue(1970, 0, 1, 0, 0, 0))) { + $FAIL("#6: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 11, 31, 23, 59, 59))) { + $FAIL("#7: The value should be NaN"); +} + +if (!isNaN(DateValue(1999, 12, 1, 0, 0, 0))) { + $FAIL("#8: The value should be NaN"); +} + +if (!isNaN(DateValue(2000, 0, 1, 0, 0, 0))) { + $FAIL("#9: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 11, 31, 23, 59, 59))) { + $FAIL("#10: The value should be NaN"); +} + +if (!isNaN(DateValue(2099, 12, 1, 0, 0, 0))) { + $FAIL("#11: The value should be NaN"); +} + +if (!isNaN(DateValue(2100, 0, 1, 0, 0, 0))) { + $FAIL("#12: The value should be NaN"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A1_T1.js new file mode 100644 index 000000000..30c42abd9 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A1_T1.js @@ -0,0 +1,156 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.2_A1_T1; + * @section: 15.9.3.2; + * @assertion: When Date is called as part of a new expression it is + * a constructor: it initialises the newly created object; + * @description: Checking types of newly created objects and it values; +*/ + +$INCLUDE("Date_constants.js"); + +if (typeof new Date(date_1899_end) !== "object") { + $FAIL("#1.1: typeof new Date(date_1899_end) === 'object'"); +} + +if (new Date(date_1899_end) === undefined) { + $FAIL("#1.2: new Date(date_1899_end) === undefined"); +} + +var x13 = new Date(date_1899_end); +if(typeof x13 !== "object"){ + $FAIL("#1.3: typeof new Date(date_1899_end) !== 'object'"); +} + +var x14 = new Date(date_1899_end); +if(x14 === undefined){ + $FAIL("#1.4: new Date(date_1899_end) !== undefined"); +} + +if (typeof new Date(date_1900_start) !== "object") { + $FAIL("#2.1: typeof new Date(date_1900_start) === 'object'"); +} + +if (new Date(date_1900_start) === undefined) { + $FAIL("#2.2: new Date(date_1900_start) === undefined"); +} + +var x23 = new Date(date_1900_start); +if(typeof x23 !== "object"){ + $FAIL("#2.3: typeof new Date(date_1900_start) !== 'object'"); +} + +var x24 = new Date(date_1900_start); +if(x24 === undefined){ + $FAIL("#2.4: new Date(date_1900_start) !== undefined"); +} + +if (typeof new Date(date_1969_end) !== "object") { + $FAIL("#3.1: typeof new Date(date_1969_end) === 'object'"); +} + +if (new Date(date_1969_end) === undefined) { + $FAIL("#3.2: new Date(date_1969_end) === undefined"); +} + +var x33 = new Date(date_1969_end); +if(typeof x33 !== "object"){ + $FAIL("#3.3: typeof new Date(date_1969_end) !== 'object'"); +} + +var x34 = new Date(date_1969_end); +if(x34 === undefined){ + $FAIL("#3.4: new Date(date_1969_end) !== undefined"); +} + +if (typeof new Date(date_1970_start) !== "object") { + $FAIL("#4.1: typeof new Date(date_1970_start) === 'object'"); +} + +if (new Date(date_1970_start) === undefined) { + $FAIL("#4.2: new Date(date_1970_start) === undefined"); +} + +var x43 = new Date(date_1970_start); +if(typeof x43 !== "object"){ + $FAIL("#4.3: typeof new Date(date_1970_start) !== 'object'"); +} + +var x44 = new Date(date_1970_start); +if(x44 === undefined){ + $FAIL("#4.4: new Date(date_1970_start) !== undefined"); +} + +if (typeof new Date(date_1999_end) !== "object") { + $FAIL("#5.1: typeof new Date(date_1999_end) === 'object'"); +} + +if (new Date(date_1999_end) === undefined) { + $FAIL("#5.2: new Date(date_1999_end) === undefined"); +} + +var x53 = new Date(date_1999_end); +if(typeof x53 !== "object"){ + $FAIL("#5.3: typeof new Date(date_1999_end) !== 'object'"); +} + +var x54 = new Date(date_1999_end); +if(x54 === undefined){ + $FAIL("#5.4: new Date(date_1999_end) !== undefined"); +} + +if (typeof new Date(date_2000_start) !== "object") { + $FAIL("#6.1: typeof new Date(date_2000_start) === 'object'"); +} + +if (new Date(date_2000_start) === undefined) { + $FAIL("#6.2: new Date(date_2000_start) === undefined"); +} + +var x63 = new Date(date_2000_start); +if(typeof x63 !== "object"){ + $FAIL("#6.3: typeof new Date(date_2000_start) !== 'object'"); +} + +var x64 = new Date(date_2000_start); +if(x64 === undefined){ + $FAIL("#6.4: new Date(date_2000_start) !== undefined"); +} + +if (typeof new Date(date_2099_end) !== "object") { + $FAIL("#7.1: typeof new Date(date_2099_end) === 'object'"); +} + +if (new Date(date_2099_end) === undefined) { + $FAIL("#7.2: new Date(date_2099_end) === undefined"); +} + +var x73 = new Date(date_2099_end); +if(typeof x73 !== "object"){ + $FAIL("#7.3: typeof new Date(date_2099_end) !== 'object'"); +} + +var x74 = new Date(date_2099_end); +if(x74 === undefined){ + $FAIL("#7.4: new Date(date_2099_end) !== undefined"); +} + +if (typeof new Date(date_2100_start) !== "object") { + $FAIL("#8.1: typeof new Date(date_2100_start) === 'object'"); +} + +if (new Date(date_2100_start) === undefined) { + $FAIL("#8.2: new Date(date_2100_start) === undefined"); +} + +var x83 = new Date(date_2100_start); +if(typeof x83 !== "object"){ + $FAIL("#8.3: typeof new Date(date_2100_start) !== 'object'"); +} + +var x84 = new Date(date_2100_start); +if(x84 === undefined){ + $FAIL("#8.4: new Date(date_2100_start) !== undefined"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A2_T1.js new file mode 100644 index 000000000..fdcf92f72 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A2_T1.js @@ -0,0 +1,133 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.2_A2_T1; + * @section: 15.9.3.2; + * @assertion: The [[Prototype]] property of the newly constructed object + * is set to the original Date prototype object, the one that is the + * initial value of Date.prototype; + * @description: Checking Date.prototype property of newly constructed objects; +*/ + +$INCLUDE("Date_constants.js"); + +var x11 = new Date(date_1899_end); +if (typeof x11.constructor.prototype !== "object") { + $FAIL("#1.1: typeof x11.constructor.prototype === 'object'"); +} + +var x12 = new Date(date_1899_end); +if (!Date.prototype.isPrototypeOf(x12)) { + $ERROR('#1.2: Date.prototype.isPrototypeOf(x12)'); +} + +var x13 = new Date(date_1899_end); +if(Date.prototype !== x13.constructor.prototype){ + $FAIL("#1.3: Date.prototype !== x13.constructor.prototype"); +} + +var x21 = new Date(date_1900_start); +if (typeof x21.constructor.prototype !== "object") { + $FAIL("#2.1: typeof x21.constructor.prototype === 'object'"); +} + +var x22 = new Date(date_1900_start); +if (!Date.prototype.isPrototypeOf(x22)) { + $ERROR('#2.2: Date.prototype.isPrototypeOf(x22)'); +} + +var x23 = new Date(date_1900_start); +if(Date.prototype !== x23.constructor.prototype){ + $FAIL("#2.3: Date.prototype !== x23.constructor.prototype"); +} + +var x31 = new Date(date_1969_end); +if (typeof x31.constructor.prototype !== "object") { + $FAIL("#3.1: typeof x31.constructor.prototype === 'object'"); +} + +var x32 = new Date(date_1969_end); +if (!Date.prototype.isPrototypeOf(x32)) { + $ERROR('#3.2: Date.prototype.isPrototypeOf(x32)'); +} + +var x33 = new Date(date_1969_end); +if(Date.prototype !== x33.constructor.prototype){ + $FAIL("#3.3: Date.prototype !== x33.constructor.prototype"); +} + +var x41 = new Date(date_1970_start); +if (typeof x41.constructor.prototype !== "object") { + $FAIL("#4.1: typeof x11.constructor.prototype === 'object'"); +} + +var x42 = new Date(date_1970_start); +if (!Date.prototype.isPrototypeOf(x42)) { + $ERROR('#4.2: Date.prototype.isPrototypeOf(x42)'); +} + +var x43 = new Date(date_1970_start); +if(Date.prototype !== x43.constructor.prototype){ + $FAIL("#4.3: Date.prototype !== x43.constructor.prototype"); +} + +var x51 = new Date(date_1999_end); +if (typeof x51.constructor.prototype !== "object") { + $FAIL("#5.1: typeof x51.constructor.prototype === 'object'"); +} + +var x52 = new Date(date_1999_end); +if (!Date.prototype.isPrototypeOf(x52)) { + $ERROR('#5.2: Date.prototype.isPrototypeOf(x52)'); +} + +var x53 = new Date(date_1999_end); +if(Date.prototype !== x53.constructor.prototype){ + $FAIL("#5.3: Date.prototype !== x53.constructor.prototype"); +} + +var x61 = new Date(date_2000_start); +if (typeof x61.constructor.prototype !== "object") { + $FAIL("#6.1: typeof x61.constructor.prototype === 'object'"); +} + +var x62 = new Date(date_2000_start); +if (!Date.prototype.isPrototypeOf(x62)) { + $ERROR('#6.2: Date.prototype.isPrototypeOf(x62)'); +} + +var x63 = new Date(date_2000_start); +if(Date.prototype !== x63.constructor.prototype){ + $FAIL("#6.3: Date.prototype !== x63.constructor.prototype"); +} + +var x71 = new Date(date_2099_end); +if (typeof x71.constructor.prototype !== "object") { + $FAIL("#7.1: typeof x71.constructor.prototype === 'object'"); +} + +var x72 = new Date(date_2099_end); +if (!Date.prototype.isPrototypeOf(x72)) { + $ERROR('#7.2: Date.prototype.isPrototypeOf(x72)'); +} + +var x73 = new Date(date_2099_end); +if(Date.prototype !== x73.constructor.prototype){ + $FAIL("#7.3: Date.prototype !== x73.constructor.prototype"); +} + +var x81 = new Date(date_2100_start); +if (typeof x81.constructor.prototype !== "object") { + $FAIL("#8.1: typeof x81.constructor.prototype === 'object'"); +} + +var x82 = new Date(date_2100_start); +if (!Date.prototype.isPrototypeOf(x82)) { + $ERROR('#8.2: Date.prototype.isPrototypeOf(x82)'); +} + +var x83 = new Date(date_2100_start); +if(Date.prototype !== x83.constructor.prototype){ + $FAIL("#8.3: Date.prototype !== x83.constructor.prototype"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A3_T1.1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A3_T1.1.js new file mode 100644 index 000000000..3864b0814 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A3_T1.1.js @@ -0,0 +1,52 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.2_A3_T1.1; + * @section: 15.9.3.2; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on delete prototype.toString; +*/ + +$INCLUDE("Date_constants.js"); + +var x1 = new Date(date_1899_end); +if (Object.prototype.toString.call(x1) !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(date_1900_start); +if (Object.prototype.toString.call(x2) !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(date_1969_end); +if (Object.prototype.toString.call(x3) !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(date_1970_start); +if (Object.prototype.toString.call(x4) !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(date_1999_end); +if (Object.prototype.toString.call(x5) !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(date_2000_start); +if (Object.prototype.toString.call(x6) !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(date_2099_end); +if (Object.prototype.toString.call(x7) !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(date_2100_start); +if (Object.prototype.toString.call(x8) !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A3_T1.2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A3_T1.2.js new file mode 100644 index 000000000..5dfc63663 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.3_The_Date_Constructor/S15.9.3.2_A3_T1.2.js @@ -0,0 +1,54 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @name: S15.9.3.2_A3_T1.2; + * @section: 15.9.3.2; + * @assertion: The [[Class]] property of the newly constructed object + * is set to "Date"; + * @description: Test based on overwriting prototype.toString; +*/ + +$INCLUDE("Date_constants.js"); + +Date.prototype.toString = Object.prototype.toString; + +var x1 = new Date(date_1899_end); +if (x1.toString() !== "[object Date]") { + $FAIL("#1: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x2 = new Date(date_1900_start); +if (x2.toString() !== "[object Date]") { + $FAIL("#2: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x3 = new Date(date_1969_end); +if (x3.toString() !== "[object Date]") { + $FAIL("#3: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x4 = new Date(date_1970_start); +if (x4.toString() !== "[object Date]") { + $FAIL("#4: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x5 = new Date(date_1999_end); +if (x5.toString() !== "[object Date]") { + $FAIL("#5: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x6 = new Date(date_2000_start); +if (x6.toString() !== "[object Date]") { + $FAIL("#6: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x7 = new Date(date_2099_end); +if (x7.toString() !== "[object Date]") { + $FAIL("#7: The [[Class]] property of the newly constructed object is set to 'Date'"); +} + +var x8 = new Date(date_2100_start); +if (x8.toString() !== "[object Date]") { + $FAIL("#8: The [[Class]] property of the newly constructed object is set to 'Date'"); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_T1.js new file mode 100644 index 000000000..fa0179f45 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_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.4.1_A1_T1; + * @section: 15.9.4.1; + * @assertion: The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.prototype; +Date.prototype = 1; +if (Date.prototype !== x) { + $ERROR('#1: The Date.prototype has the attribute ReadOnly'); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_T2.js new file mode 100644 index 000000000..c5a70eb25 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.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.4.1_A1_T2; + * @section: 15.9.4.1; + * @assertion: The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.prototype !== false) { + $ERROR('#1: The Date.prototype property has the attributes DontDelete'); +} + +if (!Date.hasOwnProperty('prototype')) { + $FAIL('#2: The Date.prototype 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.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.1_A1_T3.js new file mode 100644 index 000000000..47fa32732 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.1_Date.prototype/S15.9.4.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.4.1_A1_T3; + * @section: 15.9.4.1; + * @assertion: The Date property "prototype" has { DontEnum, DontDelete, ReadOnly } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.propertyIsEnumerable('prototype')) { + $ERROR('#1: The Date.prototype property has the attribute DontEnum'); +} + +for(x in Date) { + if(x === "prototype") { + $ERROR('#2: The Date.prototype has the attribute DontEnum'); + } +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A1_T1.js new file mode 100644 index 000000000..fd0add4f4 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A1_T1; + * @section: 15.9.4.2; + * @assertion: The Date property "parse" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.parse; +if(x === 1) + Date.parse = 2; +else + Date.parse = 1; +if (Date.parse === x) { + $ERROR('#1: The Date.parse 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.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A1_T2.js new file mode 100644 index 000000000..f6735477f --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A1_T2; + * @section: 15.9.4.2; + * @assertion: The Date property "parse" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.parse === false) { + $ERROR('#1: The Date.parse property has not the attributes DontDelete'); +} + +if (Date.hasOwnProperty('parse')) { + $FAIL('#2: The Date.parse 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.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A1_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A1_T3.js new file mode 100644 index 000000000..75e89e152 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A1_T3; + * @section: 15.9.4.2; + * @assertion: The Date property "parse" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.propertyIsEnumerable('parse')) { + $ERROR('#1: The Date.parse property has the attribute DontEnum'); +} + +for(x in Date) { + if(x === "parse") { + $ERROR('#2: The Date.parse has the attribute DontEnum'); + } +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A2_T1.js new file mode 100644 index 000000000..6d088bc9a --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A2_T1; + * @section: 15.9.4.2; + * @assertion: The "length" property of the "parse" is 1; + * @description: The "length" property of the "parse" is 1; + */ + +if(Date.parse.hasOwnProperty("length") !== true){ + $ERROR('#1: The parse has a "length" property'); +} + +if(Date.parse.length !== 1){ + $ERROR('#2: The "length" property of the parse is 1'); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A3_T1.js new file mode 100644 index 000000000..6bdb848c6 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A3_T1; + * @section: 15.9.4.2; + * @assertion: The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.parse.length; +Date.parse.length = 1; +if (Date.parse.length !== x) { + $ERROR('#1: The Date.parse.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.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A3_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A3_T2.js new file mode 100644 index 000000000..a83e48b9f --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A3_T2; + * @section: 15.9.4.2; + * @assertion: The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.parse.length !== false) { + $ERROR('#1: The Date.parse.length property has the attributes DontDelete'); +} + +if (!Date.parse.hasOwnProperty('length')) { + $FAIL('#2: The Date.parse.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.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A3_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.2_A3_T3.js new file mode 100644 index 000000000..b5a7c7f43 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.2_Date.parse/S15.9.4.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.4.2_A3_T3; + * @section: 15.9.4.2; + * @assertion: The Date.parse property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.parse.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.parse.length property has the attribute DontEnum'); +} + +for(x in Date.parse) { + if(x === "length") { + $ERROR('#2: The Date.parse.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.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A1_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A1_T1.js new file mode 100644 index 000000000..a53936572 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A1_T1; + * @section: 15.9.4.3; + * @assertion: The Date property "UTC" has { DontEnum } attributes; + * @description: Checking absence of ReadOnly attribute; + */ + +x = Date.UTC; +if(x === 1) + Date.UTC = 2; +else + Date.UTC = 1; +if (Date.UTC === x) { + $ERROR('#1: The Date.UTC 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.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A1_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A1_T2.js new file mode 100644 index 000000000..313874aa5 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A1_T2; + * @section: 15.9.4.3; + * @assertion: The Date property "UTC" has { DontEnum } attributes; + * @description: Checking absence of DontDelete attribute; + */ + +if (delete Date.UTC === false) { + $ERROR('#1: The Date.UTC property has not the attributes DontDelete'); +} + +if (Date.hasOwnProperty('UTC')) { + $FAIL('#2: The Date.UTC 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.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A1_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A1_T3.js new file mode 100644 index 000000000..9e7a68eab --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A1_T3; + * @section: 15.9.4.3; + * @assertion: The Date property "UTC" has { DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.propertyIsEnumerable('UTC')) { + $ERROR('#1: The Date.UTC property has the attribute DontEnum'); +} + +for(x in Date) { + if(x === "UTC") { + $ERROR('#2: The Date.UTC has the attribute DontEnum'); + } +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A2_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A2_T1.js new file mode 100644 index 000000000..4ba6c3185 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A2_T1; + * @section: 15.9.4.3; + * @assertion: The "length" property of the "UTC" is 7; + * @description: The "length" property of the "UTC" is 7; + */ + +if(Date.UTC.hasOwnProperty("length") !== true){ + $ERROR('#1: The UTC has a "length" property'); +} + +if(Date.UTC.length !== 7){ + $ERROR('#2: The "length" property of the UTC is 7'); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A3_T1.js new file mode 100644 index 000000000..9de510da5 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A3_T1; + * @section: 15.9.4.3; + * @assertion: The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking ReadOnly attribute; + */ + +x = Date.UTC.length; +Date.UTC.length = 1; +if (Date.UTC.length !== x) { + $ERROR('#1: The Date.UTC.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.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A3_T2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A3_T2.js new file mode 100644 index 000000000..c1be23fe8 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A3_T2; + * @section: 15.9.4.3; + * @assertion: The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontDelete attribute; + */ + +if (delete Date.UTC.length !== false) { + $ERROR('#1: The Date.UTC.length property has the attributes DontDelete'); +} + +if (!Date.UTC.hasOwnProperty('length')) { + $FAIL('#2: The Date.UTC.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.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A3_T3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.3_A3_T3.js new file mode 100644 index 000000000..ddb9b4f3b --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/15.9.4.3_Date.UTC/S15.9.4.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.4.3_A3_T3; + * @section: 15.9.4.3; + * @assertion: The Date.UTC property "length" has { ReadOnly, DontDelete, DontEnum } attributes; + * @description: Checking DontEnum attribute; + */ + +if (Date.UTC.propertyIsEnumerable('length')) { + $ERROR('#1: The Date.UTC.length property has the attribute DontEnum'); +} + +for(x in Date.UTC) { + if(x === "length") { + $ERROR('#2: The Date.UTC.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.4_Properties_of_the_Date_Constructor/S15.9.4_A1.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A1.js new file mode 100644 index 000000000..2ac75a690 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A1.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.4_A1; + * @section: 15.9.4; + * @assertion: The Date constructor has the property "prototype"; + * @description: Checking existence of the property "prototype"; + */ + +if(!Date.hasOwnProperty("prototype")){ + $ERROR('#1: The Date constructor has the property "prototype"'); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A2.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A2.js new file mode 100644 index 000000000..18f59150d --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A2.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.4_A2; + * @section: 15.9.4; + * @assertion: The Date constructor has the property "parse"; + * @description: Checking existence of the property "parse"; + */ + +if(!Date.hasOwnProperty("parse")){ + $ERROR('#1: The Date constructor has the property "parse"'); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A3.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A3.js new file mode 100644 index 000000000..fba1c6ab3 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A3.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.4_A3; + * @section: 15.9.4; + * @assertion: The Date constructor has the property "UTC"; + * @description: Checking existence of the property "UTC"; + */ + +if(!Date.hasOwnProperty("UTC")){ + $ERROR('#1: The Date constructor has the property "UTC"'); +} + diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A4.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A4.js new file mode 100644 index 000000000..7d8771158 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A4.js @@ -0,0 +1,15 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** +* @name: S15.9.4_A4; +* @section: 15.9.4; +* @assertion: The value of the internal [[Prototype]] property of the Date +* constructor is the Function prototype object; +* @description: Checking Function.prototype.isPrototypeOf(Date); +*/ + +//CHECK#1 +if (!(Function.prototype.isPrototypeOf(Date))) { + $ERROR('#1: the value of the internal [[Prototype]] property of the Date constructor is the Function prototype object.'); +} diff --git a/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A5.js b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A5.js new file mode 100644 index 000000000..0e0e99042 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.4_Properties_of_the_Date_Constructor/S15.9.4_A5.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.4_A5; +* @section: 15.9.4; +* @assertion: Date constructor has length property whose value is 7; +* @description: Checking Date.length property; +*/ + +//CHECK#1 +if (!Date.hasOwnProperty("length")){ + $ERROR('#1: Date constructor has length property'); +} + +//CHECK#2 +if (Date.length !== 7) { + $ERROR('#2: Date constructor length property value should be 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.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"'); +} + |