diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4/15.5.4.6')
19 files changed, 106 insertions, 142 deletions
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A10.js index aa6112d32..d9fbd26ba 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A10.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The String.prototype.concat.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A10.js - * @description Checking if varying the String.prototype.concat.length property fails - */ +/*--- +info: The String.prototype.concat.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.concat.length property + fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +27,3 @@ if (String.prototype.concat.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A11.js index d0a4b4401..1f17e5ea8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_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 concat method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A11.js - * @description Checking String.prototype.concat.length - */ +/*--- +info: The length property of the concat method is 1 +description: Checking String.prototype.concat.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.concat.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T1.js index bb6d8f785..e4d9d3584 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T1.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. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T1.js - * @description Arguments are false and true, and instance is object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: Arguments are false and true, and instance is object +---*/ var __instance = new Object(42); @@ -19,4 +17,3 @@ if (__instance.concat(false,true) !== "42falsetrue") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T10.js index e0c7a56ed..8338e5eb7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T10.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. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T10.js - * @description Call concat([,[...]]) function with object arguments - */ +/*--- +info: String.prototype.concat([,[...]]) +description: Call concat([,[...]]) function with object arguments +---*/ var __obj = {toString:function(){return "\u0041";}} var __obj2 = {toString:function(){return true;}} @@ -24,4 +22,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T2.js index bc5b6f965..e9a55e38a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T2.js - * @description Arguments are equation with false and true, and instance is Boolean object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: > + Arguments are equation with false and true, and instance is + Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +19,3 @@ if (__instance.concat("\u0041",true,true+1) !== "falseAtrue2") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T4.js index 6f2d37b1b..1d5e4274c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T4.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. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T4.js - * @description Call concat([,[...]]) function without argument of string object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: Call concat([,[...]]) function without argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if ("lego".concat() !== "lego") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T5.js index 31fa8ba2b..d607d6505 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T5.js - * @description Call concat([,[...]]) function with null argument of function object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: > + Call concat([,[...]]) function with null argument of function + object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (function(){return "lego"}().concat(null) !== "legonull") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T6.js index fbe70c6ab..babc7e3e0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T6.js - * @description Call concat([,[...]]) function with x argument of new String object, where x is undefined variable - */ +/*--- +info: String.prototype.concat([,[...]]) +description: > + Call concat([,[...]]) function with x argument of new String + object, where x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +18,3 @@ if (new String("lego").concat(x) !== "legoundefined") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T7.js index 9d6f30e01..5cf0d8371 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T7.js - * @description Call concat([,[...]]) function with undefined argument of string object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: > + Call concat([,[...]]) function with undefined argument of string + object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (String("lego").concat(undefined) !== "legoundefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T8.js index 96b703405..11dfc6474 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T8.js - * @description Call concat([,[...]]) function with void 0 argument of string object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: > + Call concat([,[...]]) function with void 0 argument of string + object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (String(42).concat(void 0) !== "42undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T9.js index ecde3e026..ad6562509 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat([,[...]]) - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A1_T9.js - * @description Call concat([,[...]]) function with function(){}() argument of string object - */ +/*--- +info: String.prototype.concat([,[...]]) +description: > + Call concat([,[...]]) function with function(){}() argument of + string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (new String(42).concat(function(){}()) !== "42undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A2.js index da3c06241..162d3d6e9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A2.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. -/** - * String.prototype.concat([,[...]]) can accept at least 128 - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A2.js - * @description Call concat([,[...]]) function with 128 arguments - */ +/*--- +info: String.prototype.concat([,[...]]) can accept at least 128 +description: Call concat([,[...]]) function with 128 arguments +---*/ var __instance = new Number(); @@ -28,6 +26,3 @@ if (__instance.concat( } // ////////////////////////////////////////////////////////////////////////////// - - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A3.js index 7f61e7520..3e40f3d3d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A3.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. -/** - * String.prototype.concat([,[...]]) can't change the instance to be applied - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A3.js - * @description Checking if varying the instance that is applied fails - */ +/*--- +info: String.prototype.concat([,[...]]) can't change the instance to be applied +description: Checking if varying the instance that is applied fails +---*/ var __instance = new String("one"); @@ -19,4 +17,3 @@ if (__instance != "one") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T1.js index d1d203452..4acde3862 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * when String.prototype.concat([,[...]]) is called first Call ToString, giving it the this value as its argument - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T1.js - * @description Override toString function - */ +/*--- +info: > + when String.prototype.concat([,[...]]) is called first Call ToString, + giving it the this value as its argument +description: Override toString function +---*/ var __instance = {toString:function(){return "one"}}; @@ -21,6 +21,3 @@ if (__instance.concat("two",x) !== "onetwoundefined") { ////////////////////////////////////////////////////////////////////////////// var x; - - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T2.js index db3dc169c..87aa25567 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * when String.prototype.concat([,[...]]) is called first Call ToString, giving it the this value as its argument - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A4_T2.js - * @description Override toString function onto function, that throw exception - */ +/*--- +info: > + when String.prototype.concat([,[...]]) is called first Call ToString, + giving it the this value as its argument +description: Override toString function onto function, that throw exception +includes: [$FAIL.js] +---*/ var __instance = {toString:function(){throw "intostring";}}; var __obj = {toString:function(){throw "infirstarg";}}; @@ -27,7 +28,3 @@ try { ////////////////////////////////////////////////////////////////////////////// var notexist; - - - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A6.js index 23a4bcdb9..7803cae0c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A6.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. -/** - * String.prototype.concat has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A6.js - * @description Checking String.prototype.concat.prototype - */ +/*--- +info: String.prototype.concat has not prototype property +description: Checking String.prototype.concat.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.concat.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js index 62267a230..9fea9992f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js @@ -1,19 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.concat can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A7.js - * @description Checking if creating the String.prototype.concat object fails - */ +/*--- +info: String.prototype.concat can't be used as constructor +description: Checking if creating the String.prototype.concat object fails +includes: + - $FAIL.js + - Test262Error.js +---*/ var __FACTORY = String.prototype.concat; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception');
-} catch (e) {
+ $FAIL('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A8.js index 48db4fe12..abdd06da0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The String.prototype.concat.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A8.js - * @description Checking if enumerating the String.prototype.concat.length property fails - */ +/*--- +info: The String.prototype.concat.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.concat.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +39,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A9.js index 38b441520..baeb50094 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A9.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The String.prototype.concat.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.6/S15.5.4.6_A9.js - * @description Checking if deleting the String.prototype.concat.length property fails - */ +/*--- +info: The String.prototype.concat.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.concat.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.concat.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - |