diff options
Diffstat (limited to 'test/suite/ch15/15.2/15.2.4/15.2.4.7')
11 files changed, 91 insertions, 86 deletions
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js index a375a71ae..c06a1b1ff 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js @@ -1,13 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.propertyIsEnumerable.length property has the attribute ReadOnly - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A10.js - * @description Checking if varying the Object.prototype.propertyIsEnumerable.length property fails - * @noStrict - */ +/*--- +info: > + The Object.prototype.propertyIsEnumerable.length property has the + attribute ReadOnly +description: > + Checking if varying the + Object.prototype.propertyIsEnumerable.length property fails +flags: [noStrict] +includes: [$FAIL.js] +---*/ //CHECK#1 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { @@ -22,4 +25,3 @@ Object.prototype.propertyIsEnumerable.length = function(){return "shifted";}; if (Object.prototype.propertyIsEnumerable.length !== obj) { $ERROR('#2: the Object.prototype.propertyIsEnumerable length property has the attributes ReadOnly'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js index c6c54336e..a82dbae79 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the hasOwnProperty method is 1 - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A11.js - * @description Checking the value of Object.prototype.hasOwnProperty.length - */ +/*--- +info: The length property of the hasOwnProperty method is 1 +description: Checking the value of Object.prototype.hasOwnProperty.length +---*/ //CHECK#1 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty("length"))) { @@ -17,4 +15,3 @@ if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty("length"))) { if (Object.prototype.propertyIsEnumerable.length !== 1) { $ERROR('#2: The length property of the toObject method is 1'); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js index 6340475e3..79b8dfa41 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A12.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.propertyIsEnumerable.call(undefined, 'foo'); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js index d053e6ab4..9d364d460 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js @@ -1,11 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A13.js - * @description Let O be the result of calling ToObject passing the this value as the argument. - * @negative - */ +/*--- +description: > + Let O be the result of calling ToObject passing the this value as + the argument. +flags: [negative] +---*/ Object.prototype.propertyIsEnumerable.call(null, 'foo'); - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js index 455bab10a..827bbe2b3 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The propertyIsEnumerable method does not consider objects in the prototype chain - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A1_T1.js - * @description Calling the propertyIsEnumerable method for object in the prototype chain - */ +/*--- +info: > + The propertyIsEnumerable method does not consider objects in the + prototype chain +description: > + Calling the propertyIsEnumerable method for object in the + prototype chain +---*/ //CHECK#1 if (typeof Object.prototype.propertyIsEnumerable !== "function") { @@ -36,4 +38,3 @@ if (seagull.propertyIsEnumerable("rootprop")) { $ERROR('#4: propertyIsEnumerable method does not consider objects in the prototype chain'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js index b7a328f79..e5105ebf5 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js @@ -1,17 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the propertyIsEnumerable method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) If the property has the DontEnum attribute, return false - * v) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T1.js - * @description Checking the type of Object.prototype.propertyIsEnumerable and the returned result - */ +/*--- +info: > + When the propertyIsEnumerable method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) If the property has the DontEnum attribute, return false + v) Return true +description: > + Checking the type of Object.prototype.propertyIsEnumerable and the + returned result +---*/ //CHECK#1 if (typeof Object.prototype.propertyIsEnumerable !== "function") { @@ -23,4 +24,3 @@ if (Object.prototype.propertyIsEnumerable("propertyIsEnumerable")) { $ERROR('#2: hasOwnProperty method works properly'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js index 373880b83..abb41a237 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js @@ -1,17 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When the propertyIsEnumerable method is called with argument V, the following steps are taken: - * i) Let O be this object - * ii) Call ToString(V) - * iii) If O doesn't have a property with the name given by Result(ii), return false - * iv) If the property has the DontEnum attribute, return false - * v) Return true - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A2_T2.js - * @description Argument of the propertyIsEnumerable method is a custom boolean property - */ +/*--- +info: > + When the propertyIsEnumerable method is called with argument V, the following steps are taken: + i) Let O be this object + ii) Call ToString(V) + iii) If O doesn't have a property with the name given by Result(ii), return false + iv) If the property has the DontEnum attribute, return false + v) Return true +description: > + Argument of the propertyIsEnumerable method is a custom boolean + property +---*/ //CHECK#1 if (typeof Object.prototype.propertyIsEnumerable !== "function") { @@ -39,4 +40,3 @@ if (accum.indexOf("the_property")!==0) { $ERROR('#4: enumerating works properly'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js index 0e74d7a83..a6f340e67 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.propertyIsEnumerable has not prototype property - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A6.js - * @description Checking if obtaining the prototype property of Object.prototype.propertyIsEnumerable fails - */ +/*--- +info: Object.prototype.propertyIsEnumerable has not prototype property +description: > + Checking if obtaining the prototype property of + Object.prototype.propertyIsEnumerable fails +---*/ //CHECK#1 if (Object.prototype.propertyIsEnumerable.prototype !== undefined) { $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property'+Object.prototype.propertyIsEnumerable.prototype); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js index 6c0974bfd..cdb489f4b 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Object.prototype.propertyIsEnumerable can't be used as a constructor - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A7.js - * @description Checking if creating "new Object.prototype.propertyIsEnumerable" fails - */ +/*--- +info: Object.prototype.propertyIsEnumerable can't be used as a constructor +description: > + Checking if creating "new Object.prototype.propertyIsEnumerable" + fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var FACTORY = Object.prototype.propertyIsEnumerable; @@ -17,4 +20,3 @@ try { $PRINT(e); } - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js index e83f04365..1ab6aeb1a 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.propertyIsEnumerable.length property has the attribute DontEnum - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A8.js - * @description Checking if enumerating the Object.prototype.propertyIsEnumerable.length property fails - */ +/*--- +info: > + The Object.prototype.propertyIsEnumerable.length property has the + attribute DontEnum +description: > + Checking if enumerating the + Object.prototype.propertyIsEnumerable.length property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { @@ -25,4 +28,3 @@ for (p in Object.prototype.propertyIsEnumerable){ $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum'); } // - diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js index 139add613..136750e52 100644 --- a/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js +++ b/test/suite/ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The Object.prototype.propertyIsEnumerable.length property has the attribute DontDelete - * - * @path ch15/15.2/15.2.4/15.2.4.7/S15.2.4.7_A9.js - * @description Checking if deleting the Object.prototype.propertyIsEnumerable.length property fails - */ +/*--- +info: > + The Object.prototype.propertyIsEnumerable.length property has the + attribute DontDelete +description: > + Checking if deleting the + Object.prototype.propertyIsEnumerable.length property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { @@ -18,4 +21,3 @@ if (delete Object.prototype.propertyIsEnumerable.length) { $ERROR('#1: The Object.prototype.propertyIsEnumerable.length property has the attributes DontDelete'); } // - |