diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4')
641 files changed, 5564 insertions, 6169 deletions
diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A10.js index 12ed351f1..44fe65c26 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A10.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.match.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A10.js - * @description Checking if varying the String.prototype.match.length property fails - */ +/*--- +info: The String.prototype.match.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.match.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.match.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A11.js index 00a77b454..f776175a8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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 match method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A11.js - * @description Checking String.prototype.match.length - */ +/*--- +info: The length property of the match method is 1 +description: Checking String.prototype.match.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.match.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T1.js index 03ce88418..f47e35fe5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T1.js - * @description Arguments is true, and instance is object - */ +/*--- +info: String.prototype.match (regexp) +description: Arguments is true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.match(true)[0] !== "true") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T10.js index 652eac85b..0ea4ba2f1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T10.js - * @description Call match (regexp) function with object argument - */ +/*--- +info: String.prototype.match (regexp) +description: Call match (regexp) function with object argument +---*/ var __obj = {toString:function(){return "\u0041B";}} var __str = "ABB\u0041BABAB"; @@ -22,4 +20,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T11.js index 6da4ccc6d..e024bed54 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T11.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. -/** - * String.prototype.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T11.js - * @description Override toString function, toString throw exception, then call match (regexp) function with this object as argument - */ +/*--- +info: String.prototype.match (regexp) +description: > + Override toString function, toString throw exception, then call + match (regexp) function with this object as argument +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}} var __str = {str__:"ABB\u0041BABAB"}; @@ -27,4 +28,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T12.js index dd30ec677..76e6a631c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T12.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. -/** - * String.prototype.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T12.js - * @description Override toString and valueOf functions, valueOf throw exception, then call match (regexp) function with this object as argument - */ +/*--- +info: String.prototype.match (regexp) +description: > + Override toString and valueOf functions, valueOf throw exception, + then call match (regexp) function with this object as argument +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} var __str = new String("ABB\u0041BABAB"); @@ -25,4 +26,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T13.js index dd5c41bde..0f0d2e7e5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T13.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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T13.js - * @description Override toString and valueOf functions, then call match (regexp) function with this object as argument - */ +/*--- +info: String.prototype.match (regexp) +description: > + Override toString and valueOf functions, then call match (regexp) + function with this object as argument +---*/ var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} @@ -25,4 +25,3 @@ if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T14.js index 71dc0ec39..c61bd349c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T14.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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T14.js - * @description Call match (regexp) function with RegExp object as argument from string - */ +/*--- +info: String.prototype.match (regexp) +description: > + Call match (regexp) function with RegExp object as argument from + string +---*/ var __reg = new RegExp("77"); @@ -17,4 +17,3 @@ if ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0] !== "77") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T2.js index c586d46ca..19158f911 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T2.js - * @description Argument is function that return boolean, and instance is Boolean object - */ +/*--- +info: String.prototype.match (regexp) +description: > + Argument is function that return boolean, and instance is Boolean + object +---*/ var __instance = new Boolean; @@ -19,4 +19,3 @@ if (__instance.match(function(){return false;}())[0] !== "false") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T3.js index 6eb2ff4b9..4f310fed0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T3.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T3.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.match (regexp) +description: Checking by using eval +includes: [fnGlobalObject.js] +---*/ var match = String.prototype.match.bind(fnGlobalObject()); @@ -22,4 +21,3 @@ if ((fnGlobalObject().toString === Object.prototype.toString) && //Ensure we co } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T4.js index 9d0dc15cb..d122aff5f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T4.js - * @description Call match (regexp) function without arguments of string - */ +/*--- +info: String.prototype.match (regexp) +description: Call match (regexp) function without arguments of string +---*/ var __matched = "".match(); @@ -45,4 +43,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T5.js index 335857cde..cd973bd91 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T5.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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T5.js - * @description Call match (regexp) function with null argument of function object - */ +/*--- +info: String.prototype.match (regexp) +description: Call match (regexp) function with null argument of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "gnulluna"}().match(null)[0] !== "null") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T6.js index d7d1f45cd..5c7fcb6f1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T6.js - * @description Call match (regexp) function with x argument of new String object, where x is undefined variable - */ +/*--- +info: String.prototype.match (regexp) +description: > + Call match (regexp) function with x argument of new String object, + where x is undefined variable +---*/ var __matched = new String("undefined").match(x); @@ -47,5 +47,3 @@ for(var index=0; index<__expected.length; index++) { ////////////////////////////////////////////////////////////////////////////// var x; - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T7.js index 399a988c3..bd421a573 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T7.js - * @description Call match (regexp) function with undefined argument of string object - */ +/*--- +info: String.prototype.match (regexp) +description: > + Call match (regexp) function with undefined argument of string + object +---*/ var __matched = String("undefined").match(undefined); @@ -45,4 +45,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T8.js index 5876065c4..17dcfbec3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T8.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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T8.js - * @description Call match (regexp) function with void 0 argument of string object; - */ +/*--- +info: String.prototype.match (regexp) +description: Call match (regexp) function with void 0 argument of string object; +---*/ var __obj = {toString:function(){}}; @@ -47,4 +45,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T9.js index 11e81534e..8dafdbdb0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A1_T9.js - * @description Call match (regexp) function with function(){}() argument of string object - */ +/*--- +info: String.prototype.match (regexp) +description: > + Call match (regexp) function with function(){}() argument of + string object +---*/ var __obj = { valueOf:function(){}, @@ -50,4 +50,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T1.js index cad2cf057..d2e38e793 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T1.js - * @description Regular expression is 3 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is 3 +---*/ var __string = "1234567890"; @@ -41,4 +39,3 @@ if (__string.match(3).input !==__string) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T10.js index 20657116d..571f6cb61 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T10.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T10.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is undefined. - * And regular expression object have property lastIndex = tested_string.lastIndexOf("0") - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is + undefined. And regular expression object have property lastIndex + = tested_string.lastIndexOf("0") +---*/ var __string = "Boston, MA 02134"; @@ -42,4 +42,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T11.js index 4ac24f9d5..b3a6a235b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T11.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T11.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is undefined. - * And regular expression object have property lastIndex = tested_string.lastIndexOf("0")+1 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is + undefined. And regular expression object have property lastIndex + = tested_string.lastIndexOf("0")+1 +---*/ var __string = "Boston, MA 02134"; @@ -42,4 +42,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T12.js index c87fc900b..22f3fe58b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T12.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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T12.js - * @description Regular expression is variable that have value /([\d]{5})([-\ ]?[\d]{4})?$/g - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is variable that have value /([\d]{5})([-\ + ]?[\d]{4})?$/g +---*/ var __matches=["02134"]; @@ -29,4 +29,3 @@ if (__string.match(__re)[0]!==__matches[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T13.js index 6c081dc4a..347c68a5b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T13.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T13.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g. - * And regular expression object have property lastIndex = 0 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g. And regular + expression object have property lastIndex = 0 +---*/ var __matches=["02134"]; @@ -31,4 +30,3 @@ if (__string.match(__re)[0]!==__matches[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T14.js index b3a64230d..3bfc3c487 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T14.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T14.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g. - * And regular expression object have property lastIndex = tested_string.length - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g. And regular + expression object have property lastIndex = tested_string.length +---*/ var __string = "Boston, MA 02134"; @@ -32,4 +31,3 @@ if (__string.match(__re)[0]!==__matches[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T15.js index 1de89816f..5517cdf7c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T15.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T15.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. - * And regular expression object have property lastIndex = tested_string.lastIndexOf("0") - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. And regular + expression object have property lastIndex = + tested_string.lastIndexOf("0") +---*/ var __string = "Boston, MA 02134"; @@ -32,4 +32,3 @@ if (__string.match(__re)[0]!==__matches[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T16.js index b0288c843..573412b82 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T16.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T16.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. - * And regular expression object have property lastIndex = tested_string.lastIndexOf("0")+1 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. And regular + expression object have property lastIndex = + tested_string.lastIndexOf("0")+1 +---*/ var __string = "Boston, MA 02134"; @@ -32,4 +32,3 @@ if (__string.match(__re)[0]!==__matches[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T17.js index fcc582867..faa9cea11 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T17.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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T17.js - * @description Regular expression is /0./ - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is /0./ +---*/ var __re = /0./; @@ -47,4 +45,3 @@ if (__num.match(__re).input !==String(__num)) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T18.js index 56b4b77e8..2c8e0e516 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T18.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T18.js - * @description Regular expression is /0./. - * And regular expression object have property lastIndex = 0 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /0./. And regular expression object have + property lastIndex = 0 +---*/ var __re = /0./; @@ -48,4 +47,3 @@ if (__num.match(__re).input !==String(__num)) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T2.js index 079ef838c..0d9d923e7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T2.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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T2.js - * @description Regular expression is /34/g - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is /34/g +---*/ var __matches=["34","34","34"]; @@ -29,4 +27,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T3.js index 8c0860ec8..c1a7d236b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T3.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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T3.js - * @description Regular expression is /\d{1}/g - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is /\d{1}/g +---*/ var __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; @@ -29,4 +27,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T4.js index bb3d613f1..b823bbc1b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T4.js - * @description Regular expression is /\d{2}/g - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is /\d{2}/g +---*/ var __matches=["12", "34", "56", "78", "90"]; @@ -29,4 +27,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T5.js index a454c7917..5d407a972 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T5.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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T5.js - * @description Regular expression is /\D{2}/g - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is /\D{2}/g +---*/ var __matches=["ab", "cd"]; @@ -29,4 +27,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T6.js index c6fb397c3..28740ff19 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T6.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is void 0 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is + void 0 +---*/ var __string = "Boston, Mass. 02134"; @@ -57,4 +57,3 @@ if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !==__string) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T7.js index 9dbf84f10..d9779e093 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T7.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. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T7.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g +---*/ var __matches=["02134"]; @@ -27,4 +25,3 @@ if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]!==__matches[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T8.js index 310063426..64b337af6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T8.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T8.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is undefined. - * And regular expression object have property lastIndex = 0 - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is + undefined. And regular expression object have property lastIndex + = 0 +---*/ var __matches=["02134", "02134", undefined]; @@ -41,4 +41,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T9.js index 17dd188a7..71b6b9ca8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T9.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * match returns array as specified in 15.10.6.2 - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A2_T9.js - * @description Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is undefined. - * And regular expression object have property lastIndex = tested_string.length - */ +/*--- +info: match returns array as specified in 15.10.6.2 +description: > + Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/. Last match is + undefined. And regular expression object have property lastIndex + = tested_string.length +---*/ var __string = "Boston, MA 02134"; @@ -42,4 +42,3 @@ for(var mi=0; mi<__matches.length; mi++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A6.js index bfcb23d20..bbec43e2d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A6.js - * @description Checking String.prototype.match.prototype - */ +/*--- +info: String.prototype.match has not prototype property +description: Checking String.prototype.match.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.match.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js index 11b66aabb..b2e532010 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A7.js - * @description Checking if creating "String.prototype.match object" fails - */ +/*--- +info: String.prototype.match can't be used as constructor +description: Checking if creating "String.prototype.match object" fails +includes: + - $FAIL.js + - Test262Error.js +---*/ var __FACTORY = String.prototype.match; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception');
-} catch (e) {
+ $FAIL('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A8.js index 733112233..7ef62c7e7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A8.js - * @description Checking if enumerating the String.prototype.match.length property fails - */ +/*--- +info: The String.prototype.match.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.match.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.10/S15.5.4.10_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A9.js index 2f057d4b0..710c1ea79 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_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.match.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.10/S15.5.4.10_A9.js - * @description Checking if deleting the String.prototype.match.length property fails - */ +/*--- +info: The String.prototype.match.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.match.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.match.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/15.5.4.11-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/15.5.4.11-1.js index 861815b1d..6991cd299 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/15.5.4.11-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/15.5.4.11-1.js @@ -1,25 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.11/15.5.4.11-1.js
- * @description 'this' object used by the replaceValue function of a String.prototype.replace invocation
- */
-
-
-
-
-function testcase() {
- var retVal = 'x'.replace(/x/,
- function() {
- if (this===fnGlobalObject()) {
- return 'y';
- } else {
- return 'z';
- }
- });
- return retVal==='y';
-}
-runTestCase(testcase);
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + 'this' object used by the replaceValue function of a + String.prototype.replace invocation +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { + var retVal = 'x'.replace(/x/, + function() { + if (this===fnGlobalObject()) { + return 'y'; + } else { + return 'z'; + } + }); + return retVal==='y'; +} +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A10.js index fd690fde5..e0486ebe1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A10.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.replace.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A10.js - * @description Checking if varying the String.prototype.replace.length property fails - */ +/*--- +info: The String.prototype.replace.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.replace.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.replace.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A11.js index 9dfc6b0ab..cfe824030 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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 replace method is 2 - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A11.js - * @description Checking String.prototype.replace.length - */ +/*--- +info: The length property of the replace method is 2 +description: Checking String.prototype.replace.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.replace.length !== 2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A12.js index bc49e9f72..e38c443a3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A12.js @@ -1,13 +1,12 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Call replaceValue passing undefined as the this value - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A12.js - * @description replaceValue tests that its this value is undefined - * @onlyStrict - */ +/*--- +info: Call replaceValue passing undefined as the this value +description: replaceValue tests that its this value is undefined +flags: [onlyStrict] +includes: [$FAIL.js] +---*/ var global = this; 'x'.replace(/x/, function() { @@ -22,4 +21,3 @@ var global = this; } return 'y'; }); - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T1.js index 3d6dc48d8..c19aa065a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T1.js - * @description Arguments are true and 1, and instance is object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: Arguments are true and 1, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.replace(true, 1) !== "1") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T10.js index 883af3105..8fe836042 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T10.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. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T10.js - * @description Call replace (searchValue, replaceValue) function with object and function arguments of string. Object have overrided toString function - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with object and + function arguments of string. Object have overrided toString + function +---*/ var __obj = {toString:function(){return "\u0041B";}}; @@ -23,4 +24,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T11.js index 0916d41df..195494eb9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T11.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. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T11.js - * @description Call replace (searchValue, replaceValue) function with objects arguments of string object. Objects have overrided toString function, that throw exception - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with objects + arguments of string object. Objects have overrided toString + function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "insearchValue";}}; var __obj2 = {toString:function(){throw "inreplaceValue";}}; @@ -28,4 +30,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T12.js index f4f109baf..ee38725fa 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T12.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T12.js - * @description Call replace (searchValue, replaceValue) function with objects arguments of String object. - * First objects have overrided toString and valueOf functions, valueOf throw exception. - * Second objects have overrided toString function, that throw exception - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with objects + arguments of String object. First objects have overrided toString + and valueOf functions, valueOf throw exception. Second objects + have overrided toString function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};}, valueOf:function(){throw "insearchValue";}}; var __obj2 = {toString:function(){throw "inreplaceValue";}}; @@ -28,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T13.js index d42fcd52c..548853591 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T13.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T13.js - * @description Call replace (searchValue, replaceValue) function with objects arguments of string. - * First objects have overrided toString and valueOf functions. - * Second objects have overrided toString function, that throw exception - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with objects + arguments of string. First objects have overrided toString and + valueOf functions. Second objects have overrided toString + function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};}, valueOf:function(){return 1;}}; var __obj2 = {toString:function(){throw "inreplaceValue";}}; @@ -25,5 +26,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T14.js index f715c3a8c..da2f5b08f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T14.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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T14.js - * @description Instance is string, searchValue is regular expression - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: Instance is string, searchValue is regular expression +---*/ var __reg = new RegExp("77"); @@ -17,4 +15,3 @@ if ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1) !== "ABBABABAB\u0031BBAA" } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T15.js index 36dc58c8e..99baff069 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T15.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T15.js - * @description Instance is Object, searchValue is regular expression - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: Instance is Object, searchValue is regular expression +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return /77/}}; @@ -26,4 +25,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T16.js index b1b818f10..c3fb077f3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T16.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T16.js - * @description Instance is Number, searchValue is regular expression - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: Instance is Number, searchValue is regular expression +includes: [$FAIL.js] +---*/ var __re = /77/; @@ -30,4 +29,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T17.js index 954030870..03545d5be 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T17.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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T17.js - * @description Instance is String object, searchValue is regular expression - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: Instance is String object, searchValue is regular expression +---*/ var __re = new RegExp(x,"g"); @@ -22,4 +20,3 @@ if (__instance.replace(__re, __str) !== "1a1s1d1f1") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T2.js index 05106a5e3..0d799f18b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T2.js - * @description Argument is function that return boolean, and instance is Boolean object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Argument is function that return boolean, and instance is Boolean + object +---*/ var __instance = new Boolean; @@ -21,4 +21,3 @@ if (__instance.replace(function(){return false;}(),x) !== "undefined") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T4.js index db27d626c..47f1344a3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T4.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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T4.js - * @description Call replace (searchValue, replaceValue) function with null and function(a1,a2,a3){return a2+"";} arguments of function object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with null and + function(a1,a2,a3){return a2+"";} arguments of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if (function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"" } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T5.js index 4529aca01..7f21f2427 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T5.js - * @description Call replace (searchValue, replaceValue) function with null and Function() arguments of function object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with null and + Function() arguments of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if (function(){return "gnulluna"}().replace(null, Function()) !== "gundefineduna } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T6.js index 53e1035ed..80ecee013 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T6.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. -/** - * String.prototype.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T6.js - * @description Call replace (searchValue, replaceValue) function with x and Function("return arguments[1]+42;") arguments of new String object. x is undefined variable - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with x and + Function("return arguments[1]+42;") arguments of new String + object. x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -17,4 +18,3 @@ if (new String("undefined").replace(x,Function("return arguments[1]+42;")) !== " ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T7.js index 523fe251d..c7327ff07 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T7.js - * @description Call replace (searchValue, replaceValue) function with string and undefined arguments of String object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with string and + undefined arguments of String object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if (String(void 0).replace("e",undefined) !== "undundefinedfined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T8.js index 0ec4f5112..7cba92912 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T8.js - * @description Call replace (searchValue, replaceValue) function with regular expression and void 0 arguments of String object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with regular + expression and void 0 arguments of String object +---*/ var __obj = {toString:function(){}}; @@ -17,4 +17,3 @@ if (String(__obj).replace(/e/g,void 0) !== "undundefinedfinundefinedd") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T9.js index 04c32b517..184890eec 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace (searchValue, replaceValue) - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T9.js - * @description Call replace (searchValue, replaceValue) function with functions arguments of new String object - */ +/*--- +info: String.prototype.replace (searchValue, replaceValue) +description: > + Call replace (searchValue, replaceValue) function with functions + arguments of new String object +---*/ var __obj = { valueOf:function(){}, @@ -22,4 +22,3 @@ if (new String(__obj).replace(function(){}(),__func) !== "undefined0undefined") ////////////////////////////////////////////////////////////////////////////// function __func(a1,a2,a3){return a1+a2+a3;}; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T1.js index b6d706ce4..ac124314e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T1.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T1.js - * @description Don`t use $ in replaceValue, searchValue is regular expression /sh/g - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: > + Don`t use $ in replaceValue, searchValue is regular expression + /sh/g +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/g; @@ -19,4 +20,3 @@ if (__str.replace(__re,'sch')!=='She sells seaschells by the seaschore.') { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T10.js index 975150196..a985f6cac 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T10.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T10.js - * @description Use $' in replaceValue, searchValue is regular expression /sh/ - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $' in replaceValue, searchValue is regular expression /sh/ +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/; @@ -19,4 +18,3 @@ if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schel } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T2.js index e55216da0..c1a7bbb2b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T2.js - * @description Use $$ in replaceValue, searchValue is regular expression /sh/g - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $$ in replaceValue, searchValue is regular expression /sh/g +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/g; @@ -19,4 +18,3 @@ if (__str.replace(__re,"$$" + 'sch')!=='She sells sea$schells by the sea$schore. } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T3.js index 7570c6a2c..10ee8b19a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T3.js - * @description Use $& in replaceValue, searchValue is regular expression /sh/g - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $& in replaceValue, searchValue is regular expression /sh/g +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/g; @@ -19,4 +18,3 @@ if (__str.replace(__re,"$&" + 'sch')!=='She sells seashschells by the seashschor } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T4.js index eb1a58ac8..52104da73 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T4.js - * @description Use $` in replaceValue, searchValue is regular expression /sh/g - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $` in replaceValue, searchValue is regular expression /sh/g +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/g; @@ -19,4 +18,3 @@ if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by th } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T5.js index eb283fe7f..3715835f5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T5.js - * @description Use $' in replaceValue, searchValue is regular expression /sh/g - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $' in replaceValue, searchValue is regular expression /sh/g +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/g; @@ -19,4 +18,3 @@ if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schel } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T6.js index 483eb10ee..45d8f2099 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T6.js - * @description Don`t use $ in replaceValue, searchValue is regular expression /sh/ - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Don`t use $ in replaceValue, searchValue is regular expression /sh/ +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/; @@ -19,4 +18,3 @@ if (__str.replace(__re, 'sch')!=='She sells seaschells by the seashore.') { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T7.js index 2dadba861..3ac73c354 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T7.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T7.js - * @description Use $$ in replaceValue, searchValue is regular expression /sh/ - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $$ in replaceValue, searchValue is regular expression /sh/ +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/; @@ -19,4 +18,3 @@ if (__str.replace(__re, "$$" + 'sch')!=='She sells sea$schells by the seashore.' } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T8.js index 0ba635ec3..3725b5f88 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T8.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T8.js - * @description Use $& in replaceValue, searchValue is regular expression /sh/ - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $& in replaceValue, searchValue is regular expression /sh/ +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/; @@ -19,4 +18,3 @@ if (__str.replace(__re, "$&" + 'sch')!=='She sells seashschells by the seashore. } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T9.js index 271ceb491..8207bd589 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T9.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The $ replacements are done left-to-right, and, once such are placement is performed, the new - * replacement text is not subject to further replacements - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A2_T9.js - * @description Use $` in replaceValue, searchValue is regular expression /sh/ - */ +/*--- +info: > + The $ replacements are done left-to-right, and, once such are placement is performed, the new + replacement text is not subject to further replacements +description: Use $` in replaceValue, searchValue is regular expression /sh/ +---*/ var __str = 'She sells seashells by the seashore.'; var __re = /sh/; @@ -19,4 +18,3 @@ if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by th } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T1.js index 355a962b8..4b26078df 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_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. -/** - * replace with regexp /(uid=)(\d+)/ returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T1.js - * @description replaceValue is "$11" + 15 - */ +/*--- +info: replace with regexp /(uid=)(\d+)/ returns +description: replaceValue is "$11" + 15 +---*/ var __str = 'uid=31'; var __re = /(uid=)(\d+)/; @@ -18,4 +16,3 @@ if (__str.replace(__re, "$11" + 15)!=='uid=115') { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T2.js index f03d3cccf..0d5c81ead 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T2.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. -/** - * replace with regexp /(uid=)(\d+)/ returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T2.js - * @description replaceValue is "$11" + '15' - */ +/*--- +info: replace with regexp /(uid=)(\d+)/ returns +description: replaceValue is "$11" + '15' +---*/ var __str = 'uid=31'; var __re = /(uid=)(\d+)/; @@ -18,4 +16,3 @@ if (__str.replace(__re, "$11" + '15')!=='uid=115') { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T3.js index e5da61e48..f81168ac3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T3.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. -/** - * replace with regexp /(uid=)(\d+)/ returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A3_T3.js - * @description replaceValue is "$11" + 'A15' - */ +/*--- +info: replace with regexp /(uid=)(\d+)/ returns +description: replaceValue is "$11" + 'A15' +---*/ var __str = 'uid=31'; var __re = /(uid=)(\d+)/; @@ -18,4 +16,3 @@ if (__str.replace(__re, "$11" + 'A15')!=='uid=1A15' ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T1.js index 989bb7f56..24e3e1131 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_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. -/** - * replace with regexp /([a-z]+)([0-9]+)/ and replace function returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T1.js - * @description searchValue is /([a-z]+)([0-9]+)/ - */ +/*--- +info: replace with regexp /([a-z]+)([0-9]+)/ and replace function returns +description: searchValue is /([a-z]+)([0-9]+)/ +---*/ var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; @@ -22,4 +20,3 @@ if (__str.replace(__pattern, __replFN)!=='12abc def34') { function __replFN() { return arguments[2] + arguments[1]; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T2.js index 956a7c0e1..e92457087 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T2.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. -/** - * replace with regexp /([a-z]+)([0-9]+)/ and replace function returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T2.js - * @description searchValue is /([a-z]+)([0-9]+)/g - */ +/*--- +info: replace with regexp /([a-z]+)([0-9]+)/ and replace function returns +description: searchValue is /([a-z]+)([0-9]+)/g +---*/ var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; @@ -22,4 +20,3 @@ if (__str.replace(__pattern, __replFN)!=='12abc 34def') { function __replFN() { return arguments[2] + arguments[1]; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T3.js index 8eea7fe4b..9fece58f8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T3.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. -/** - * replace with regexp /([a-z]+)([0-9]+)/ and replace function returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T3.js - * @description searchValue is /([a-z]+)([0-9]+)/i - */ +/*--- +info: replace with regexp /([a-z]+)([0-9]+)/ and replace function returns +description: searchValue is /([a-z]+)([0-9]+)/i +---*/ var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; @@ -22,4 +20,3 @@ if (__str.replace(__pattern, __replFN)!=='12aBc def34') { function __replFN() { return arguments[2] + arguments[1]; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T4.js index 70b421037..41e9f7a03 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_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. -/** - * replace with regexp /([a-z]+)([0-9]+)/ and replace function returns - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A4_T4.js - * @description searchValue is /([a-z]+)([0-9]+)/ig - */ +/*--- +info: replace with regexp /([a-z]+)([0-9]+)/ and replace function returns +description: searchValue is /([a-z]+)([0-9]+)/ig +---*/ var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; @@ -22,4 +20,3 @@ if (__str.replace(__pattern, __replFN)!=='12aBc 34dEf') { function __replFN() { return arguments[2] + arguments[1]; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A5_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A5_T1.js index 917b9a68f..e4268138a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A5_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A5_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. -/** - * Use replace with regexp as searchValue and use $ in replaceValue - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A5_T1.js - * @description searchValue is regexp /^(a+)\1*,\1+$/ and replaceValue is "$1" - */ +/*--- +info: Use replace with regexp as searchValue and use $ in replaceValue +description: searchValue is regexp /^(a+)\1*,\1+$/ and replaceValue is "$1" +---*/ var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\1*,\1+$/; @@ -19,4 +17,3 @@ if (__str.replace(__pattern, __repl)!=='aaaaa') { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A6.js index dc1d5acd1..6f13f25bd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A6.js - * @description Checking String.prototype.replace.prototype; - */ +/*--- +info: String.prototype.replace has not prototype property +description: Checking String.prototype.replace.prototype; +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.replace.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js index 987862d13..c72f1f9da 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A7.js - * @description Checking if creating the String.prototype.replace object fails - */ +/*--- +info: String.prototype.replace can't be used as constructor +description: Checking if creating the String.prototype.replace object fails +includes: + - $FAIL.js + - Test262Error.js +---*/ var __FACTORY = String.prototype.replace; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception');
-} catch (e) {
+ $FAIL('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A8.js index 692e4b0a2..2da8a3d0b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A8.js - * @description Checking if enumerating the String.prototype.replace.length property fails - */ +/*--- +info: The String.prototype.replace.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.replace.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.11/S15.5.4.11_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A9.js index d594e357d..827a7c0ba 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_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.replace.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A9.js - * @description Checking if deleting the String.prototype.replace.length property fails - */ +/*--- +info: The String.prototype.replace.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.replace.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.replace.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1.1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1.1_T1.js index cdfb5e6ae..201045b85 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1.1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1.1_T1.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. -/** - * String.prototype.search (regexp) without arguments behaves like with argument "undefined" - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1.1_T1.js - * @description Call search() is the same search(undefined) - */ +/*--- +info: > + String.prototype.search (regexp) without arguments behaves like with + argument "undefined" +description: Call search() is the same search(undefined) +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 var x = "".search(); // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A10.js index f7a5c751a..02db17b16 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A10.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.search.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A10.js - * @description Checking if varying the String.prototype.search.length property fails - */ +/*--- +info: The String.prototype.search.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.search.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.search.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A11.js index ea0000ae2..285f975d0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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 search method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A11.js - * @description Checking String.prototype.search.length - */ +/*--- +info: The length property of the search method is 1 +description: Checking String.prototype.search.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.search.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T1.js index 20b98c292..43be4f93d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T1.js - * @description Argument is true, and instance is object - */ +/*--- +info: String.prototype.search (regexp) +description: Argument is true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.search(true) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T10.js index f4ebbb3e9..827b4d21c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T10.js @@ -1,13 +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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T10.js - * @description Argument is object, and instance is string. - * Object with overrided toString function - */ +/*--- +info: String.prototype.search (regexp) +description: > + Argument is object, and instance is string. Object with overrided + toString function +---*/ var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; @@ -23,4 +22,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T11.js index 73d9777e4..0800ade36 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T11.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T11.js - * @description Argument is object, and instance is string. - * Object with overrided toString function, that throw exception - */ +/*--- +info: String.prototype.search (regexp) +description: > + Argument is object, and instance is string. Object with overrided + toString function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}} var __str = {str__:"ABB\u0041BABAB"}; @@ -28,4 +28,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T12.js index 29f288aa8..5c2c611a7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T12.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T12.js - * @description Argument is object, and instance is string. - * Object with overrided toString and valueOf functions, valueOf throw exception - */ +/*--- +info: String.prototype.search (regexp) +description: > + Argument is object, and instance is string. Object with overrided + toString and valueOf functions, valueOf throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} var __str = new String("ABB\u0041BABAB"); @@ -26,4 +26,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T13.js index 0eec2d1c2..7aa5f37b9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T13.js @@ -1,13 +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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T13.js - * @description Argument is object, and instance is string. - * Object with overrided toString and valueOf functions - */ +/*--- +info: String.prototype.search (regexp) +description: > + Argument is object, and instance is string. Object with overrided + toString and valueOf functions +---*/ var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} @@ -18,4 +17,3 @@ if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !==5) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T14.js index 64168457b..8b99fe92a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T14.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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T14.js - * @description Instance is string, argument is regular expression - */ +/*--- +info: String.prototype.search (regexp) +description: Instance is string, argument is regular expression +---*/ var __reg = new RegExp("77"); @@ -17,4 +15,3 @@ if ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg) !== 9) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T2.js index 8653f5a94..9396b9582 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T2.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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T2.js - * @description Argument is function call, and instance is Boolean - */ +/*--- +info: String.prototype.search (regexp) +description: Argument is function call, and instance is Boolean +---*/ var __instance = new Boolean; @@ -19,4 +17,3 @@ if (__instance.search(function(){return false;}()) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T4.js index e2ef99bb5..19d59138f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T4.js - * @description Call search (regexp) without arguments - */ +/*--- +info: String.prototype.search (regexp) +description: Call search (regexp) without arguments +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -20,4 +18,3 @@ if ("--undefined--".search() != 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T5.js index bde78afc7..9ce136770 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T5.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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T5.js - * @description Argument is null, and instance is function call, that return string - */ +/*--- +info: String.prototype.search (regexp) +description: Argument is null, and instance is function call, that return string +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "gnulluna"}().search(null) !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T6.js index 6a2c5c8d6..222cae5e7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T6.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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T6.js - * @description Argument is x, and instance is new String, x is undefined variable - */ +/*--- +info: String.prototype.search (regexp) +description: Argument is x, and instance is new String, x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +16,3 @@ if (new String("undefined").search(x) !== 0) { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T7.js index adcd59886..94883bd93 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T7.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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T7.js - * @description Argument is undefined, and instance is new String - */ +/*--- +info: String.prototype.search (regexp) +description: Argument is undefined, and instance is new String +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (String("undefined").search(undefined) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T8.js index da29abd7b..13255ad07 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T8.js - * @description Argument is void 0, and instance is String object with overrided toString function - */ +/*--- +info: String.prototype.search (regexp) +description: > + Argument is void 0, and instance is String object with overrided + toString function +---*/ var __obj = {toString:function(){}}; @@ -18,4 +18,3 @@ if (String(__obj).search(void 0) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T9.js index 2148c921a..c8c4a363f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search (regexp) - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A1_T9.js - * @description Argument is function call, and instance is String object with overrided toString and valueOf functions - */ +/*--- +info: String.prototype.search (regexp) +description: > + Argument is function call, and instance is String object with + overrided toString and valueOf functions +---*/ var __obj = { valueOf:function(){}, @@ -21,4 +21,3 @@ if (new String(__obj).search(function(){}()) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T1.js index 5c8b29555..d698c8f4d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T1.js - * @description Simple search substring inside string - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: Simple search substring inside string +---*/ var aString = new String("test string"); @@ -17,4 +15,3 @@ if (aString.search("string")!== 5) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T2.js index 0e6bea24e..92edc8f81 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T2.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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T2.js - * @description Checking case sensitive of search, argument is string - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: Checking case sensitive of search, argument is string +---*/ var aString = new String("test string"); @@ -17,4 +15,3 @@ if (aString.search("String")!== -1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T3.js index c60edaa47..c0bac6a8c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T3.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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T3.js - * @description Checking disabling of case sensitive of search, argument is RegExp - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: Checking disabling of case sensitive of search, argument is RegExp +---*/ var aString = new String("test string"); @@ -17,4 +15,3 @@ if (aString.search(/String/i)!== 5) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T4.js index 5d441d68e..ef6f9e7b7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T4.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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T4.js - * @description Checking case sensitive of search, argument is RegExp with uppercase symbols - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: > + Checking case sensitive of search, argument is RegExp with + uppercase symbols +---*/ var bString = new String("one two three four five"); var regExp = /Four/; @@ -18,4 +18,3 @@ if (bString.search(regExp)!== -1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T5.js index 7592416f5..d3fb06c5a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T5.js - * @description Checking case sensitive of search, argument is RegExp without uppercase symbols - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: > + Checking case sensitive of search, argument is RegExp without + uppercase symbols +---*/ var bString = new String("one two three four five"); var regExp = /four/; @@ -18,4 +18,3 @@ if (bString.search(regExp)!== 14) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T6.js index 340a555d2..50b7eb36e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T6.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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T6.js - * @description Searching the non-existent "notexist" substring - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: Searching the non-existent "notexist" substring +---*/ var aString = new String("test string"); @@ -17,4 +15,3 @@ if (aString.search("notexist")!== -1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T7.js index 505ef416d..b4623e7e0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T7.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.search (regexp) returns ... - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A2_T7.js - * @description Simple search sentence inside string - */ +/*--- +info: String.prototype.search (regexp) returns ... +description: Simple search sentence inside string +---*/ var aString = new String("test string probe"); @@ -17,4 +15,3 @@ if (aString.search("string pro")!== 5) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T1.js index 8ee2ccba9..139601023 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_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. -/** - * String.prototype.search (regexp) ignores global properties of regexp - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T1.js - * @description Checking results of search regexp with and without global properties - */ +/*--- +info: String.prototype.search (regexp) ignores global properties of regexp +description: > + Checking results of search regexp with and without global + properties +---*/ var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); @@ -17,4 +17,3 @@ if (aString.search(/the/)!== aString.search(/the/g)) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T2.js index 8b43a2afe..cae9f24bb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_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.search (regexp) ignores global properties of regexp - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A3_T2.js - * @description Checking results of search regexp with and without global properties. Unicode symbols used - */ +/*--- +info: String.prototype.search (regexp) ignores global properties of regexp +description: > + Checking results of search regexp with and without global + properties. Unicode symbols used +---*/ var aString = new String("power \u006F\u0066 the power of the power \u006F\u0066 the power of the power \u006F\u0066 the power of the great sword"); @@ -17,4 +17,3 @@ if (aString.search(/of/)!== aString.search(/of/g)) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A6.js index 908cabbca..bee889b57 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A6.js - * @description Checking String.prototype.search.prototype - */ +/*--- +info: String.prototype.search has not prototype property +description: Checking String.prototype.search.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.search.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A7.js index 0e8f90cf9..309088d65 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A7.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. -/** - * String.prototype.search can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A7.js - * @description Checking if creating the String.prototype.search object fails - */ +/*--- +info: String.prototype.search can't be used as constructor +description: Checking if creating the String.prototype.search object fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var __FACTORY = String.prototype.search; @@ -19,4 +20,3 @@ try { } $PRINT(e); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A8.js index a24219f08..09b853eea 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A8.js - * @description Checking if enumerating the String.prototype.search.length property fails - */ +/*--- +info: The String.prototype.search.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.search.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.12/S15.5.4.12_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A9.js index 832b3670f..49d60e059 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_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.search.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A9.js - * @description Checking if deleting the String.prototype.search.length property fails - */ +/*--- +info: The String.prototype.search.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.search.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.search.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A10.js index f42a3428e..7af1d8b0e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A10.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.slice.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A10.js - * @description Checking if varying the String.prototype.slice.length property fails - */ +/*--- +info: The String.prototype.slice.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.slice.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.slice.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A11.js index 681f228c8..bca1f1d6f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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 slice method is 2 - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A11.js - * @description Checking String.prototype.slice.length - */ +/*--- +info: The length property of the slice method is 2 +description: Checking String.prototype.slice.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.slice.length !== 2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T1.js index e3a528aea..fe7fe0ba7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T1.js - * @description Arguments are false and true, and instance is object - */ +/*--- +info: String.prototype.slice (start, end) +description: Arguments are false and true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.slice(false, true) !== "t") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T10.js index de499f4ca..a8afa314f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T10.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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T10.js - * @description Arguments are object and function call, and instance is String, object have overrided valueOf function - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are object and function call, and instance is String, + object have overrided valueOf function +---*/ var __obj = {valueOf:function(){return 2;}}; @@ -23,4 +23,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T11.js index aed12d5c7..f5e8e3860 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T11.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. -/** - * String.prototype.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T11.js - * @description Arguments are objects, and instance is string, objects have overrided valueOf function, that return exception - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are objects, and instance is string, objects have + overrided valueOf function, that return exception +includes: [$FAIL.js] +---*/ var __obj = {valueOf:function(){throw "instart";}}; var __obj2 = {valueOf:function(){throw "inend";}}; @@ -28,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T12.js index 3060c5336..dae78c319 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T12.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T12.js - * @description Arguments are objects, and instance is string. - * First object have overrided valueOf function and toString function, that return exception. - * Second object have overrided valueOf function, that return exception - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are objects, and instance is string. First object have + overrided valueOf function and toString function, that return + exception. Second object have overrided valueOf function, that + return exception +includes: [$FAIL.js] +---*/ var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; var __obj2 = {valueOf:function(){throw "inend";}}; @@ -28,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T13.js index 6a89560d7..8039465ce 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T13.js @@ -1,14 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T13.js - * @description Arguments are objects, and instance is string. - * First object have overrided valueOf and toString functions. - * Second object have overrided toString function, that return exception - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are objects, and instance is string. First object have + overrided valueOf and toString functions. Second object have + overrided toString function, that return exception +includes: [$FAIL.js] +---*/ var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; var __obj2 = {toString:function(){throw "inend";}}; @@ -25,5 +25,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T14.js index b48a36444..fa58eac16 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T14.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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T14.js - * @description Used one argument, that is function(){}(). Instance is string - */ +/*--- +info: String.prototype.slice (start, end) +description: Used one argument, that is function(){}(). Instance is string +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if ("report".slice(function(){}()) !== "report") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T15.js index d27cbb021..76bc98a06 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T15.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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T15.js - * @description Call slice without arguments. Instance is Number with prototype.slice = String.prototype.slice - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Call slice without arguments. Instance is Number with + prototype.slice = String.prototype.slice +---*/ var __num = 11.001002; @@ -20,4 +20,3 @@ if (__num.slice()!=="11.001002") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T2.js index e312f3649..17c51986b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T2.js - * @description Arguments are function call and x, and instance is Boolean. x is undefined variable - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are function call and x, and instance is Boolean. x is + undefined variable +---*/ var __instance = new Boolean; @@ -21,4 +21,3 @@ if (__instance.slice(function(){return true;}(),x) !== "alse") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T4.js index 8b147e97a..e950d0212 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T4.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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T4.js - * @description Arguments are null and number, and instance is function call, that returned string - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are null and number, and instance is function call, that + returned string +---*/ //since ToInteger(null) yelds 0 ////////////////////////////////////////////////////////////////////////////// @@ -16,4 +16,3 @@ if (function(){return "gnulluna"}().slice(null, -3) !== "gnull") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T5.js index ddc8dce24..50c57697c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T5.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. -/** - * String.prototype.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T5.js - * @description Arguments are null and call other slice(start, end), and instance is function object, that have overrided valueOf and toString functions - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are null and call other slice(start, end), and instance + is function object, that have overrided valueOf and toString + functions +---*/ __func.valueOf=function(){return "gnulluna"}; __func.toString=function(){return __func;}; @@ -23,4 +24,3 @@ if (__func.slice(null, Function().slice(__func,5).length) !== "gnull") { ////////////////////////////////////////////////////////////////////////////// function __func(){}; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T6.js index 98f708f30..8f44fb558 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T6.js - * @description Arguments are x and number, and instance is new String, x is undefined variable - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are x and number, and instance is new String, x is + undefined variable +---*/ //since ToInteger(undefined yelds 0) ////////////////////////////////////////////////////////////////////////////// @@ -18,4 +18,3 @@ if (new String("undefined").slice(x,3) !== "und") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T7.js index 567fe0954..1913951e5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T7.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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T7.js - * @description Arguments are symbol and undefined, and instance is String - */ +/*--- +info: String.prototype.slice (start, end) +description: Arguments are symbol and undefined, and instance is String +---*/ //since ToInteger("e") yelds 0 ////////////////////////////////////////////////////////////////////////////// @@ -16,4 +14,3 @@ if (String(void 0).slice("e",undefined) !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T8.js index 25572c8df..4f39ce3a3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T8.js - * @description Arguments are negative number and void 0, and instance is String(object), object have overrided toString function - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are negative number and void 0, and instance is + String(object), object have overrided toString function +---*/ __obj = {toString:function(){}}; @@ -18,4 +18,3 @@ if (String(__obj).slice(-4,void 0) !== "ined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T9.js index 3202857b6..472e7713d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T9.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. -/** - * String.prototype.slice (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A1_T9.js - * @description Arguments are undefined and object, and instance is String(object), object have overrided valueOf and toString functions - */ +/*--- +info: String.prototype.slice (start, end) +description: > + Arguments are undefined and object, and instance is + String(object), object have overrided valueOf and toString + functions +---*/ var __obj = { valueOf:function(){}, @@ -21,4 +22,3 @@ if (new String(__obj).slice(/*(function(){})()*/undefined,__obj) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T1.js index 07a5f0a30..3fea2a5ae 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T1.js - * @description Checking type of slice() - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: Checking type of slice() +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (typeof __string.slice() !== "string") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T2.js index b8b657d69..17fe3ef09 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T2.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T2.js - * @description start is NaN, end is Infinity - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is NaN, end is Infinity +---*/ var __string = new String('this is a string object'); @@ -17,4 +15,3 @@ if (__string.slice(NaN, Infinity) !== "this is a string object") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T3.js index 37bc9b6c8..325852fb8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T3.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T3.js - * @description Call slice from empty String object - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: Call slice from empty String object +---*/ var __string = new String(""); @@ -17,4 +15,3 @@ if (__string.slice(1,0) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T4.js index a6749e9fc..c5cd57ed9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T4.js - * @description start is Infinity, end is NaN - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is Infinity, end is NaN +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.slice(Infinity, NaN) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T5.js index 46bf31607..392edb2de 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T5.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T5.js - * @description start is Infinity, end is Infinity - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is Infinity, end is Infinity +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.slice(Infinity, Infinity) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T6.js index 78aae2436..cf844d01c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T6.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T6.js - * @description start is negative float number, end is 0 - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is negative float number, end is 0 +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.slice(-0.01,0) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T7.js index fef18302c..8480dc658 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T7.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T7.js - * @description start is tested_string.length, end is tested_string.length - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is tested_string.length, end is tested_string.length +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.slice(__string.length, __string.length) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T8.js index 22406a791..66ded5095 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T8.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T8.js - * @description start is tested_string.length+1, end is 0 - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is tested_string.length+1, end is 0 +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.slice(__string.length+1, 0) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T9.js index 96a95b82e..2d04063d4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T9.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.slice (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A2_T9.js - * @description start is -Infinity, end is -Infinity - */ +/*--- +info: String.prototype.slice (start, end) returns a string value(not object) +description: start is -Infinity, end is -Infinity +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.slice(-Infinity, -Infinity) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T1.js index 0615be24d..21366be37 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_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.slice (start, end) can be applied to object instances - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T1.js - * @description Apply String.prototype.slice to Object instance - */ +/*--- +info: String.prototype.slice (start, end) can be applied to object instances +description: Apply String.prototype.slice to Object instance +---*/ var __instance = new Object(); @@ -19,4 +17,3 @@ if (__instance.slice(0,8) !== "[object ") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T2.js index 024898955..f90444f9a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_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.slice (start, end) can be applied to object instances - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T2.js - * @description Apply String.prototype.slice to Object instance, use other value for start and end values - */ +/*--- +info: String.prototype.slice (start, end) can be applied to object instances +description: > + Apply String.prototype.slice to Object instance, use other value + for start and end values +---*/ var __instance = new Object(); @@ -19,4 +19,3 @@ if (__instance.slice(8,__instance.toString().length) !== "Object]") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T3.js index 27003ec74..a73871f91 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T3.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.slice (start, end) can be applied to object instances - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T3.js - * @description Apply String.prototype.slice to Object instance, and call instance.slice(...).slice(...) - */ +/*--- +info: String.prototype.slice (start, end) can be applied to object instances +description: > + Apply String.prototype.slice to Object instance, and call + instance.slice(...).slice(...) +---*/ var __instance = { toString: function() { return "function(){}";} }; @@ -19,4 +19,3 @@ if (__instance.slice(-Infinity,8).slice(1,Infinity) !== "unction") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T4.js index e5588d680..9135e67f1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T4.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.slice (start, end) can be applied to object instances - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A3_T4.js - * @description Checknig if applying String.prototype.slice to Function object instance passes - */ +/*--- +info: String.prototype.slice (start, end) can be applied to object instances +description: > + Checknig if applying String.prototype.slice to Function object + instance passes +---*/ __FACTORY.prototype.toString = function() { return this.value+''; }; @@ -25,4 +25,3 @@ function __FACTORY( value ) { this.slice= String.prototype.slice; //this.substring = String.prototype.substring; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A6.js index 136a65c52..2934cf252 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A6.js - * @description Checking String.prototype.slice.prototype - */ +/*--- +info: String.prototype.slice has not prototype property +description: Checking String.prototype.slice.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.slice.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A7.js index 51ffe1e20..032a8e7f7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A7.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. -/** - * String.prototype.slice can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A7.js - * @description Checking if creating the String.prototype.slice object fails - */ +/*--- +info: String.prototype.slice can't be used as constructor +description: Checking if creating the String.prototype.slice object fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var __FACTORY = String.prototype.slice; @@ -16,4 +17,3 @@ try { } catch (e) { $PRINT(e); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A8.js index 940757173..77b028218 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A8.js - * @description Checking if enumerating the String.prototype.slice.length property fails - */ +/*--- +info: The String.prototype.slice.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.slice.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.13/S15.5.4.13_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A9.js index c815772b2..f04a2154a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_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.slice.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.13/S15.5.4.13_A9.js - * @description Checking if deleting the String.prototype.slice.length property fails - */ +/*--- +info: The String.prototype.slice.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.slice.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.slice.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A10.js index e3edc7ff6..e16a90cf6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A10.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.split.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A10.js - * @description Checking if varying the String.prototype.split.length property fails - */ +/*--- +info: The String.prototype.split.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.split.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.split.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A11.js index 3a4762985..e63d84f3c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_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 split method is 2 - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A11.js - * @description Checking String.prototype.split.length - */ +/*--- +info: The length property of the split method is 2 +description: Checking String.prototype.split.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.split.length !== 2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T1.js index e43860ce6..9cb5255ce 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T1.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T1.js - * @description Arguments are false and true, and instance is object - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Arguments are false and true, and instance is object +---*/ var __instance = new Object(true); @@ -41,4 +40,3 @@ if (__split.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T10.js index fbb18f0d9..fc0490945 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T10.js @@ -1,18 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T10.js - * @description Arguments are objects, and instance is string. - * First object have overrided toString function. - * Second object have overrided valueOf function - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are objects, and instance is string. First object have + overrided toString function. Second object have overrided valueOf + function +---*/ var __obj = {toString:function(){return "\u0042B";}} var __obj2 = {valueOf:function(){return true;}} @@ -53,4 +53,3 @@ if (__split[0] !== "A") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T11.js index cbe7816dd..3dbafa089 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T11.js @@ -1,18 +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.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T11.js - * @description Arguments are objects, and instance is string. - * First object have overrided toString function. - * Second object have overrided valueOf function, that throw exception - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are objects, and instance is string. First object have + overrided toString function. Second object have overrided valueOf + function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){throw "intointeger";}} @@ -34,4 +35,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T12.js index d5dc7fbba..41fb416d9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T12.js @@ -1,18 +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.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T12.js - * @description Arguments are objects, and instance is string. - * First object have overrided toString function. - * Second object have overrided valueOf function and toString function, that throw exception - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are objects, and instance is string. First object have + overrided toString function. Second object have overrided valueOf + function and toString function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} @@ -32,4 +33,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T13.js index f9ef575f0..f0c989491 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T13.js @@ -1,18 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T13.js - * @description Arguments are objects, and instance is string. - * First object have overrided toString function. - * Second object have overrided valueOf and toString functions - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are objects, and instance is string. First object have + overrided toString function. Second object have overrided valueOf + and toString functions +---*/ var __obj = {toString:function(){return "\u0042\u0042";}} var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}} @@ -58,4 +58,3 @@ if (__split[1] !== "ABABA") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T14.js index cc6593660..b98f24bf4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T14.js @@ -1,18 +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.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T14.js - * @description Arguments are objects, and instance is string. - * First object have overrided toString function, that throw exception. - * Second object have overrided valueOf function, that throw exception - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are objects, and instance is string. First object have + overrided toString function, that throw exception. Second object + have overrided valueOf function, that throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}}; var __obj2 = {valueOf:function(){throw "intoint";}}; @@ -33,4 +34,3 @@ with(__instance){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T15.js index 7e2e74c4f..c15edc4a4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T15.js @@ -1,18 +1,20 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T15.js - * @description Arguments are objects, and instance is string. - * First object have overrided toString function and valueOf function, that throw exception. - * Second object have overrided valueOf function, that throw exception - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are objects, and instance is string. First object have + overrided toString function and valueOf function, that throw + exception. Second object have overrided valueOf function, that + throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; @@ -40,4 +42,3 @@ function __FACTORY( value ) { this.toString = function() { return new Number; }; this.valueOf=function(){return this.value+""}; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T16.js index 9c58e0230..f16505f7a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T16.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T16.js - * @description Argument is object, and instance is Number. - * Object have overrided toString function, that return regexp - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Argument is object, and instance is Number. Object have overrided + toString function, that return regexp +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return /\u0037\u0037/g;}}; @@ -25,4 +26,3 @@ try { $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); } } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T17.js index f8a406dc1..a7c096291 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T17.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T17.js - * @description Argument is regexp, and instance is Number - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Argument is regexp, and instance is Number +---*/ var __re = /\u0037\u0037/g; @@ -73,4 +72,3 @@ if (__split[3] !== "1") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T18.js index 3063102dc..f6f6e3106 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T18.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T18.js - * @description Checking by using eval - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Checking by using eval +---*/ var __re = new RegExp("00"); @@ -49,4 +48,3 @@ if (__split[0] !== "6776767677.") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T2.js index 2a236cc00..22c690ff7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T2.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T2.js - * @description Arguments are boolean expression, function call and null, and instance is Boolean - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Arguments are boolean expression, function call and null, and + instance is Boolean +---*/ var __instance = new Boolean; @@ -41,4 +42,3 @@ if (__split.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T3.js index 715a562cd..ac959bbdb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T3.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T3.js - * @description Checking by using eval - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Checking by using eval +---*/ var split = String.prototype.split.bind(this); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T4.js index 0c5205cc5..f64dc5ac7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T4.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T4.js - * @description Call split without arguments, and instance is empty string - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Call split without arguments, and instance is empty string +---*/ //since ToString() evaluates to "" split() evaluates to split("",0) var __split = "".split(); @@ -46,4 +45,3 @@ if (__split[0] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T5.js index d5a72fbaa..3b7e7bf0b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T5.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T5.js - * @description Argument is null, and instance is function call that returned string - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Argument is null, and instance is function call that returned + string +---*/ //since ToString(null) evaluates to "null" split(null) evaluates to split("null",0) var __split = function(){return "gnulluna"}().split(null); @@ -54,4 +55,3 @@ if (__split[1] !== "una") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T6.js index 7d3fcceb0..91ac07d80 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T6.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T6.js - * @description Argument is x, and instance is new String. x is undefined variable - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Argument is x, and instance is new String. x is undefined variable +---*/ //since ToString(undefined) evaluates to "" split(undefined) evaluates to split("",0) var __split = new String("1undefined").split(x); @@ -48,4 +47,3 @@ if (__split[0] !== "1undefined") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T7.js index bf48c7656..20c9203dd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T7.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. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T7.js - * @description Argument is undefined, and instance is String - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: Argument is undefined, and instance is String +---*/ var __split = String("undefinedd").split(undefined); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T8.js index 2feaba65b..f4a028ab4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T8.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T8.js - * @description Argument is void 0, and instance is String(object), object have overrided toString function - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Argument is void 0, and instance is String(object), object have + overrided toString function +---*/ var __obj = {toString:function(){}}; diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T9.js index b50272419..4396b292a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T9.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split(separator, limit): - * i) can be transferred to other kinds of objects for use as a method. - * separator and limit can be any kinds of object since: - * ii) if separator is not RegExp ToString(separator) performs and - * iii) ToInteger(limit) performs - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A1_T9.js - * @description Argument is function(){}(), and instance is String(object), object have overrided toString and valueOf functions - */ +/*--- +info: > + String.prototype.split(separator, limit): + i) can be transferred to other kinds of objects for use as a method. + separator and limit can be any kinds of object since: + ii) if separator is not RegExp ToString(separator) performs and + iii) ToInteger(limit) performs +description: > + Argument is function(){}(), and instance is String(object), object + have overrided toString and valueOf functions +---*/ var __obj = { valueOf:function(){}, @@ -51,4 +52,3 @@ if (__split[0] !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T1.js index 3f2bfe61b..08fc8320a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T1.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T1.js - * @description Call split(","), instance is String("one,two,three,four,five") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(","), instance is String("one,two,three,four,five") +---*/ var __string = new String("one,two,three,four,five"); @@ -70,4 +69,3 @@ if (__split[4] !== "five") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T10.js index 54ab24f27..04c41babc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T10.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T10.js - * @description Call split(123), instance is "this123is123a123string123object" - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(123), instance is "this123is123a123string123object" +---*/ var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; @@ -41,5 +40,3 @@ for ( var i = 0; i < __expected.length; i++ ) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T11.js index 5dbe9631c..5bb280ecd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T11.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T11.js - * @description Call split(":"), instance is String("one-1,two-2,four-4") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: "Call split(\":\"), instance is String(\"one-1,two-2,four-4\")" +---*/ var __string = new String("one-1,two-2,four-4"); @@ -38,4 +37,3 @@ if (__split[0] !== "one-1,two-2,four-4") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T12.js index 0cfa3c726..4980a7005 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T12.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T12.js - * @description Call split("r-42"), instance is String("one-1 two-2 four-4") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("r-42"), instance is String("one-1 two-2 four-4") +---*/ var __string = new String("one-1 two-2 four-4"); @@ -38,4 +37,3 @@ if (__split[0] !== "one-1 two-2 four-4") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T13.js index 773dfa402..b9462e072 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T13.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T13.js - * @description Call split("-4"), instance is String("one-1 two-2 four-4") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("-4"), instance is String("one-1 two-2 four-4") +---*/ var __string = new String("one-1 two-2 four-4"); @@ -46,4 +45,3 @@ if (__split[1] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T14.js index bab266a41..7c18049dc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T14.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T14.js - * @description Call split("on"), instance is String("one-1 two-2 four-4") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("on"), instance is String("one-1 two-2 four-4") +---*/ var __string = new String("one-1 two-2 four-4"); @@ -46,4 +45,3 @@ if (__split[1] !== "e-1 two-2 four-4") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T15.js index 78186df29..bcf11d395 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T15.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T15.js - * @description Call split(""), instance is empty String object - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(""), instance is empty String object +---*/ var __string = new String(); @@ -38,4 +37,3 @@ if (__split[0] !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T16.js index 7f038bb5d..99a93ddb3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T16.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T16.js - * @description Call split(" "), instance is empty String object - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(" "), instance is empty String object +---*/ var __string = new String(); @@ -38,4 +37,3 @@ if (__split[0] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T17.js index 12356022d..ad88cb63d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T17.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T17.js - * @description Call split(""), instance is String(" ") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(""), instance is String(" ") +---*/ var __string = new String(" "); @@ -38,4 +37,3 @@ if (__split[0] !== " ") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T18.js index eb6e4c318..b235a1dac 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T18.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T18.js - * @description Call split(" "), instance is String(" ") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(" "), instance is String(" ") +---*/ var __string = new String(" "); @@ -46,4 +45,3 @@ if (__split[1] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T19.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T19.js index f1e2c7a38..14bb38840 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T19.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T19.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T19.js - * @description Call split("x"), instance is empty string - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("x"), instance is empty string +---*/ var __string = ""; @@ -38,4 +37,3 @@ if (__split[0] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T2.js index 549271281..ae03873b7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T2.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T2.js - * @description Call split(" "), instance is String("one two three four five") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(" "), instance is String("one two three four five") +---*/ var __string = new String("one two three four five"); @@ -70,4 +69,3 @@ if (__split[4] !== "five") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T20.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T20.js index 8bd69c455..6c07f8d51 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T20.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T20.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T20.js - * @description Call split(new RegExp) - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(new RegExp) +---*/ var __string = new String("one-1 two-2 three-3"); @@ -40,5 +39,3 @@ for ( var i = 0; i < __string.length; i++ ) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T21.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T21.js index b2011308d..b93833094 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T21.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T21.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T21.js - * @description Call split("ll"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("ll"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -46,5 +45,3 @@ if (__split[1] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T22.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T22.js index e6eca65fb..1176d6e16 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T22.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T22.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T22.js - * @description Call split("l"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -54,5 +53,3 @@ if (__split[2] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T23.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T23.js index 152c353e0..1a1a83a66 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T23.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T23.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T23.js - * @description Call split("x"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("x"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -38,5 +37,3 @@ if (__split[0] !== "hello") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T24.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T24.js index a7043bbd9..401f50dbc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T24.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T24.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T24.js - * @description Call split("h"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("h"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -46,5 +45,3 @@ if (__split[1] !== "ello") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T25.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T25.js index 65ee313aa..afd948155 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T25.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T25.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T25.js - * @description Call split("o"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("o"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -46,4 +45,3 @@ if (__split[1] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T26.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T26.js index 760f7ff06..cc6b5eb6a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T26.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T26.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T26.js - * @description Call split("hello"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("hello"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -46,4 +45,3 @@ if (__split[1] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T27.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T27.js index 515d9fbc5..4240d0a59 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T27.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T27.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T27.js - * @description Call split(undefined), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(undefined), instance is String("hello") +---*/ var __string = new String("hello"); @@ -38,5 +37,3 @@ if (__split[0] !== "hello") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T28.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T28.js index 84510d84c..bc307c94e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T28.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T28.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T28.js - * @description Call split("hellothere"), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("hellothere"), instance is String("hello") +---*/ var __string = new String("hello"); @@ -38,5 +37,3 @@ if (__split[0] !== "hello") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T29.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T29.js index 1577a73cf..3ed93cf63 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T29.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T29.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T29.js - * @description Call split(1), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -44,5 +43,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T3.js index 0dd458c65..2a317286f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T3.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T3.js - * @description Call split(/ /,2), instance is String("one two three four five") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(/ /,2), instance is String("one two three four five") +---*/ var __string = new String("one two three four five"); @@ -46,4 +45,3 @@ if (__split[1] !== "two") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T30.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T30.js index 056648273..2bc2d773a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T30.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T30.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T30.js - * @description Call split(1,1), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,1), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -42,5 +41,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T31.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T31.js index 973791e58..9bbdc9c0f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T31.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T31.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T31.js - * @description Call split(1,2), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,2), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -44,5 +43,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T32.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T32.js index 878668c95..5a5a7fec1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T32.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T32.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T32.js - * @description Call split(1,0), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,0), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -42,5 +41,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T33.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T33.js index 66f3040ad..89ab0d96a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T33.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T33.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T33.js - * @description Call split(1,100), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,100), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -44,5 +43,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T34.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T34.js index bde2c8a9a..330c83f2b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T34.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T34.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T34.js - * @description Call split(1,void 0), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,void 0), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -44,5 +43,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T35.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T35.js index c6288390c..34a0383d9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T35.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T35.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T35.js - * @description Call split(1, Math.pow(2,32)-1), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1, Math.pow(2,32)-1), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -44,5 +43,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T36.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T36.js index 66aa50338..199c4cb98 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T36.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T36.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T36.js - * @description Call split(1,"boo"), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,"boo"), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -42,5 +41,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T37.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T37.js index f4d27e16c..39f320bd1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T37.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T37.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T37.js - * @description Call split(1,-Math.pow(2,32)+1), instance is Number - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(1,-Math.pow(2,32)+1), instance is Number +---*/ var __instance = new Number(100111122133144155); @@ -42,5 +41,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T38.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T38.js index e072227a3..e2679c11a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T38.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T38.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T38.js - * @description Call split("l",NaN), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l",NaN), instance is String("hello") +---*/ var __instance = new String("hello"); @@ -39,4 +38,3 @@ if (__split[0] !== __expected[0]) { $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); } // - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T39.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T39.js index 86bd0b649..04fc0d965 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T39.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T39.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T39.js - * @description Call split("l",0), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l",0), instance is String("hello") +---*/ var __instance = new String("hello"); @@ -39,4 +38,3 @@ if (__split[0] !== __expected[0]) { $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); } // - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T4.js index 7647c5239..850992a64 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T4.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T4.js - * @description Call split(""), instance is String("one two three") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(""), instance is String("one two three") +---*/ var __string = new String("one two three"); @@ -62,4 +61,3 @@ if (__split[12] !== "e") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T40.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T40.js index cb70140ae..ef3b4fc26 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T40.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T40.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T40.js - * @description Call split("l",1), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l",1), instance is String("hello") +---*/ var __instance = new String("hello"); @@ -39,4 +38,3 @@ if (__split[0] !== __expected[0]) { $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); } // - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T41.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T41.js index db8302f67..29f3b8f68 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T41.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T41.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T41.js - * @description Call split("l",2), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l",2), instance is String("hello") +---*/ var __instance = new String("hello"); @@ -42,5 +41,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T42.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T42.js index 5f5484098..540ec7b17 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T42.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T42.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T42.js - * @description Call split("l",3), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l",3), instance is String("hello") +---*/ var __instance = new String("hello"); @@ -42,5 +41,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T43.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T43.js index 2f541ed5e..c0134ee56 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T43.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T43.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T43.js - * @description Call split("l",4), instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split("l",4), instance is String("hello") +---*/ var __instance = new String("hello"); @@ -42,5 +41,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T5.js index 1662c3b80..319100037 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T5.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T5.js - * @description Call split(/,/), instance is String("one-1,two-2,four-4") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(/,/), instance is String("one-1,two-2,four-4") +---*/ var __string = new String("one-1,two-2,four-4"); @@ -54,4 +53,3 @@ if (__split[2] !== "four-4") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T6.js index 308586fb1..2d260a3ce 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T6.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T6.js - * @description Call split(''), instance is String("one-1 two-2 four-4") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(''), instance is String("one-1 two-2 four-4") +---*/ var __string = new String("one-1 two-2 three-3"); @@ -40,5 +39,3 @@ for ( var i = 0; i < __string.length; i++ ) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T7.js index 45b645767..798aef7c1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T7.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T7.js - * @description Call split(void 0), instance is "thisundefinedisundefinedaundefinedstringundefinedobject" - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: > + Call split(void 0), instance is + "thisundefinedisundefinedaundefinedstringundefinedobject" +---*/ var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = [__string]; @@ -41,5 +42,3 @@ for ( var i = 0; i < __expected.length; i++ ) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T8.js index 33c8d4673..4011d4b29 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T8.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T8.js - * @description Call split(null), instance is "thisnullisnullanullstringnullobject" - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(null), instance is "thisnullisnullanullstringnullobject" +---*/ var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; @@ -41,5 +40,3 @@ for ( var i = 0; i < __expected.length; i++ ) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T9.js index 8f41d4292..8cd949d8c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T9.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. The substrings are determined by searching from left to right for occurrences of - * separator; these occurrences are not part of any substring in the returned array, but serve to divide up - * the string value. The value of separator may be a string of any length or it may be a RegExp object - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A2_T9.js - * @description Call split(true), instance is "thistrueistrueatruestringtrueobject" - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. The substrings are determined by searching from left to right for occurrences of + separator; these occurrences are not part of any substring in the returned array, but serve to divide up + the string value. The value of separator may be a string of any length or it may be a RegExp object +description: Call split(true), instance is "thistrueistrueatruestringtrueobject" +---*/ var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; @@ -41,5 +40,3 @@ for ( var i = 0; i < __expected.length; i++ ) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T1.js index 86a3c2fb6..d639cfcfc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T1.js - * @description Instance is String("one,two,three,four,five") - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is String("one,two,three,four,five") +---*/ var __string = new String("one,two,three,four,five"); @@ -37,4 +36,3 @@ if (__split[0] !== "one,two,three,four,five") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T10.js index 7425bdee2..28018b54f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T10.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T10.js - * @description Instance is new String - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is new String +---*/ var __string = new String; @@ -37,4 +36,3 @@ if (__split[0] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T11.js index 7de1ea583..64c3c8ec8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T11.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T11.js - * @description Instance is String(" ") - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is String(" ") +---*/ var __string = new String(" "); @@ -37,4 +36,3 @@ if (__split[0] !== " ") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T2.js index fb00633fe..ad8f9dbce 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T2.js - * @description Instance is Object() - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Object() +---*/ var __instance = new Object(); @@ -39,4 +38,3 @@ if (__split[0] !== "[object Object]") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T3.js index 51bcf1575..31ab94c60 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T3.js - * @description Instance is function(){} - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is function(){} +---*/ var __instance = { toString: function() { return "function(){}";} }; @@ -39,4 +38,3 @@ if (__split[0].substring(0,8) !== "function") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T4.js index d91cb47c9..371e0b71a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T4.js - * @description Instance is Number(NaN) - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Number(NaN) +---*/ var __instance = new Number(NaN); @@ -39,4 +38,3 @@ if (__split[0] !== "NaN") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T5.js index caa50b3d9..b891fee68 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T5.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T5.js - * @description Instance is Number(-1234567890) - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Number(-1234567890) +---*/ var __instance = new Number(-1234567890); @@ -39,4 +38,3 @@ if (__split[0] !== "-1234567890") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T6.js index e4421f66e..0950d258c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T6.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T6.js - * @description Instance is Number(-1e21) - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Number(-1e21) +---*/ var __instance = new Number(-1e21); @@ -39,4 +38,3 @@ if (__split[0] !== __instance.toString()) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T7.js index bc09dd500..4f523680b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T7.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T7.js - * @description Instance is Math - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Math +---*/ var __instance = Math; @@ -39,4 +38,3 @@ if (__split[0] !== "[object Math]") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T8.js index 94ba1f1e9..24f3b2cd3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T8.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T8.js - * @description Instance is Array(1,2,3,4,5) - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Array(1,2,3,4,5) +---*/ var __instance = new Array(1,2,3,4,5); @@ -39,4 +38,3 @@ if (__split[0] !== "1,2,3,4,5") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T9.js index a22f24ff9..69c99ffeb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T9.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split() returns an Array object with: - * i) length equaled to 1, - * ii) [[Get]](0) equaled to the result of converting this object to a string - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A3_T9.js - * @description Instance is Boolean - */ +/*--- +info: > + String.prototype.split() returns an Array object with: + i) length equaled to 1, + ii) [[Get]](0) equaled to the result of converting this object to a string +description: Instance is Boolean +---*/ var __instance = new Boolean; @@ -39,4 +38,3 @@ if (__split[0] !== "false") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T1.js index af74915a5..b6dd26fb5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T1.js - * @description Argument is regexp /l/, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Argument is regexp /l/, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -55,4 +54,3 @@ if (__split[2] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T10.js index 4419ea3fe..37c5b4089 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T10.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T10.js - * @description Argument is new RegExp, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Argument is new RegExp, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T11.js index e4d7f88f4..354cdbe7c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T11.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T11.js - * @description Arguments are new RegExp and 0, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are new RegExp and 0, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -41,4 +40,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T12.js index 68c519cfe..46b626514 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T12.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T12.js - * @description Arguments are new RegExp and 1, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are new RegExp and 1, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -41,4 +40,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T13.js index 887b4b420..e71a3b278 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T13.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T13.js - * @description Arguments are new RegExp and 2, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are new RegExp and 2, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T14.js index 513db31ff..3beeead16 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T14.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T14.js - * @description Arguments are new RegExp and 3, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are new RegExp and 3, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T15.js index 9811573ad..50d458ba0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T15.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T15.js - * @description Arguments are new RegExp and 4, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are new RegExp and 4, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T16.js index e3d3b9481..d49eddc1a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T16.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T16.js - * @description Arguments are new RegExp and void 0, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Arguments are new RegExp and void 0, and instance is + String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +44,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T17.js index a6ec2a0cf..231f0b06e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T17.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T17.js - * @description Arguments are new RegExp and undefined, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Arguments are new RegExp and undefined, and instance is + String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +44,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T18.js index d8e75a23a..5aa53e6de 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T18.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T18.js - * @description Arguments are new RegExp and "hi", and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are new RegExp and "hi", and instance is String("hello") +---*/ var __string = new String("hello"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T19.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T19.js index ac8888615..00b37926c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T19.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T19.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T19.js - * @description Argument is regexp /\s/, and instance is String("a b c de f") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Argument is regexp /\s/, and instance is String("a b c de f") +---*/ var __string = new String("a b c de f"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T2.js index b628639e7..5f7b49de5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T2.js - * @description Arguments are regexp /l/ and 0, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are regexp /l/ and 0, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -31,4 +30,3 @@ if (__split.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T20.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T20.js index 4a6a08fc1..d8e99c4fb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T20.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T20.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T20.js - * @description Arguments are regexp /\s/ and 3, and instance is String("a b c de f") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Arguments are regexp /\s/ and 3, and instance is String("a b c de + f") +---*/ var __string = new String("a b c de f"); @@ -43,4 +44,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T21.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T21.js index 9a433a323..4bc070943 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T21.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T21.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T21.js - * @description Argument is regexp /\X/, and instance is String("a b c de f") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Argument is regexp /\X/, and instance is String("a b c de f") +---*/ var __string = new String("a b c de f"); @@ -41,4 +40,3 @@ if (__split[0] !== __expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T22.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T22.js index 23d71dce4..dd41fa7c9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T22.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T22.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T22.js - * @description Argument is regexp /\d+/, and instance is String("dfe23iu 34 =+65--") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Argument is regexp /\d+/, and instance is String("dfe23iu 34 + =+65--") +---*/ var __string = new String("dfe23iu 34 =+65--"); @@ -43,4 +44,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T23.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T23.js index d68d6c2c9..822badbcd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T23.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T23.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T23.js - * @description Argument is regexp RegExp('\\d+'), and instance is String("dfe23iu 34 =+65--") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Argument is regexp RegExp('\\d+'), and instance is String("dfe23iu + 34 =+65--") +---*/ var __string = new String("dfe23iu 34 =+65--"); @@ -43,4 +44,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T24.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T24.js index 1447f21b9..ec72df3f7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T24.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T24.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T24.js - * @description Argument is regexp /[a-z]/, and instance is String("abc") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Argument is regexp /[a-z]/, and instance is String("abc") +---*/ var __string = new String("abc"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T25.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T25.js index 6ece183ab..9182afadc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T25.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T25.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T25.js - * @description Argument is RegExp('[a-z]'), and instance is String("abc") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Argument is RegExp('[a-z]'), and instance is String("abc") +---*/ var __string = new String("abc"); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T3.js index 5485bca24..fac340668 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T3.js - * @description Arguments are regexp /l/ and 1, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are regexp /l/ and 1, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -39,4 +38,3 @@ if (__split[0] !== "he") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T4.js index 0a3e28803..9eb28c35e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T4.js - * @description Arguments are regexp /l/ and 2, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are regexp /l/ and 2, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -47,4 +46,3 @@ if (__split[1] !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T5.js index 42e9c4bc3..73d60eb0b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T5.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T5.js - * @description Arguments are regexp /l/ and 3, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are regexp /l/ and 3, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -55,4 +54,3 @@ if (__split[2] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T6.js index e476ccf7a..793e694e6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T6.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T6.js - * @description Arguments are regexp /l/ and 4, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are regexp /l/ and 4, and instance is String("hello") +---*/ var __string = new String("hello"); @@ -55,4 +54,3 @@ if (__split[2] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T7.js index f3b86a40d..419a9ccc6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T7.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T7.js - * @description Arguments are regexp /l/ and void 0, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Arguments are regexp /l/ and void 0, and instance is + String("hello") +---*/ var __string = new String("hello"); @@ -55,4 +56,3 @@ if (__split[2] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T8.js index 5eaa9100e..e8e9cbd6c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T8.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T8.js - * @description Arguments are regexp /l/ and "hi", and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: Arguments are regexp /l/ and "hi", and instance is String("hello") +---*/ var __string = new String("hello"); @@ -31,4 +30,3 @@ if (__split.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T9.js index ce010aef3..708232c7d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T9.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have - * been stored. If separator is a regular expression then - * inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A4_T9.js - * @description Arguments are regexp /l/ and undefined, and instance is String("hello") - */ +/*--- +info: > + String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting this object to a string have + been stored. If separator is a regular expression then + inside of SplitMatch helper the [[Match]] method of R is called giving it the arguments corresponding +description: > + Arguments are regexp /l/ and undefined, and instance is + String("hello") +---*/ var __string = new String("hello"); @@ -55,4 +56,3 @@ if (__split[2] !== "o") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A6.js index ee3c4ff3a..d3d7ad7ad 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_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.split has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A6.js - * @description Checking String.prototype.split.prototype - */ +/*--- +info: String.prototype.split has not prototype property +description: Checking String.prototype.split.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.split.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js index 10c5424aa..1a5b9805f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_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.split can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A7.js - * @description Checking if creating the String.prototype.split object fails - */ +/*--- +info: String.prototype.split can't be used as constructor +description: Checking if creating the String.prototype.split object fails +includes: + - $FAIL.js + - Test262Error.js +---*/ var __FACTORY = String.prototype.split; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception');
-} catch (e) {
+ $FAIL('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A8.js index 3cd8da66a..a5c233e2f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_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.split.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A8.js - * @description Checking if enumerating the String.prototype.split.length property fails - */ +/*--- +info: The String.prototype.split.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.split.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.14/S15.5.4.14_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A9.js index 6bd7ffb21..4e6f1877a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_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.split.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.14/S15.5.4.14_A9.js - * @description Checking if deleting the String.prototype.split.length property fails - */ +/*--- +info: The String.prototype.split.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.split.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.split.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A10.js index 91c17b1ac..8e58e7b5e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A10.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.substring.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A10.js - * @description Checking if varying the String.prototype.substring.length property fails - */ +/*--- +info: The String.prototype.substring.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.substring.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.substring.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A11.js index b7a8a57b1..22834e02b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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 substring method is 2 - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A11.js - * @description Checking String.prototype.substring.length - */ +/*--- +info: The length property of the substring method is 2 +description: Checking String.prototype.substring.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.substring.length !== 2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T1.js index 8fb7701e7..b7590f6bc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T1.js - * @description Arguments are false and true, and instance is object - */ +/*--- +info: String.prototype.substring (start, end) +description: Arguments are false and true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.substring(false, true) !== "t") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T10.js index 63fe45ac0..dcfadf4a0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T10.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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T10.js - * @description Arguments are object and function call, and instance is String, object have overrided valueOf function - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are object and function call, and instance is String, + object have overrided valueOf function +---*/ var __obj = {valueOf:function(){return 2;}}; @@ -23,4 +23,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T11.js index dc2aebb6b..ffbb123f9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T11.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. -/** - * String.prototype.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T11.js - * @description Arguments are objects, and instance is string, objects have overrided valueOf function, that return exception - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are objects, and instance is string, objects have + overrided valueOf function, that return exception +includes: [$FAIL.js] +---*/ var __obj = {valueOf:function(){throw "instart";}}; var __obj2 = {valueOf:function(){throw "inend";}}; @@ -28,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T12.js index c45c3968a..c3d4d7f95 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T12.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T12.js - * @description Arguments are objects, and instance is string. - * First object have overrided valueOf function and toString function, that return exception. - * Second object have overrided valueOf function, that return exception - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are objects, and instance is string. First object have + overrided valueOf function and toString function, that return + exception. Second object have overrided valueOf function, that + return exception +includes: [$FAIL.js] +---*/ var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; var __obj2 = {valueOf:function(){throw "inend";}}; @@ -28,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T13.js index 62fd05eda..fef3d3c92 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T13.js @@ -1,14 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T13.js - * @description Arguments are objects, and instance is string. - * First object have overrided valueOf and toString functions. - * Second object have overrided toString function, that return exception - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are objects, and instance is string. First object have + overrided valueOf and toString functions. Second object have + overrided toString function, that return exception +includes: [$FAIL.js] +---*/ var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; var __obj2 = {toString:function(){throw "inend";}}; @@ -25,5 +25,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T14.js index 54e7e0495..fca43ee65 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T14.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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T14.js - * @description Used one argument, that is function(){}(). Instance is string - */ +/*--- +info: String.prototype.substring (start, end) +description: Used one argument, that is function(){}(). Instance is string +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if ("report".substring(function(){}()) !== "report") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T15.js index 22f9cf75a..94139c316 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T15.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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T15.js - * @description Call substring without arguments. Instance is Number with prototype.substring = String.prototype.substring - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Call substring without arguments. Instance is Number with + prototype.substring = String.prototype.substring +---*/ var __num = 11.001002; @@ -20,4 +20,3 @@ if (__num.substring()!=="11.001002") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T2.js index a46d973a4..e6b3877a4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T2.js - * @description Arguments are function call and x, and instance is Boolean. x is undefined variable - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are function call and x, and instance is Boolean. x is + undefined variable +---*/ var __instance = new Boolean; @@ -21,4 +21,3 @@ if (__instance.substring(function(){return true;}(),x) !== "alse") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T4.js index 31205feb9..51a5eb141 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T4.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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T4.js - * @description Arguments are null and number, and instance is function call, that returned string - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are null and number, and instance is function call, that + returned string +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if (function(){return "gnulluna"}().substring(null, -3) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T5.js index 097154be2..3b5d40a9b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T5.js - * @description Arguments are null and Function(), and instance is function object, that have overrided valueOf function - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are null and Function(), and instance is function + object, that have overrided valueOf function +---*/ __func.valueOf=function(){return "gnulluna"}; @@ -22,4 +22,3 @@ if (__func.substring(null, Function()) !== "") { ////////////////////////////////////////////////////////////////////////////// function __func(){}; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T6.js index 81a2c9593..d7a7fbb97 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T6.js - * @description Arguments are x and number, and instance is new String, x is undefined variable - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are x and number, and instance is new String, x is + undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -17,4 +17,3 @@ if (new String("undefined").substring(x,3) !== "und") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T7.js index 252e70402..e0c53317a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T7.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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T7.js - * @description Arguments are symbol and undefined, and instance is String - */ +/*--- +info: String.prototype.substring (start, end) +description: Arguments are symbol and undefined, and instance is String +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String(void 0).substring("e",undefined) !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T8.js index 700202785..dc164603b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T8.js - * @description Arguments are negative number and void 0, and instance is String(object), object have overrided toString function - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are negative number and void 0, and instance is + String(object), object have overrided toString function +---*/ var __obj = {toString:function(){}}; @@ -17,4 +17,3 @@ if (String(__obj).substring(-4,void 0) !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T9.js index a9aafd294..841f89ced 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T9.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. -/** - * String.prototype.substring (start, end) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A1_T9.js - * @description Arguments are undefined and object, and instance is new String(object), object have overrided valueOf and toString functions - */ +/*--- +info: String.prototype.substring (start, end) +description: > + Arguments are undefined and object, and instance is new + String(object), object have overrided valueOf and toString + functions +---*/ var __obj = { valueOf:function(){}, @@ -20,4 +21,3 @@ if (new String(__obj).substring(/*(function(){})()*/undefined,undefined) !== "un } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T1.js index 919639a8b..fcbfcd0fc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T1.js - * @description Checking type of substring() - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: Checking type of substring() +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (typeof __string.substring() !== "string") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T10.js index 7467a3a74..2c8a8c2d0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T10.js - * @description start is 0, end is 8 - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is 0, end is 8 +---*/ var __string = new String("this_is_a_string object"); @@ -17,4 +15,3 @@ if (__string.substring(0,8) !== "this_is_") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T2.js index a639bf7b1..c5ebe3dee 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T2.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T2.js - * @description start is NaN, end is Infinity - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is NaN, end is Infinity +---*/ var __string = new String('this is a string object'); @@ -17,4 +15,3 @@ if (__string.substring(NaN, Infinity) !== "this is a string object") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T3.js index e6a911dfd..be8344a73 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T3.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T3.js - * @description Call substring from empty String object - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: Call substring from empty String object +---*/ var __string = new String(""); @@ -17,4 +15,3 @@ if (__string.substring(1,0) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T4.js index d79141d8e..b4657e424 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T4.js - * @description start is Infinity, end is NaN - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is Infinity, end is NaN +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.substring(Infinity, NaN) !== "this is a string object") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T5.js index cef78c101..72f670575 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T5.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T5.js - * @description start is Infinity, end is Infinity - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is Infinity, end is Infinity +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.substring(Infinity, Infinity) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T6.js index 1437c87ce..c3dfad865 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T6.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T6.js - * @description start is negative float number, end is 0 - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is negative float number, end is 0 +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.substring(-0.01,0) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T7.js index 140b4cc2a..f9b789604 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T7.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T7.js - * @description start is tested_string.length, end is tested_string.length - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is tested_string.length, end is tested_string.length +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.substring(__string.length, __string.length) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T8.js index 9775b8fb2..4bb9adcc4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T8.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T8.js - * @description start is tested_string.length+1, end is 0 - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is tested_string.length+1, end is 0 +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.substring(__string.length+1, 0) !== "this is a string object") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T9.js index b64f86b80..1a6d852d6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T9.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.substring (start, end) returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A2_T9.js - * @description start is -Infinity, end is -Infinity - */ +/*--- +info: String.prototype.substring (start, end) returns a string value(not object) +description: start is -Infinity, end is -Infinity +---*/ var __string = new String("this is a string object"); @@ -17,4 +15,3 @@ if (__string.substring(-Infinity, -Infinity) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T1.js index ee504ea67..de4a38f1d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T1.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T1.js - * @description Apply String.prototype.substring to Array instance. Start is Infinity, end is -Infinity - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Array instance. Start is + Infinity, end is -Infinity +---*/ var __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; @@ -19,4 +20,3 @@ if (__instance.substring(Infinity,-Infinity) !== "1,2,3,4,5") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T10.js index 01935b3f8..767b14b6b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T10.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T10.js - * @description Checknig if applying String.prototype.substring to Function object instance passes - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Checknig if applying String.prototype.substring to Function object + instance passes +---*/ __FACTORY.prototype.substring = String.prototype.substring; @@ -25,4 +26,3 @@ function __FACTORY( value ) { this.value = value; this.toString = function() { return this.value+''; } } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T11.js index 92615a251..8da69fe2f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T11.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T11.js - * @description Apply String.prototype.substring to Boolean instance. Start is new Array(), end is new Boolean(1) - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Boolean instance. Start is new + Array(), end is new Boolean(1) +---*/ var __instance = new Boolean(); @@ -20,4 +21,3 @@ if (__instance.substring(new Array(), new Boolean(1)) !== "f") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T2.js index 728eea958..f9e39bc97 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T2.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T2.js - * @description Apply String.prototype.substring to Array instance. Start is 9, end is -Infinity - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Array instance. Start is 9, + end is -Infinity +---*/ var __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; @@ -19,4 +20,3 @@ if (__instance.substring(9,-Infinity) !== "1,2,3,4,5") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T3.js index 814c1ad50..4a8645564 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T3.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T3.js - * @description Apply String.prototype.substring to Array instance. Start is true, end is false - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Array instance. Start is true, + end is false +---*/ var __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; @@ -19,4 +20,3 @@ if (__instance.substring(true, false) !== "1") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T4.js index eb91e284f..17b285637 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T4.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T4.js - * @description Apply String.prototype.substring to Array instance. Start is '4', end is '5' - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Array instance. Start is '4', + end is '5' +---*/ var __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; @@ -19,4 +20,3 @@ if (__instance.substring('4', '5') !== "3") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T5.js index 088bd137f..8cf99a921 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T5.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T5.js - * @description Apply String.prototype.substring to Object instance. Start is 8, end is 0 - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Object instance. Start is 8, + end is 0 +---*/ var __instance = new Object(); __instance.substring = String.prototype.substring; @@ -19,4 +20,3 @@ if (__instance.substring(8,0) !== "[object ") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T6.js index ac3d0d150..9ea873315 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T6.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T6.js - * @description Apply String.prototype.substring to Object instance. Start is 8, end is length of object.toString - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Object instance. Start is 8, + end is length of object.toString +---*/ var __instance = new Object(); __instance.substring = String.prototype.substring; @@ -19,4 +20,3 @@ if (__instance.substring(8, __instance.toString().length) !== "Object]") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T7.js index 2c91e0230..7fccbb9e3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T7.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T7.js - * @description Apply String.prototype.substring to Object instance. Call instance.substring(...).substring(...) - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Object instance. Call + instance.substring(...).substring(...) +---*/ var __instance = { toString: function() { return "function(){}";} }; @@ -20,4 +21,3 @@ if (__instance.substring(-Infinity,8) !== "function") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T8.js index a20213314..50def7239 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T8.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T8.js - * @description Apply String.prototype.substring to Number instance. Start is Infinity, end is NaN - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Number instance. Start is + Infinity, end is NaN +---*/ var __instance = new Number(NaN); @@ -20,4 +21,3 @@ if (__instance.substring(Infinity, NaN) !== "NaN") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T9.js index 1d7aff7f1..a6c2da03c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T9.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.substring (start, end) can be applied to non String object instance and - * returns a string value(not object) - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A3_T9.js - * @description Apply String.prototype.substring to Math instance. Start is Math.PI, end is -10 - */ +/*--- +info: > + String.prototype.substring (start, end) can be applied to non String object instance and + returns a string value(not object) +description: > + Apply String.prototype.substring to Math instance. Start is + Math.PI, end is -10 +---*/ var __instance = Math; @@ -20,4 +21,3 @@ if (__instance.substring(Math.PI, -10) !== "[ob") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A6.js index fd7426628..533365433 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A6.js - * @description Checking String.prototype.substring.prototype - */ +/*--- +info: String.prototype.substring has not prototype property +description: Checking String.prototype.substring.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.substring.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A7.js index fc7c4c502..75a24af28 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A7.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. -/** - * String.prototype.substring can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A7.js - * @description Checking if creating the String.prototype.substring object fails - */ +/*--- +info: String.prototype.substring can't be used as constructor +description: Checking if creating the String.prototype.substring object fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var __FACTORY = String.prototype.substring; @@ -19,4 +20,3 @@ try { } $PRINT(e); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A8.js index 985519c11..854052dca 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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.substring.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A8.js - * @description Checking if enumerating the String.prototype.substring.length property fails - */ +/*--- +info: The String.prototype.substring.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.substring.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.15/S15.5.4.15_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A9.js index 3c1690694..9c67e8306 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_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 String.prototype.substring.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.15/S15.5.4.15_A9.js - * @description Checking if deleting the String.prototype.substring.length property fails - */ +/*--- +info: > + The String.prototype.substring.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.substring.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.substring.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A10.js index 1f44aace0..c538dae35 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A10.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 String.prototype.toLowerCase.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A10.js - * @description Checking if varying the String.prototype.toLowerCase.length property fails - */ +/*--- +info: > + The String.prototype.toLowerCase.length property has the attribute + ReadOnly +description: > + Checking if varying the String.prototype.toLowerCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +30,3 @@ if (String.prototype.toLowerCase.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A11.js index dfb885899..f58edfc69 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_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 toLowerCase method is 0 - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A11.js - * @description Checking String.prototype.toLowerCase.length - */ +/*--- +info: The length property of the toLowerCase method is 0 +description: Checking String.prototype.toLowerCase.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.toLowerCase.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T1.js index 203f7abed..d17b172b7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T1.js - * @description Arguments is true, and instance is object - */ +/*--- +info: String.prototype.toLowerCase() +description: Arguments is true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.toLowerCase() !== "true") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T10.js index 26b9fb973..c0b520db1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T10.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T10.js - * @description Call toLowerCase() function of object with overrode toString function - */ +/*--- +info: String.prototype.toLowerCase() +description: > + Call toLowerCase() function of object with overrode toString + function +---*/ var __obj = {toString:function(){return "\u0041B";}} __obj.toLowerCase = String.prototype.toLowerCase; @@ -19,4 +19,3 @@ if (__obj.toLowerCase() !=="ab") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T11.js index ec622d814..289cc944c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T11.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. -/** - * String.prototype.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T11.js - * @description Override toString function, toString throw exception, then call toLowerCase() function for this object - */ +/*--- +info: String.prototype.toLowerCase() +description: > + Override toString function, toString throw exception, then call + toLowerCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}} __obj.toLowerCase = String.prototype.toLowerCase; @@ -23,4 +24,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T12.js index 4653f73fd..873e42752 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T12.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. -/** - * String.prototype.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T12.js - * @description Override toString and valueOf functions, valueOf throw exception, then call toLowerCase() function for this object - */ +/*--- +info: String.prototype.toLowerCase() +description: > + Override toString and valueOf functions, valueOf throw exception, + then call toLowerCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} __obj.toLowerCase = String.prototype.toLowerCase; @@ -23,4 +24,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T13.js index 234392148..5a711826a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T13.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T13.js - * @description Override toString and valueOf functions, then call toLowerCase() function for this object - */ +/*--- +info: String.prototype.toLowerCase() +description: > + Override toString and valueOf functions, then call toLowerCase() + function for this object +---*/ var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} __obj.toLowerCase = String.prototype.toLowerCase; @@ -26,4 +26,3 @@ if (__obj.toLowerCase().length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T14.js index 9ac4399d3..b2099317d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T14.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T14.js - * @description Call toLowerCase() function for RegExp object - */ +/*--- +info: String.prototype.toLowerCase() +description: Call toLowerCase() function for RegExp object +---*/ var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; @@ -18,4 +16,3 @@ if (__reg.toLowerCase() !== "/abc/") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T2.js index 47f82dac3..ce8faa0e8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T2.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T2.js - * @description Instance is Boolean object - */ +/*--- +info: String.prototype.toLowerCase() +description: Instance is Boolean object +---*/ __instance = new Boolean; @@ -19,4 +17,3 @@ if (__instance.toLowerCase() !== "false") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T3.js index 54139f5dd..015f4763d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T3.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T3.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.toLowerCase() +description: Checking by using eval +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (eval("\"BJ\"").toLowerCase() !== "bj") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T4.js index 90bfba984..58afef573 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T4.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T4.js - * @description Call toLowerCase() function without arguments of string and from empty string - */ +/*--- +info: String.prototype.toLowerCase() +description: > + Call toLowerCase() function without arguments of string and from + empty string +---*/ var __lowerCase = "".toLowerCase(); @@ -43,4 +43,3 @@ if (__lowerCase[0]!==__expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T5.js index 5ce9cf486..20a595f09 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T5.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T5.js - * @description Call toLowerCase() function for function call - */ +/*--- +info: String.prototype.toLowerCase() +description: Call toLowerCase() function for function call +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "GnulLuNa"}().toLowerCase() !== "gnulluna") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T6.js index 74c3849c3..c3fcda5a8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T6.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T6.js - * @description Call toLowerCase() function of Number.NEGATIVE_INFINITY - */ +/*--- +info: String.prototype.toLowerCase() +description: Call toLowerCase() function of Number.NEGATIVE_INFINITY +---*/ Number.prototype.toLowerCase = String.prototype.toLowerCase; @@ -17,6 +15,3 @@ if ((Number.NEGATIVE_INFINITY).toLowerCase() !== "-infinity") { } // ////////////////////////////////////////////////////////////////////////////// - - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T7.js index e348fe4bf..e35e78fa3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T7.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T7.js - * @description Call toLowerCase() function of NaN - */ +/*--- +info: String.prototype.toLowerCase() +description: Call toLowerCase() function of NaN +---*/ Number.prototype.toLowerCase = String.prototype.toLowerCase; @@ -17,4 +15,3 @@ if (NaN.toLowerCase()!== "nan") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T8.js index 304e76947..b1445f301 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T8.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T8.js - * @description Call toLowerCase() function of Infinity - */ +/*--- +info: String.prototype.toLowerCase() +description: Call toLowerCase() function of Infinity +---*/ Number.prototype.toLowerCase = String.prototype.toLowerCase; if (Infinity.toLowerCase()!== "infinity") { $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: '+Infinity.toLowerCase()); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T9.js index 491617d2a..ec2411de4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T9.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.toLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A1_T9.js - * @description Call toLowerCase() function of string object - */ +/*--- +info: String.prototype.toLowerCase() +description: Call toLowerCase() function of string object +---*/ var __obj = { valueOf:function(){}, @@ -50,4 +48,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A2_T1.js index 1c9eb5102..dda7dc73e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A2_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.toLowerCase() return a string, but not a String object - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A2_T1.js - * @description Checking returned result - */ +/*--- +info: String.prototype.toLowerCase() return a string, but not a String object +description: Checking returned result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -31,4 +29,3 @@ if ("Hello, WoRlD!".toLowerCase() ===new String("hello, world!")) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A6.js index c041b10fd..9c02bdde0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_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.toLowerCase has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A6.js - * @description Checking String.prototype.toLowerCase.prototype - */ +/*--- +info: String.prototype.toLowerCase has not prototype property +description: Checking String.prototype.toLowerCase.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.toLowerCase.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A7.js index 263b4bc38..6ab66c205 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A7.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.toLowerCase can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A7.js - * @description Checking if creating the String.prototype.toLowerCase object fails - */ +/*--- +info: String.prototype.toLowerCase can't be used as constructor +description: Checking if creating the String.prototype.toLowerCase object fails +includes: [$FAIL.js] +---*/ var __FACTORY = String.prototype.toLowerCase; @@ -18,5 +17,3 @@ try { $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e)); } }; - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A8.js index 3c155cce3..5d9f8a0cc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_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 String.prototype.toLowerCase.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A8.js - * @description Checking if enumerating the String.prototype.toLowerCase.length property fails - */ +/*--- +info: > + The String.prototype.toLowerCase.length property has the attribute + DontEnum +description: > + Checking if enumerating the String.prototype.toLowerCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +41,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A9.js index f559e4c29..41f260e53 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_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 String.prototype.toLowerCase.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.16/S15.5.4.16_A9.js - * @description Checking if deleting the String.prototype.toLowerCase.length property fails - */ +/*--- +info: > + The String.prototype.toLowerCase.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.toLowerCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A10.js index a702ec2ce..d62d2583d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A10.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 String.prototype.toLocaleLowerCase.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A10.js - * @description Checking if varying the String.prototype.toLocaleLowerCase.length property fails - */ +/*--- +info: > + The String.prototype.toLocaleLowerCase.length property has the attribute + ReadOnly +description: > + Checking if varying the String.prototype.toLocaleLowerCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +30,3 @@ if (String.prototype.toLocaleLowerCase.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A11.js index 3fd223e90..271836029 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_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 toLocaleLowerCase method is 0 - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A11.js - * @description Checking String.prototype.toLocaleLowerCase.length - */ +/*--- +info: The length property of the toLocaleLowerCase method is 0 +description: Checking String.prototype.toLocaleLowerCase.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.toLocaleLowerCase.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T1.js index 84029609f..232d85382 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T1.js - * @description Arguments is true, and instance is object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Arguments is true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.toLocaleLowerCase() !== "true") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T10.js index 73445f1a1..ae5c61bd4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T10.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T10.js - * @description Call toLocaleLowerCase() function of object with overrode toString function - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: > + Call toLocaleLowerCase() function of object with overrode toString + function +---*/ var __obj = {toString:function(){return "\u0041B";}} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -18,4 +18,3 @@ if (__obj.toLocaleLowerCase() !=="ab") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T11.js index 6b99d9775..e3e6c6347 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T11.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. -/** - * String.prototype.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T11.js - * @description Override toString function, toString throw exception, then call toLocaleLowerCase() function for this object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: > + Override toString function, toString throw exception, then call + toLocaleLowerCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -23,4 +24,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T12.js index 20cfc2a60..5b2ea0185 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T12.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. -/** - * String.prototype.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T12.js - * @description Override toString and valueOf functions, valueOf throw exception, then call toLocaleLowerCase() function for this object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: > + Override toString and valueOf functions, valueOf throw exception, + then call toLocaleLowerCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -23,4 +24,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T13.js index 3a229454e..8a40856be 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T13.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T13.js - * @description Override toString and valueOf functions, then call toLocaleLowerCase() function for this object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: > + Override toString and valueOf functions, then call + toLocaleLowerCase() function for this object +---*/ var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -26,4 +26,3 @@ if (__obj.toLocaleLowerCase().length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T14.js index 8e474fbb2..77e9475e9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T14.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T14.js - * @description Call toLocaleLowerCase() function for RegExp object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Call toLocaleLowerCase() function for RegExp object +---*/ var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -18,4 +16,3 @@ if (__reg.toLocaleLowerCase() !== "/abc/") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T2.js index 125a18a77..8ad761234 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T2.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T2.js - * @description Instance is Boolean object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Instance is Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +17,3 @@ if (__instance.toLocaleLowerCase() !== "false") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T3.js index e74aa0758..25f93c70e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T3.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T3.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Checking by using eval +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (eval("\"BJ\"").toLocaleLowerCase() !== "bj") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T4.js index b229a10ee..c854a8191 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T4.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T4.js - * @description Call toLocaleLowerCase() function without arguments of string and from empty string - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: > + Call toLocaleLowerCase() function without arguments of string and + from empty string +---*/ var __lowerCase = "".toLocaleLowerCase(); @@ -43,4 +43,3 @@ if (__lowerCase[0]!==__expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T5.js index ebf6c4f41..5ff97afee 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T5.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T5.js - * @description Call toLocaleLowerCase() function for function call - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Call toLocaleLowerCase() function for function call +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "GnulLuNa"}().toLocaleLowerCase() !== "gnulluna") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T6.js index 0f3a4999e..f84f37f24 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T6.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T6.js - * @description Call toLocaleLowerCase() function of Number.NEGATIVE_INFINITY - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Call toLocaleLowerCase() function of Number.NEGATIVE_INFINITY +---*/ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -17,4 +15,3 @@ if ((Number.NEGATIVE_INFINITY).toLocaleLowerCase() !== "-infinity") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T7.js index c85cbc297..68619e03d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T7.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T7.js - * @description Call toLocaleLowerCase() function of NaN - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Call toLocaleLowerCase() function of NaN +---*/ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; @@ -17,4 +15,3 @@ if (NaN.toLocaleLowerCase()!== "nan") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T8.js index 767b6f4af..0254c40ba 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T8.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T8.js - * @description Call toLocaleLowerCase() function of Infinity - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Call toLocaleLowerCase() function of Infinity +---*/ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; if (Infinity.toLocaleLowerCase()!== "infinity") { $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: '+Infinity.toLocaleLowerCase()); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T9.js index c73249b6c..e90df0c6d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T9.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.toLocaleLowerCase() - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A1_T9.js - * @description Call toLocaleLowerCase() function of string object - */ +/*--- +info: String.prototype.toLocaleLowerCase() +description: Call toLocaleLowerCase() function of string object +---*/ var __obj = { valueOf:function(){}, @@ -51,4 +49,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A2_T1.js index 012b0af9f..f18989b04 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A2_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. -/** - * String.prototype.toLocaleLowerCase() return a string, but not a String object - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A2_T1.js - * @description Checking returned result - */ +/*--- +info: > + String.prototype.toLocaleLowerCase() return a string, but not a String + object +description: Checking returned result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -31,4 +31,3 @@ if ("Hello, WoRlD!".toLocaleLowerCase() === new String("hello, world!")) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A6.js index 588d8b5cf..3f1372ce5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_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.toLocaleLowerCase has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A6.js - * @description Checking String.prototype.toLocaleLowerCase.prototype - */ +/*--- +info: String.prototype.toLocaleLowerCase has not prototype property +description: Checking String.prototype.toLocaleLowerCase.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.toLocaleLowerCase.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A7.js index 7e7ad4d47..8fe77c3be 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_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. -/** - * String.prototype.toLocaleLowerCase can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A7.js - * @description Checking if creating the String.prototype.toLocaleLowerCase object fails - */ +/*--- +info: String.prototype.toLocaleLowerCase can't be used as constructor +description: > + Checking if creating the String.prototype.toLocaleLowerCase object + fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var __FACTORY = String.prototype.toLocaleLowerCase; @@ -19,4 +22,3 @@ try { } $PRINT(e); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A8.js index f60e7d9e8..ef3ceec9e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_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 String.prototype.toLocaleLowerCase.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A8.js - * @description Checking if enumerating the String.prototype.toLocaleLowerCase.length property fails - */ +/*--- +info: > + The String.prototype.toLocaleLowerCase.length property has the attribute + DontEnum +description: > + Checking if enumerating the + String.prototype.toLocaleLowerCase.length property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +41,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A9.js index 9033c64c5..159fca472 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_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 String.prototype.toLocaleLowerCase.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.17/S15.5.4.17_A9.js - * @description Checking if deleting the String.prototype.toLocaleLowerCase.length property fails - */ +/*--- +info: > + The String.prototype.toLocaleLowerCase.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.toLocaleLowerCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A10.js index 98f3bdd84..889c1968d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A10.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 String.prototype.toUpperCase.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A10.js - * @description Checking if varying the String.prototype.toUpperCase.length property fails - */ +/*--- +info: > + The String.prototype.toUpperCase.length property has the attribute + ReadOnly +description: > + Checking if varying the String.prototype.toUpperCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +30,3 @@ if (String.prototype.toUpperCase.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A11.js index b6a2b2bf4..fa7a32f34 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_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 toUpperCase method is 0 - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A11.js - * @description Checking String.prototype.toUpperCase.length - */ +/*--- +info: The length property of the toUpperCase method is 0 +description: Checking String.prototype.toUpperCase.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.toUpperCase.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T1.js index c67e6f9cd..c0ebce236 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T1.js - * @description Arguments is true, and instance is object - */ +/*--- +info: String.prototype.toUpperCase() +description: Arguments is true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.toUpperCase() !== "TRUE") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T10.js index 95eadfd0a..6698abea2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T10.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T10.js - * @description Call toUpperCase() function of object with overrode toString function - */ +/*--- +info: String.prototype.toUpperCase() +description: > + Call toUpperCase() function of object with overrode toString + function +---*/ var __obj = {toString:function(){return "\u0041b";}} __obj.toUpperCase = String.prototype.toUpperCase; @@ -18,4 +18,3 @@ if (__obj.toUpperCase() !=="AB") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T11.js index ebc278f9b..1b56f26b4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T11.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. -/** - * String.prototype.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T11.js - * @description Override toString function, toString throw exception, then call toUpperCase() function for this object - */ +/*--- +info: String.prototype.toUpperCase() +description: > + Override toString function, toString throw exception, then call + toUpperCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}} __obj.toUpperCase = String.prototype.toUpperCase; @@ -22,4 +23,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T12.js index 2ffd076df..62faeaea4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T12.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. -/** - * String.prototype.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T12.js - * @description Override toString and valueOf functions, valueOf throw exception, then call toUpperCase() function for this object - */ +/*--- +info: String.prototype.toUpperCase() +description: > + Override toString and valueOf functions, valueOf throw exception, + then call toUpperCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} __obj.toUpperCase = String.prototype.toUpperCase; @@ -22,4 +23,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T13.js index 943aaf196..7b15b6618 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T13.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T13.js - * @description Override toString and valueOf functions, then call toUpperCase() function for this object - */ +/*--- +info: String.prototype.toUpperCase() +description: > + Override toString and valueOf functions, then call toUpperCase() + function for this object +---*/ var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} __obj.toUpperCase = String.prototype.toUpperCase; @@ -26,4 +26,3 @@ if (__obj.toUpperCase().length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T14.js index b292c07e4..54d358519 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T14.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T14.js - * @description Call toUpperCase() function of RegExp object - */ +/*--- +info: String.prototype.toUpperCase() +description: Call toUpperCase() function of RegExp object +---*/ var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; @@ -17,4 +15,3 @@ if (__reg.toUpperCase() !== "/ABC/") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T2.js index ab7f4a937..9f928e99f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T2.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T2.js - * @description Instance is Boolean object - */ +/*--- +info: String.prototype.toUpperCase() +description: Instance is Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +17,3 @@ if (__instance.toUpperCase() !== "FALSE") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T3.js index 9718313ae..542a54e18 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T3.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T3.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.toUpperCase() +description: Checking by using eval +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (eval("\"bj\"").toUpperCase() !== "BJ") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T4.js index 431961181..59c770313 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T4.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T4.js - * @description Call toUpperCase() function without arguments of string and from empty string - */ +/*--- +info: String.prototype.toUpperCase() +description: > + Call toUpperCase() function without arguments of string and from + empty string +---*/ var __lowerCase = "".toUpperCase(); @@ -43,4 +43,3 @@ if (__lowerCase[0]!==__expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T5.js index 00befc974..f1081bb1f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T5.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T5.js - * @description Call toUpperCase() function of function call - */ +/*--- +info: String.prototype.toUpperCase() +description: Call toUpperCase() function of function call +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "GnulLuNa"}().toUpperCase() !== "GNULLUNA") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T6.js index 5c48ce795..7908fb613 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T6.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T6.js - * @description Call toUpperCase() function of Number.NEGATIVE_INFINITY - */ +/*--- +info: String.prototype.toUpperCase() +description: Call toUpperCase() function of Number.NEGATIVE_INFINITY +---*/ Number.prototype.toUpperCase = String.prototype.toUpperCase; @@ -17,4 +15,3 @@ if ((Number.NEGATIVE_INFINITY).toUpperCase() !== "-INFINITY") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T7.js index 045d73371..b936cfda7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T7.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T7.js - * @description Call toUpperCase() function of NaN - */ +/*--- +info: String.prototype.toUpperCase() +description: Call toUpperCase() function of NaN +---*/ Number.prototype.toUpperCase = String.prototype.toUpperCase; @@ -17,4 +15,3 @@ if (NaN.toUpperCase()!== "NAN") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T8.js index 41f695e98..b4f6025a6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T8.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T8.js - * @description Call toUpperCase() function of Infinity; - */ +/*--- +info: String.prototype.toUpperCase() +description: Call toUpperCase() function of Infinity; +---*/ Number.prototype.toUpperCase = String.prototype.toUpperCase; if (Infinity.toUpperCase()!== "INFINITY") { $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: '+Infinity.toUpperCase()); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T9.js index bdf3e1f0d..bd12a025e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T9.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.toUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A1_T9.js - * @description Call toUpperCase() function of string object - */ +/*--- +info: String.prototype.toUpperCase() +description: Call toUpperCase() function of string object +---*/ var __obj = { valueOf:function(){}, @@ -50,4 +48,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A2_T1.js index 2a3aee0e7..3da9e7c39 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A2_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.toUpperCase() return a string, but not a String object - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A2_T1.js - * @description Checking returned result - */ +/*--- +info: String.prototype.toUpperCase() return a string, but not a String object +description: Checking returned result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -31,4 +29,3 @@ if ("Hello, WoRlD!".toUpperCase() ===new String("HELLO, WORLD!")) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A6.js index 236154391..7114cc1f5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_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.toUpperCase has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A6.js - * @description Checking String.prototype.toUpperCase.prototype - */ +/*--- +info: String.prototype.toUpperCase has not prototype property +description: Checking String.prototype.toUpperCase.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.toUpperCase.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A7.js index 1f443008a..a9fd9dcaa 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A7.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.toUpperCase can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A7.js - * @description Checking if creating the String.prototype.toUpperCase object fails - */ +/*--- +info: String.prototype.toUpperCase can't be used as constructor +description: Checking if creating the String.prototype.toUpperCase object fails +includes: [$FAIL.js] +---*/ var __FACTORY = String.prototype.toUpperCase; @@ -18,4 +17,3 @@ try { $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A8.js index ffd0737e9..4ac33f5a6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_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 String.prototype.toUpperCase.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A8.js - * @description Checking if enumerating the String.prototype.toUpperCase.length property fails - */ +/*--- +info: > + The String.prototype.toUpperCase.length property has the attribute + DontEnum +description: > + Checking if enumerating the String.prototype.toUpperCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +41,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A9.js index 575fddb02..8f1e52932 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_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 String.prototype.toUpperCase.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.18/S15.5.4.18_A9.js - * @description Checking if deleting the String.prototype.toUpperCase.length property fails - */ +/*--- +info: > + The String.prototype.toUpperCase.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.toUpperCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A10.js index 8be67c2cc..e125038a1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A10.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 String.prototype.toLocaleUpperCase.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A10.js - * @description Checking if varying the String.prototype.toLocaleUpperCase.length property fails - */ +/*--- +info: > + The String.prototype.toLocaleUpperCase.length property has the attribute + ReadOnly +description: > + Checking if varying the String.prototype.toLocaleUpperCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +30,3 @@ if (String.prototype.toLocaleUpperCase.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A11.js index 5d00ec411..e2cdb6330 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_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 toLocaleUpperCase method is 0 - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A11.js - * @description Checking String.prototype.toLocaleUpperCase.length - */ +/*--- +info: The length property of the toLocaleUpperCase method is 0 +description: Checking String.prototype.toLocaleUpperCase.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.toLocaleUpperCase.length !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T1.js index 1a5c847ed..21f00e2ff 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T1.js - * @description Arguments is true, and instance is object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Arguments is true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.toLocaleUpperCase() !== "TRUE") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T10.js index 20d2f9ec1..0d1ae91ef 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T10.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T10.js - * @description Call toLocaleUpperCase() function of object with overrode toString function - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: > + Call toLocaleUpperCase() function of object with overrode toString + function +---*/ var __obj = {toString:function(){return "\u0041b";}} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -18,4 +18,3 @@ if (__obj.toLocaleUpperCase() !=="AB") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T11.js index 2cb6d82e2..06cdf0848 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T11.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. -/** - * String.prototype.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T11.js - * @description Override toString function, toString throw exception, then call toLocaleUpperCase() function for this object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: > + Override toString function, toString throw exception, then call + toLocaleUpperCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -22,4 +23,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T12.js index 8f50b6ff7..033b094c9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T12.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. -/** - * String.prototype.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T12.js - * @description Override toString and valueOf functions, valueOf throw exception, then call toLocaleUpperCase() function for this object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: > + Override toString and valueOf functions, valueOf throw exception, + then call toLocaleUpperCase() function for this object +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -22,4 +23,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T13.js index ee407e2d5..48e1942c6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T13.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T13.js - * @description Override toString and valueOf functions, then call toLocaleUpperCase() function for this object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: > + Override toString and valueOf functions, then call + toLocaleUpperCase() function for this object +---*/ var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -25,4 +25,3 @@ if (__obj.toLocaleUpperCase().length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T14.js index 62a343b5c..f54e98ef5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T14.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T14.js - * @description Call toLocaleUpperCase() function for RegExp object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Call toLocaleUpperCase() function for RegExp object +---*/ var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -17,4 +15,3 @@ if (__reg.toLocaleUpperCase() !== "/ABC/") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T2.js index 72acb65e3..536631282 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T2.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T2.js - * @description Instance is Boolean object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Instance is Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +17,3 @@ if (__instance.toLocaleUpperCase() !== "FALSE") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T3.js index 021fe7abd..9acaebb78 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T3.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T3.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Checking by using eval +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (eval("\"bj\"").toLocaleUpperCase() !== "BJ") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T4.js index 3f4280378..11f92119c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T4.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T4.js - * @description Call toLocaleUpperCase() function without arguments of string and from empty string - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: > + Call toLocaleUpperCase() function without arguments of string and + from empty string +---*/ var __lowerCase = "".toLocaleUpperCase(); var __expected = ""; @@ -42,4 +42,3 @@ if (__lowerCase[0]!==__expected[0]) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T5.js index 1a341f4f0..b96342ae4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T5.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T5.js - * @description Call toLocaleUpperCase() function of function call - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Call toLocaleUpperCase() function of function call +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "GnulLuNa"}().toLocaleUpperCase() !== "GNULLUNA") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T6.js index a365a6305..09cf28b66 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T6.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T6.js - * @description Call toLocaleUpperCase() function of Number.NEGATIVE_INFINITY - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Call toLocaleUpperCase() function of Number.NEGATIVE_INFINITY +---*/ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -17,5 +15,3 @@ if ((Number.NEGATIVE_INFINITY).toLocaleUpperCase() !== "-INFINITY") { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T7.js index 24789c2fd..e71cadec9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T7.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T7.js - * @description Call toLocaleUpperCase() function of NaN - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Call toLocaleUpperCase() function of NaN +---*/ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; @@ -17,4 +15,3 @@ if (NaN.toLocaleUpperCase()!== "NAN") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T8.js index a1ab41573..d910279d1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T8.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T8.js - * @description Call toLocaleUpperCase() function of Infinity - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Call toLocaleUpperCase() function of Infinity +---*/ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; if (Infinity.toLocaleUpperCase()!== "INFINITY") { $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: '+Infinity.toLocaleUpperCase()); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T9.js index 39e3aef5a..2218566e2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T9.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.toLocaleUpperCase() - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A1_T9.js - * @description Call toLocaleUpperCase() function of string object - */ +/*--- +info: String.prototype.toLocaleUpperCase() +description: Call toLocaleUpperCase() function of string object +---*/ var __obj = { valueOf:function(){}, @@ -50,4 +48,3 @@ for(var index=0; index<__expected.length; index++) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A2_T1.js index 210ec9b82..223ca7e84 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A2_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. -/** - * String.prototype.toLocaleUpperCase() return a string, but not a String object - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A2_T1.js - * @description Checking returned result - */ +/*--- +info: > + String.prototype.toLocaleUpperCase() return a string, but not a String + object +description: Checking returned result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -31,4 +31,3 @@ if ("Hello, WoRlD!".toLocaleUpperCase() ===new String("HELLO, WORLD!")) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A6.js index 59a8fb70a..39afb3b4f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_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.toLocaleUpperCase has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A6.js - * @description Checking String.prototype.toLocaleUpperCase.prototype - */ +/*--- +info: String.prototype.toLocaleUpperCase has not prototype property +description: Checking String.prototype.toLocaleUpperCase.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.toLocaleUpperCase.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A7.js index d5ac01624..f4385bc29 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A7.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. -/** - * String.prototype.toLocaleUpperCase can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A7.js - * @description Checking if creating the String.prototype.toLocaleUpperCase object fails - */ +/*--- +info: String.prototype.toLocaleUpperCase can't be used as constructor +description: > + Checking if creating the String.prototype.toLocaleUpperCase object + fails +includes: [$FAIL.js] +---*/ var __FACTORY = String.prototype.toLocaleUpperCase; @@ -18,4 +19,3 @@ try { $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A8.js index a2bea7095..ae4278b16 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_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 String.prototype.toLocaleUpperCase.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A8.js - * @description Checking if enumerating the String.prototype.toLocaleUpperCase.length property fails - */ +/*--- +info: > + The String.prototype.toLocaleUpperCase.length property has the attribute + DontEnum +description: > + Checking if enumerating the + String.prototype.toLocaleUpperCase.length property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +41,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A9.js index 05c09831e..ddab77368 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_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 String.prototype.toLocaleUpperCase.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.19/S15.5.4.19_A9.js - * @description Checking if deleting the String.prototype.toLocaleUpperCase.length property fails - */ +/*--- +info: > + The String.prototype.toLocaleUpperCase.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.toLocaleUpperCase.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js index 79169e5ea..6ec0605ab 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js @@ -1,18 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-1.js
- * @description String.prototype.trim must exist as a function
- */
-
-
-function testcase() {
- var f = String.prototype.trim;
- if (typeof(f) === "function") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim must exist as a function +includes: [runTestCase.js] +---*/ + +function testcase() { + var f = String.prototype.trim; + if (typeof(f) === "function") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js index b398bbbfd..bed4f646b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-0-2.js
- * @description String.prototype.trim must exist as a function taking 0 parameters
- */
-
-
-function testcase() {
- if (String.prototype.trim.length === 0) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim must exist as a function taking 0 parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + if (String.prototype.trim.length === 0) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js index 25ed95e5e..919519085 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-1.js
- * @description String.prototype.trim throws TypeError when string is undefined
- */
-
-
-function testcase() {
- try
- {
- String.prototype.trim.call(undefined);
- return false;
- }
- catch(e)
- {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim throws TypeError when string is undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + String.prototype.trim.call(undefined); + return false; + } + catch(e) + { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js index 59fbdf1c0..f6bae3ed3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js @@ -1,23 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-2.js
- * @description String.prototype.trim throws TypeError when string is null
- */
-
-
-function testcase() {
- try
- {
- String.prototype.trim.call(null);
- return false;
- }
- catch(e)
- {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim throws TypeError when string is null +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + String.prototype.trim.call(null); + return false; + } + catch(e) + { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js index 44d698147..cc416842a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-3.js
- * @description String.prototype.trim works for primitive type boolean
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call(true) == "true")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for primitive type boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call(true) == "true") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js index 45427be32..5fbb5b8de 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-4.js
- * @description String.prototype.trim works for primitive type number
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call(0) == "0")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for primitive type number +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call(0) == "0") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js index 5a52aefb4..59c7b5ac0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-5.js
- * @description String.prototype.trim works for an Object
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call({})=="[object Object]")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for an Object +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call({})=="[object Object]") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js index 58cc06917..94ba05ac4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-6.js
- * @description String.prototype.trim works for an String
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call(new String()) == "")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for an String +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call(new String()) == "") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js index eeba20fd9..f5e2ccfef 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-7.js
- * @description String.prototype.trim works for a primitive string
- */
-
-
-function testcase() {
- try
- {
- if(String.prototype.trim.call("abc") === "abc")
- return true;
- }
- catch(e)
- {
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim works for a primitive string +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + if(String.prototype.trim.call("abc") === "abc") + return true; + } + catch(e) + { + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js index 834bcd3c8..332805171 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-8.js
- * @description String.prototype.trim works for a primitive string (value is ' abc')
- */
-
-
-function testcase() {
- var strObj = String(" abc");
- return "abc" === strObj.trim() && strObj.toString() === " abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim works for a primitive string (value is ' + abc') +includes: [runTestCase.js] +---*/ + +function testcase() { + var strObj = String(" abc"); + return "abc" === strObj.trim() && strObj.toString() === " abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js index d7e1e1275..a647b72a9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-1-9.js
- * @description String.prototype.trim works for a String object which value is undefined
- */
-
-
-function testcase() {
- var strObj = new String(undefined);
- return strObj.trim() === "undefined";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim works for a String object which value is + undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + var strObj = new String(undefined); + return strObj.trim() === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js index 9c9163894..7f06cc45f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-1.js
- * @description String.prototype.trim - argument 'this' is a boolean whose value is false
- */
-
-
-function testcase() {
- return String.prototype.trim.call(false) === "false";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a boolean whose value + is false +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(false) === "false"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js index 799243a29..a67144e6d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-10.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is +Infinity)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(+Infinity) === "Infinity";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is +Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(+Infinity) === "Infinity"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js index 030844255..a1ca4451a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-11.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is -Infinity)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(-Infinity) === "-Infinity";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is -Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(-Infinity) === "-Infinity"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js index ee786b0bc..b7d881dd9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-12.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 20 zeros))
- */
-
-
-function testcase() {
- return String.prototype.trim.call(100000000000000000000) === "100000000000000000000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 20 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(100000000000000000000) === "100000000000000000000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js index 3018d93bf..d567456b8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-13.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 21 zeros))
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1000000000000000000000) === "1e+21";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 21 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1000000000000000000000) === "1e+21"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js index 9e7d0863f..ef235f30c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-14.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 22 zeros))
- */
-
-
-function testcase() {
- return String.prototype.trim.call(10000000000000000000000) === "1e+22";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 22 zeros)) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(10000000000000000000000) === "1e+22"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js index 01f322384..ec5a09815 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-15.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e+20)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e+20) === "100000000000000000000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e+20) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e+20) === "100000000000000000000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js index 49bbcae8d..2a5c14c36 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-16.js
- * @description String.prototype.trim - argument 'this' is a number that converts to string (value is 1e+21)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e+21) === "1e+21";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to string (value is 1e+21) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e+21) === "1e+21"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js index 311f85030..b28f0b6c9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-17.js
- * @description String.prototype.trim - argument 'this' is a number that converts to string (value is 1e+22)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e+22) === "1e+22";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to string (value is 1e+22) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e+22) === "1e+22"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js index a8338d4f3..c5bda3ded 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-18.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 0.000001)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0.000001) === "0.000001";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 0.000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0.000001) === "0.000001"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js index 1697f61ad..65937d246 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-19.js
- * @description String.prototype.trim - argument argument 'this' is a number that converts to a string (value is 0.0000001)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0.0000001) === "1e-7";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument argument 'this' is a number that + converts to a string (value is 0.0000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0.0000001) === "1e-7"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js index f92684bde..af7aa3125 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-2.js
- * @description String.prototype.trim - argument 'this' is a boolean whose value is true
- */
-
-
-function testcase() {
- return String.prototype.trim.call(true) === "true";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a boolean whose value + is true +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(true) === "true"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js index 80684263d..de2d9fac4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-20.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 0.00000001)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0.00000001) === "1e-8";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 0.00000001) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0.00000001) === "1e-8"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js index 2810c3826..ddc4812f3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-21.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e-7)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e-7) === "1e-7";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e-7) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e-7) === "1e-7"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js index e6f2f06b9..796b6495c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-22.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e-6)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e-6) === "0.000001";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e-6) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e-6) === "0.000001"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js index 7bbbc38c9..e2a3cc527 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-23.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1e-5)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(1e-5) === "0.00001";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1e-5) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(1e-5) === "0.00001"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js index 4fa0a9569..05819ae06 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-24.js
- * @description String.prototype.trim - argument 'this' is an integer that converts to a string (value is 123)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(123) === "123";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is an integer that + converts to a string (value is 123) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(123) === "123"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js index 6da83849f..2773ab7d8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-25.js
- * @description String.prototype.trim - argument 'this' is a decimal that converts to a string (value is 123.456)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(123.456) === "123.456";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a decimal that converts + to a string (value is 123.456) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(123.456) === "123.456"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js index 1897b31df..29d1a251a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-26.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 1(following 20 zeros).123)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(100000000000000000000.123) === "100000000000000000000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 1(following 20 zeros).123) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(100000000000000000000.123) === "100000000000000000000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js index 5016000aa..8fb9a1443 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-27.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 123.1234567)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(123.1234567) === "123.1234567";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 123.1234567) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(123.1234567) === "123.1234567"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js index 46d87e7b6..83144bddf 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-28.js
- * @description String.prototype.trim - argument 'this' is an empty string
- */
-
-
-function testcase() {
- return String.prototype.trim.call("") === "";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - argument 'this' is an empty string +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("") === ""; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js index 9dcbb5eda..2a27d4b71 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js @@ -1,16 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-29.js
- * @description String.prototype.trim - argument 'this' is a string(value is 'AB
- * \cd')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("AB\n\\cd") === "AB\n\\cd";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is 'AB + \cd') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("AB\n\\cd") === "AB\n\\cd"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js index 2430fdb00..1081fa4bd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-3.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is NaN)
- */
-
-function testcase() {
- return String.prototype.trim.call(NaN) === "NaN";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is NaN) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(NaN) === "NaN"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js index 9008c60c4..fc9e1b38b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-30.js
- * @description String.prototype.trim - argument 'this' is a string(value is 'undefined')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("undefined") === "undefined";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is + 'undefined') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("undefined") === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js index 6b4dc4baf..0ae17a6f7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-31.js
- * @description String.prototype.trim - argument 'this' is a string(value is 'null')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("null") === "null";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is + 'null') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("null") === "null"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js index c1cf69927..7e6ff1162 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-32.js
- * @description String.prototype.trim - argument 'this' is a string(value is '123#$%abc')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("123#$%abc") === "123#$%abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a string(value is + '123#$%abc') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("123#$%abc") === "123#$%abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js index fc849ec9d..a30109d79 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-33.js
- * @description String.prototype.trim - argument 'this' is a string(value is '1')
- */
-
-
-function testcase() {
- return String.prototype.trim.call("1") === "1";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - argument 'this' is a string(value is '1') +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call("1") === "1"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js index 31cf3dfe7..d3a69d194 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-34.js
- * @description String.prototype.trim - 'this' is an array that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call([1]) === '1');
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an array that converts to a + string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call([1]) === '1'); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js index 5dd2f142a..cf8ae4675 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-35.js
- * @description String.prototype.trim - 'this' is a String Object that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call(new String("abc")) === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a String Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call(new String("abc")) === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js index 7ef134087..1faa6da30 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-36.js
- * @description String.prototype.trim - 'this' is a Boolean Object that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call(new Boolean(false)) === "false");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Boolean Object that converts + to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call(new Boolean(false)) === "false"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js index a10bfd477..b82981e7a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-37.js
- * @description String.prototype.trim - 'this' is a Number Object that converts to a string
- */
-
-
-function testcase() {
- return (String.prototype.trim.call(new Number(123)) === "123");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Number Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return (String.prototype.trim.call(new Number(123)) === "123"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js index dcdb7ec19..aa4a66cc8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-38.js
- * @description String.prototype.trim - 'this' is an object which has an own toString method
- */
-
-
-function testcase() {
- var obj = {
- toString: function () {
- return "abc";
- }
- };
-
- return (String.prototype.trim.call(obj) === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object which has an own + toString method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { + toString: function () { + return "abc"; + } + }; + + return (String.prototype.trim.call(obj) === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js index 5cc60088f..9a7239e02 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-39.js
- * @description String.prototype.trim - 'this' is an object which has an own valueOf method
- */
-
-
-function testcase() {
- var obj = {
- valueOf: function () {
- return "abc";
- }
- };
-
- return (String.prototype.trim.call(obj) === "[object Object]");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object which has an own + valueOf method +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = { + valueOf: function () { + return "abc"; + } + }; + + return (String.prototype.trim.call(obj) === "[object Object]"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js index f8cf35917..834bd14f9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-4.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is 0)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(0) === "0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is 0) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(0) === "0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js index b2b014641..a74b353c6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js @@ -1,27 +1,30 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-40.js
- * @description String.prototype.trim - 'this' is an object that has an own toString method that returns an object and valueOf method that returns a primitive value
- */
-
-
-function testcase() {
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "abc";
- }
- };
- return (String.prototype.trim.call(obj) === "abc") && valueOfAccessed && toStringAccessed;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object that has an own + toString method that returns an object and valueOf method that + returns a primitive value +includes: [runTestCase.js] +---*/ + +function testcase() { + var toStringAccessed = false; + var valueOfAccessed = false; + var obj = { + toString: function () { + toStringAccessed = true; + return {}; + }, + valueOf: function () { + valueOfAccessed = true; + return "abc"; + } + }; + return (String.prototype.trim.call(obj) === "abc") && valueOfAccessed && toStringAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js index 16010f310..e3c218928 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js @@ -1,27 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-41.js
- * @description String.prototype.trim - 'this' is an object which has an own toString and valueOf method.
- */
-
-
-function testcase() {
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- },
- valueOf: function () {
- valueOfAccessed = true;
- return "cef";
- }
- };
- return (String.prototype.trim.call(obj) === "abc") && !valueOfAccessed && toStringAccessed;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object which has an own + toString and valueOf method. +includes: [runTestCase.js] +---*/ + +function testcase() { + var toStringAccessed = false; + var valueOfAccessed = false; + var obj = { + toString: function () { + toStringAccessed = true; + return "abc"; + }, + valueOf: function () { + valueOfAccessed = true; + return "cef"; + } + }; + return (String.prototype.trim.call(obj) === "abc") && !valueOfAccessed && toStringAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js index 79276eb30..fddf7aef9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js @@ -1,32 +1,35 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-42.js
- * @description String.prototype.trim - TypeError exception was thrown when 'this' is an object that both toString and valueOf wouldn't return primitive value.
- */
-
-
-function testcase() {
- var toStringAccessed = false;
- var valueOfAccessed = false;
- var obj = {
- toString: function () {
- toStringAccessed = true;
- return {};
- },
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- }
- };
- try {
- String.prototype.trim.call(obj);
- return false;
- } catch (e) {
- return valueOfAccessed && toStringAccessed && (e instanceof TypeError);
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - TypeError exception was thrown when + 'this' is an object that both toString and valueOf wouldn't return + primitive value. +includes: [runTestCase.js] +---*/ + +function testcase() { + var toStringAccessed = false; + var valueOfAccessed = false; + var obj = { + toString: function () { + toStringAccessed = true; + return {}; + }, + valueOf: function () { + valueOfAccessed = true; + return {}; + } + }; + try { + String.prototype.trim.call(obj); + return false; + } catch (e) { + return valueOfAccessed && toStringAccessed && (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js index a100e3dfa..96c548f72 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js @@ -1,34 +1,37 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-43.js
- * @description String.prototype.trim - 'this' is an object with an own valueOf and inherited toString methods with hint string, verify inherited toString method will be called first
- */
-
-
-function testcase() {
-
- var toStringAccessed = false;
- var valueOfAccessed = false;
-
- var proto = {
- toString: function () {
- toStringAccessed = true;
- return "abc";
- }
- };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.valueOf = function () {
- valueOfAccessed = true;
- return "efg";
- };
- return (String.prototype.trim.call(child) === "abc") && toStringAccessed && !valueOfAccessed;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is an object with an own valueOf + and inherited toString methods with hint string, verify inherited + toString method will be called first +includes: [runTestCase.js] +---*/ + +function testcase() { + + var toStringAccessed = false; + var valueOfAccessed = false; + + var proto = { + toString: function () { + toStringAccessed = true; + return "abc"; + } + }; + + var Con = function () { }; + Con.prototype = proto; + + var child = new Con(); + child.valueOf = function () { + valueOfAccessed = true; + return "efg"; + }; + return (String.prototype.trim.call(child) === "abc") && toStringAccessed && !valueOfAccessed; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js index b92ed088a..c9d258329 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-44.js
- * @description String.prototype.trim - 'this' is a string that contains east Asian characters (value is 'SD咕噜')
- */
-
-
-function testcase() {
- var str = "SD咕噜";
- return str.trim() === str;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a string that contains east + Asian characters (value is 'SD咕噜') +includes: [runTestCase.js] +---*/ + +function testcase() { + var str = "SD咕噜"; + return str.trim() === str; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js index 7d58bc7c9..133591c8b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-45.js
- * @description String.prototype.trim - 'this' is a string that contains white space, character, number, object and null characters
- */
-
-
-function testcase() {
- var str = "abc" + " " + 123 + " " + {} + " " + "\u0000";
- var str1 = " " + str + " ";
- return str1.trim() === str;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a string that contains white + space, character, number, object and null characters +includes: [runTestCase.js] +---*/ + +function testcase() { + var str = "abc" + " " + 123 + " " + {} + " " + "\u0000"; + var str1 = " " + str + " "; + return str1.trim() === str; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js index fec8f9e58..87a357bf7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-46.js
- * @description String.prototype.trim - 'this' is a Function Object that converts to a string
- */
-
-
-function testcase() {
- var funObj = function () { return arguments; };
- return typeof(String.prototype.trim.call(funObj)) === "string";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Function Object that converts + to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var funObj = function () { return arguments; }; + return typeof(String.prototype.trim.call(funObj)) === "string"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js index 6a27f832e..8a7811201 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-47.js
- * @description String.prototype.trim - 'this' is a object Object that converts to a string
- */
-
-
-function testcase() {
- return String.prototype.trim.call({}) === "[object Object]";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a object Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call({}) === "[object Object]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js index bce2031ee..884df0e5b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-49.js
- * @description String.prototype.trim - 'this' is a RegExp Object that converts to a string
- */
-
-
-function testcase() {
- var regObj = new RegExp(/test/);
- return String.prototype.trim.call(regObj) === "/test/";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a RegExp Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var regObj = new RegExp(/test/); + return String.prototype.trim.call(regObj) === "/test/"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js index d1c2a20b2..4d8d7bf47 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-5.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is +0)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(+0) === "0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is +0) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(+0) === "0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js index 23f4a60b1..6beb07cfe 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-50.js
- * @description String.prototype.trim - 'this' is a Error Object that converts to a string
- */
-
-
-function testcase() {
- var errObj = new Error("test");
- return String.prototype.trim.call(errObj) === "Error: test";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Error Object that converts to + a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var errObj = new Error("test"); + return String.prototype.trim.call(errObj) === "Error: test"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js index d83df0ce9..c3d400cb7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js @@ -1,16 +1,18 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-51.js
- * @description String.prototype.trim - 'this' is a Arguments Object that converts to a string
- */
-
-
-function testcase() {
- var argObj = function () { return arguments; } (1, 2, true);
- return String.prototype.trim.call(argObj) === "[object Arguments]";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'this' is a Arguments Object that converts + to a string +includes: [runTestCase.js] +---*/ + +function testcase() { + var argObj = function () { return arguments; } (1, 2, true); + return String.prototype.trim.call(argObj) === "[object Arguments]"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js index 1db5fa422..8e8653c3e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-6.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is -0)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(-0) === "0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is -0) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(-0) === "0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js index b57f0d9bd..068b16256 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-7.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is positive number)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(30) === "30";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is positive number) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(30) === "30"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js index 3fc21f36a..44f5698bc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-8.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is negative number)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(-20) === "-20";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is negative number) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(-20) === "-20"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js index 9d6336f3e..4b57e844b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-2-9.js
- * @description String.prototype.trim - argument 'this' is a number that converts to a string (value is Infinity)
- */
-
-
-function testcase() {
- return String.prototype.trim.call(Infinity) === "Infinity";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - argument 'this' is a number that converts + to a string (value is Infinity) +includes: [runTestCase.js] +---*/ + +function testcase() { + return String.prototype.trim.call(Infinity) === "Infinity"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js index 9967f0ea9..c62f49e80 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-1.js
- * @description String.prototype.trim - 'S' is a string with all LineTerminator
- */
-
-
-function testcase() {
-
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- return (lineTerminatorsStr.trim() === "");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with all LineTerminator +includes: [runTestCase.js] +---*/ + +function testcase() { + + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + return (lineTerminatorsStr.trim() === ""); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js index b580cc034..0a0b0a111 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-10.js
- * @description String.prototype.trim - 'S' is a string with null character ('\u0000')
- */
-
-
-function testcase() {
- return "\u0000".trim() === "\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string with null character + ('\u0000') +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\u0000".trim() === "\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js index 95de0a5b0..9f2e0a7f7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-11.js
- * @description String.prototype.trim - 'S' is a string that starts with null character
- */
-
-
-function testcase() {
- return "\0\u0000abc".trim() === "\0\u0000abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that starts with null + character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0\u0000abc".trim() === "\0\u0000abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js index 6b139a5ff..49c8dc4f9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-12.js
- * @description String.prototype.trim - 'S' is a string that ends with null character
- */
-
-
-function testcase() {
- return "abc\0\u0000".trim() === "abc\0\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that ends with null + character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "abc\0\u0000".trim() === "abc\0\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js index d71d3c9be..5ca57d6d3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-13.js
- * @description String.prototype.trim - 'S' is a string that starts with null character and ends with null character
- */
-
-
-function testcase() {
- return "\0\u0000abc\0\u0000".trim() === "\0\u0000abc\0\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that starts with null + character and ends with null character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0\u0000abc\0\u0000".trim() === "\0\u0000abc\0\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js index 473678549..01a6a98b5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-14.js
- * @description String.prototype.trim - 'S' is a string that has null character in the middle
- */
-
-
-function testcase() {
- return "a\0\u0000bc".trim() === "a\0\u0000bc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that has null character in + the middle +includes: [runTestCase.js] +---*/ + +function testcase() { + return "a\0\u0000bc".trim() === "a\0\u0000bc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js index b749a07f6..841b7ce83 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js @@ -1,17 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-2.js
- * @description String.prototype.trim - 'S' is a string with all WhiteSpace
- */
-
-
-function testcase() {
-
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- return (whiteSpacesStr.trim() === "");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + return (whiteSpacesStr.trim() === ""); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js index 38cadc9af..0d56ae5e2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-3.js
- * @description String.prototype.trim - 'S' is a string with all union of WhiteSpace and LineTerminator
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = whiteSpacesStr + lineTerminatorsStr;
-
- return (str.trim() === "");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string with all union of + WhiteSpace and LineTerminator +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = whiteSpacesStr + lineTerminatorsStr; + + return (str.trim() === ""); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js index 16388a382..d0ceb6a73 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-4.js
- * @description String.prototype.trim - 'S' is a string start with union of all LineTerminator and all WhiteSpace
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = whiteSpacesStr + lineTerminatorsStr + "abc";
-
- return (str.trim() === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string start with union of all + LineTerminator and all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = whiteSpacesStr + lineTerminatorsStr + "abc"; + + return (str.trim() === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js index c9311b9cc..0b48c7149 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js
- * @description String.prototype.trim - 'S' is a string end with union of all LineTerminator and all WhiteSpace
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = "abc" + whiteSpacesStr + lineTerminatorsStr ;
-
- return (str.trim() === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string end with union of all + LineTerminator and all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = "abc" + whiteSpacesStr + lineTerminatorsStr ; + + return (str.trim() === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js index 76ce302b9..f421b3c37 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js @@ -1,19 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-6.js
- * @description String.prototype.trim - 'S' is a string start with union of all LineTerminator and all WhiteSpace and end with union of all LineTerminator and all WhiteSpace
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = whiteSpacesStr + lineTerminatorsStr + "abc" + whiteSpacesStr + lineTerminatorsStr;
-
- return (str.trim() === "abc");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string start with union of all + LineTerminator and all WhiteSpace and end with union of all + LineTerminator and all WhiteSpace +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = whiteSpacesStr + lineTerminatorsStr + "abc" + whiteSpacesStr + lineTerminatorsStr; + + return (str.trim() === "abc"); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js index c2d4c891f..a4942766b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-7.js
- * @description String.prototype.trim - 'S' is a string that union of LineTerminator and WhiteSpace in the middle
- */
-
-
-function testcase() {
- var lineTerminatorsStr = "\u000A\u000D\u2028\u2029";
- var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
- var str = "ab" + whiteSpacesStr + lineTerminatorsStr + "cd";
-
- return (str.trim() === str);
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim - 'S' is a string that union of + LineTerminator and WhiteSpace in the middle +includes: [runTestCase.js] +---*/ + +function testcase() { + var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; + var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; + var str = "ab" + whiteSpacesStr + lineTerminatorsStr + "cd"; + + return (str.trim() === str); + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js index bf32bbf76..a8c755c41 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-8.js
- * @description String.prototype.trim - 'S' is a string with all null character
- */
-
-
-function testcase() {
- return "\0\u0000".trim() === "\0\u0000";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with all null character +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0\u0000".trim() === "\0\u0000"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js index f7ee64861..1c5f3e7d6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-9.js
- * @description String.prototype.trim - 'S' is a string with null character ('\0')
- */
-
-
-function testcase() {
- return "\0".trim() === "\0";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: String.prototype.trim - 'S' is a string with null character ('\0') +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\0".trim() === "\0"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js index f565f96ad..e8a9a74f0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-1.js
- * @description String.prototype.trim handles multiline string with whitepace and lineterminators
- */
-
-
-function testcase() {
-var s = "\u0009a b\
-c \u0009"
-
-
- if (s.trim() === "a bc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles multiline string with whitepace and + lineterminators +includes: [runTestCase.js] +---*/ + +function testcase() { +var s = "\u0009a b\ +c \u0009" + + + if (s.trim() === "a bc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js index 5b17c7536..b19d15edc 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-10.js
- * @description String.prototype.trim handles whitepace and lineterminators (\uFEFFabc)
- */
-
-
-function testcase() {
- return "\uFEFFabc".trim() === "abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\uFEFFabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\uFEFFabc".trim() === "abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js index 254e14ad4..03dd4075c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-11.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u0009)
- */
-
-
-function testcase() {
- if ("abc\u0009".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u0009".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js index 0b948a0d7..3dae8de86 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-12.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000B)
- */
-
-
-function testcase() {
- if ("abc\u000B".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000B) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000B".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js index ee06d025b..50eac869b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-13.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000C)
- */
-
-
-function testcase() {
- if ("abc\u000C".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000C) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000C".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js index 99038992c..9219f9d09 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-14.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u0020)
- */
-
-
-function testcase() {
- if ("abc\u0020".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u0020) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u0020".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js index 600ba4766..bc571b92b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-16.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u00A0)
- */
-
-
-function testcase() {
- if ("abc\u00A0".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u00A0) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u00A0".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js index 287fbd585..637463b1f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-18.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\uFEFF)
- */
-
-
-function testcase() {
- return "abc\uFEFF".trim() === "abc";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\uFEFF) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "abc\uFEFF".trim() === "abc"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js index a172918c1..72a0a75ce 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-19.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0009abc\u0009)
- */
-
-
-function testcase() {
- if ("\u0009abc\u0009".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0009abc\u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0009abc\u0009".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js index 9cfea3598..9e3837c87 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-2.js
- * @description String.prototype.trim handles whitepace and lineterminators ( \u0009abc \u0009)
- */
-
-
-function testcase() {
- if (" \u0009abc \u0009".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators ( + \u0009abc \u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if (" \u0009abc \u0009".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js index 4a30711de..e56a416f5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-20.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Babc\u000B)
- */
-
-
-function testcase() {
- if ("\u000Babc\u000B".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Babc\u000B) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Babc\u000B".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js index 814a0a52d..f464103d2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-21.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Cabc\u000C)
- */
-
-
-function testcase() {
- if ("\u000Cabc\u000C".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Cabc\u000C) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Cabc\u000C".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js index 112d1c185..725a75338 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-22.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0020abc\u0020)
- */
-
-
-function testcase() {
- if ("\u0020abc\u0020".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0020abc\u0020) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0020abc\u0020".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js index 8fa1f4afa..2558db20b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-24.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u00A0abc\u00A0)
- */
-
-
-function testcase() {
- if ("\u00A0abc\u00A0".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u00A0abc\u00A0) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u00A0abc\u00A0".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js index a344dcfb2..852189fd4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-27.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0009\u0009)
- */
-
-
-function testcase() {
- if ("\u0009\u0009".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0009\u0009) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0009\u0009".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js index 9db3f868c..7e157a2c2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-28.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000B\u000B)
- */
-
-
-function testcase() {
- if ("\u000B\u000B".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000B\u000B) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000B\u000B".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js index cfcfd42a9..23870988b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-29.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000C\u000C)
- */
-
-
-function testcase() {
- if ("\u000C\u000C".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000C\u000C) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000C\u000C".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js index b13ffbe4b..68a60d97d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0009abc)
- */
-
-
-function testcase() {
- if ("\u0009abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0009abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0009abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js index 08393f0e2..ae0f0a7eb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-30.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0020\u0020)
- */
-
-
-function testcase() {
- if ("\u0020\u0020".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0020\u0020) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0020\u0020".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js index 3f77e5071..d60898490 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-32.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u00A0\u00A0)
- */
-
-
-function testcase() {
- if ("\u00A0\u00A0".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u00A0\u00A0) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u00A0\u00A0".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js index 79325a4c1..d2083b707 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-34.js
- * @description String.prototype.trim handles whitepace and lineterminators (\uFEFF\uFEFF)
- */
-
-
-function testcase() {
- return "\uFEFF\uFEFF".trim() === "";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\uFEFF\uFEFF) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "\uFEFF\uFEFF".trim() === ""; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js index 454f94bda..c32c26f21 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-35.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u0009c)
- */
-
-
-function testcase() {
- if ("ab\u0009c".trim() === "ab\u0009c") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u0009c) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u0009c".trim() === "ab\u0009c") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js index 58cd7d1de..0e7bc4f8b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-36.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u000Bc)
- */
-
-
-function testcase() {
- if ("ab\u000Bc".trim() === "ab\u000Bc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u000Bc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u000Bc".trim() === "ab\u000Bc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js index 9ab833133..8f463642f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-37.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u000Cc)
- */
-
-
-function testcase() {
- if ("ab\u000Cc".trim() === "ab\u000Cc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u000Cc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u000Cc".trim() === "ab\u000Cc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js index 4807a06cc..0262fc1eb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-38.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u0020c)
- */
-
-
-function testcase() {
- if ("ab\u0020c".trim() === "ab\u0020c") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u0020c) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u0020c".trim() === "ab\u0020c") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js index 00cf510e9..f7d3d8c1a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js @@ -1,15 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-39.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u0085c)
- */
-
-
-function testcase() {
- return "ab\u0085c".trim() === "ab\u0085c";
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u0085c) +includes: [runTestCase.js] +---*/ + +function testcase() { + return "ab\u0085c".trim() === "ab\u0085c"; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js index 1b45f4214..196f79c69 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-4.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Babc)
- */
-
-
-function testcase() {
- if ("\u000Babc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Babc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Babc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js index 45c1241ac..9bf195509 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-40.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u00A0c)
- */
-
-
-function testcase() {
- if ("ab\u00A0c".trim() === "ab\u00A0c") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u00A0c) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u00A0c".trim() === "ab\u00A0c") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js index 2b2ec8ca7..35195ff3f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-41.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\u200Bc)
- */
-
-
-function testcase() {
- if ("ab\u200Bc".trim() === "ab\u200Bc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\u200Bc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\u200Bc".trim() === "ab\u200Bc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js index 7e3ba26f1..52432527e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-42.js
- * @description String.prototype.trim handles whitepace and lineterminators (ab\uFEFFc)
- */
-
-
-function testcase() {
- if ("ab\uFEFFc".trim() === "ab\uFEFFc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (ab\uFEFFc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("ab\uFEFFc".trim() === "ab\uFEFFc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js index 01e285095..d50c8b1e7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-43.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Aabc)
- */
-
-
-function testcase() {
- if ("\u000Aabc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Aabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Aabc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js index 7b114197a..12b3b053a 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-44.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Dabc)
- */
-
-
-function testcase() {
- if ("\u000Dabc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Dabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Dabc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js index 2d8d044c6..acc59622e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-45.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2028abc)
- */
-
-
-function testcase() {
- if ("\u2028abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2028abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2028abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js index 133954a7b..9fc5a6062 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-46.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029abc)
- */
-
-
-function testcase() {
- if ("\u2029abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2029abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js index 27b373537..55efddd5f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-47.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000A)
- */
-
-
-function testcase() {
- if ("abc\u000A".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000A) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000A".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js index 9d1ead565..1b966ac9c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-48.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u000D)
- */
-
-
-function testcase() {
- if ("abc\u000D".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u000D) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u000D".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js index 306f013a3..af9e5a406 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-49.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u2028)
- */
-
-
-function testcase() {
- if ("abc\u2028".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u2028) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u2028".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js index ccd87bc8c..7e5f97334 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-5.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Cabc)
- */
-
-
-function testcase() {
- if ("\u000Cabc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Cabc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Cabc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js index 88a63f0e8..173b9cfdf 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-50.js
- * @description String.prototype.trim handles whitepace and lineterminators (abc\u2029)
- */
-
-
-function testcase() {
- if ("abc\u2029".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (abc\u2029) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("abc\u2029".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js index a37979269..a2d08b275 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-51.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Aabc\u000A)
- */
-
-
-function testcase() {
- if ("\u000Aabc\u000A".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Aabc\u000A) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Aabc\u000A".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js index 0fec37e4d..febbe8c6d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-52.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000Dabc\u000D)
- */
-
-
-function testcase() {
- if ("\u000Dabc\u000D".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000Dabc\u000D) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000Dabc\u000D".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js index 24e439830..ce584ccab 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-53.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2028abc\u2028)
- */
-
-
-function testcase() {
- if ("\u2028abc\u2028".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2028abc\u2028) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2028abc\u2028".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js index 930df3678..69c56908f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-54.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029abc\u2029)
- */
-
-
-function testcase() {
- if ("\u2029abc\u2029".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029abc\u2029) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2029abc\u2029".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js index e1d75f23f..256d4be29 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-55.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000A\u000A)
- */
-
-
-function testcase() {
- if ("\u000A\u000A".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000A\u000A) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000A\u000A".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js index 5b8591533..5d2bb518f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-56.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u000D\u000D)
- */
-
-
-function testcase() {
- if ("\u000D\u000D".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u000D\u000D) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u000D\u000D".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js index fc88fbfa5..8727b561e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-57.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2028\u2028)
- */
-
-
-function testcase() {
- if ("\u2028\u2028".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2028\u2028) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2028\u2028".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js index 8effdb4d7..2c4916cd7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-58.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029\u2029)
- */
-
-
-function testcase() {
- if ("\u2029\u2029".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029\u2029) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u2029\u2029".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js index ce66909c9..25567ab4e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-59.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u2029abc as a multiline string)
- */
-
-
-function testcase() {
- var s = "\u2029\
- abc";
- if (s.trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u2029abc as a multiline string) +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = "\u2029\ + abc"; + if (s.trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js index d7481bad3..93e25d550 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-6.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u0020abc)
- */
-
-
-function testcase() {
- if ("\u0020abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u0020abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u0020abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js index 496f6bc9f..0b9c1bb94 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-60.js
- * @description String.prototype.trim handles whitepace and lineterminators (string with just blanks)
- */
-
-
-function testcase() {
- if (" ".trim() === "") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (string with just blanks) +includes: [runTestCase.js] +---*/ + +function testcase() { + if (" ".trim() === "") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js index 3bbfd0638..7a7d6be2e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js @@ -1,17 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-8.js
- * @description String.prototype.trim handles whitepace and lineterminators (\u00A0abc)
- */
-
-
-function testcase() {
- if ("\u00A0abc".trim() === "abc") {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + String.prototype.trim handles whitepace and lineterminators + (\u00A0abc) +includes: [runTestCase.js] +---*/ + +function testcase() { + if ("\u00A0abc".trim() === "abc") { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1.1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1.1.js index d0dce498d..9f1b85c5f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1.1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1.1.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.charAt() can accept many arguments - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1.1.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.charAt() can accept many arguments +description: Checking by using eval +---*/ function __FACTORY(){this.toString = function(){ return "wizard";};}; @@ -23,5 +21,3 @@ with(__instance){ } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A10.js index f8295541b..f7ae92504 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A10.js - * @description Checking if varying the String.prototype.charAt.length property fails - */ +/*--- +info: The String.prototype.charAt.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.charAt.length property + fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +27,3 @@ if (String.prototype.charAt.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A11.js index 2dc2f275e..add28685c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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 charAt method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A11.js - * @description Checking String.prototype.charAt.length - */ +/*--- +info: The length property of the charAt method is 1 +description: Checking String.prototype.charAt.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.charAt.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T1.js index 0d6472672..1fe579655 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T1.js - * @description pos is false and true, and instance is object - */ +/*--- +info: String.prototype.charAt(pos) +description: pos is false and true, and instance is object +---*/ var __instance = new Object(42); @@ -19,4 +17,3 @@ if (__instance.charAt(false)+__instance.charAt(true) !== "42") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T10.js index 5f8113595..298428bab 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T10.js - * @description Call charAt() function with object argument - */ +/*--- +info: String.prototype.charAt(pos) +description: Call charAt() function with object argument +---*/ var __obj = {toString:function(){return 1;}} var __str = "lego"; @@ -20,4 +18,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T2.js index d162e3961..577566ee4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T2.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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T2.js - * @description pos is equation with false and true, and instance is Boolean object - */ +/*--- +info: String.prototype.charAt(pos) +description: pos is equation with false and true, and instance is Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +17,3 @@ if (__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) ! } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T4.js index e20809a4d..29caf3712 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T4.js - * @description Call charAt() function without argument of string object - */ +/*--- +info: String.prototype.charAt(pos) +description: Call charAt() function without argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if ("lego".charAt() !== "l") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T5.js index 4ec3eb8e2..de4440c48 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T5.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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T5.js - * @description Call charAt() function with null argument of function object - */ +/*--- +info: String.prototype.charAt(pos) +description: Call charAt() function with null argument of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "lego"}().charAt(null) !== "l") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T6.js index 02d4ffec4..319c47597 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T6.js - * @description Call charAt() function with x argument of new String object, where x is undefined variable - */ +/*--- +info: String.prototype.charAt(pos) +description: > + Call charAt() function with x argument of new String object, where + x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +18,3 @@ if (new String("lego").charAt(x) !== "l") { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T7.js index 978a9d750..52345a6b2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T7.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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T7.js - * @description Call charAt() function with undefined argument of string object - */ +/*--- +info: String.prototype.charAt(pos) +description: Call charAt() function with undefined argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (String("lego").charAt(undefined) !== "l") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T8.js index e70523eb4..dd0ad5f4e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T8.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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T8.js - * @description Call charAt() function with void 0 argument of string object - */ +/*--- +info: String.prototype.charAt(pos) +description: Call charAt() function with void 0 argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (String(42).charAt(void 0) !== "4") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T9.js index 8ad6dd314..11c43441e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A1_T9.js - * @description Call charAt() function with function(){}() argument of string object - */ +/*--- +info: String.prototype.charAt(pos) +description: > + Call charAt() function with function(){}() argument of string + object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (new String(42).charAt(function(){}()) !== "4") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A2.js index 1752c563b..e40ac01ee 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A2.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.charAt(pos) calls if ToInteger(pos) less than 0 the empty string returns - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A2.js - * @description Call charAt(pos) with negative pos - */ +/*--- +info: > + When String.prototype.charAt(pos) calls if ToInteger(pos) less than 0 the + empty string returns +description: Call charAt(pos) with negative pos +---*/ function __FACTORY(){}; @@ -21,4 +21,3 @@ if (__instance.charAt(-1) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A3.js index c41c5e1f4..b12bd142d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A3.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.charAt(pos) calls if ToInteger(pos) not less than ToString(this value) the empty string returns - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A3.js - * @description pos is bigger of string length - */ +/*--- +info: > + When String.prototype.charAt(pos) calls if ToInteger(pos) not less than + ToString(this value) the empty string returns +description: pos is bigger of string length +---*/ var __instance = new String("ABC"); @@ -17,4 +17,3 @@ if (__instance.charAt(3) !== "") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T1.js index c361749ac..ddb2d5602 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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. -/** - * If pos is a value of Number type that is an integer, then the result of x.charAt(pos) is equal to the result of x.substring(pos, pos+1) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T1.js - * @description Compare results of x.charAt(pos) and x.substring(pos, pos+1) - */ +/*--- +info: > + If pos is a value of Number type that is an integer, then the result of + x.charAt(pos) is equal to the result of x.substring(pos, pos+1) +description: Compare results of x.charAt(pos) and x.substring(pos, pos+1) +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +18,3 @@ for(var i=0; i<6; i++) { // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T2.js index 8b4b7441c..58057d991 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T2.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. -/** - * If pos is a value of Number type that is an integer, then the result of x.charAt(pos) is equal to the result of x.substring(pos, pos+1) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T2.js - * @description Compare results of x.charAt(pos) and x.substring(pos, pos+1), wheb pos is smaller of zero - */ +/*--- +info: > + If pos is a value of Number type that is an integer, then the result of + x.charAt(pos) is equal to the result of x.substring(pos, pos+1) +description: > + Compare results of x.charAt(pos) and x.substring(pos, pos+1), wheb + pos is smaller of zero +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +20,3 @@ for(var i=-2; i<0; i++) { // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T3.js index ca9a1369d..0bdff2dd2 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T3.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. -/** - * If pos is a value of Number type that is an integer, then the result of x.charAt(pos) is equal to the result of x.substring(pos, pos+1) - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A4_T3.js - * @description Compare results of x.charAt(pos) and x.substring(pos, pos+1), wheb pos is bigger string length - */ +/*--- +info: > + If pos is a value of Number type that is an integer, then the result of + x.charAt(pos) is equal to the result of x.substring(pos, pos+1) +description: > + Compare results of x.charAt(pos) and x.substring(pos, pos+1), wheb + pos is bigger string length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +20,3 @@ for(var i=6; i<8; i++) { // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A5.js index 778e5ea21..8b7564996 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A5.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.charAt(pos) calls first calls ToString, giving it the this value as its argument - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A5.js - * @description Change toString function, it trow exception, and call charAt() - */ +/*--- +info: > + When String.prototype.charAt(pos) calls first calls ToString, giving it + the this value as its argument +description: Change toString function, it trow exception, and call charAt() +includes: [$FAIL.js] +---*/ var __obj={ valueOf:1, @@ -26,4 +27,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A6.js index 570f90a12..5bc3eeb41 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_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.charAt has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A6.js - * @description Checking String.prototype.charAt.prototype - */ +/*--- +info: String.prototype.charAt has not prototype property +description: Checking String.prototype.charAt.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.charAt.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A7.js index 94494102a..3e67dc3e0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A7.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.charAt can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A7.js - * @description Checking if creating the String.prototype.charAt object fails - */ +/*--- +info: String.prototype.charAt can't be used as constructor +description: Checking if creating the String.prototype.charAt object fails +includes: [$FAIL.js] +---*/ var __FACTORY = String.prototype.charAt; @@ -18,4 +17,3 @@ try { $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A8.js index 00a617631..709c370e6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A8.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.charAt.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A8.js - * @description Checking if enumerating the String.prototype.charAt.length property fails - */ +/*--- +info: The String.prototype.charAt.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.charAt.length + property fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +38,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A9.js index d810d56e0..5aa7ab981 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A9.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.charAt.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.4/S15.5.4.4_A9.js - * @description Checking if deleting the String.prototype.charAt.length property fails - */ +/*--- +info: The String.prototype.charAt.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.charAt.length property + fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +31,3 @@ if (!(String.prototype.charAt.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1.1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1.1.js index d296397c9..9e59855af 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1.1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1.1.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.charCodeAt() can accept many arguments - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1.1.js - * @description Checking by using eval - */ +/*--- +info: String.prototype.charCodeAt() can accept many arguments +description: Checking by using eval +---*/ function __FACTORY(){this.toString = function(){ return "wizard";};}; @@ -24,5 +22,3 @@ with(__instance){ } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A10.js index c6d1a559f..744c123a4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A10.js - * @description Checking if varying the String.prototype.charCodeAt.length property fails - */ +/*--- +info: The String.prototype.charCodeAt.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.charCodeAt.length + property fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +27,3 @@ if (String.prototype.charCodeAt.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A11.js index 2a39c6bee..400dd4ed0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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 charCodeAt method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A11.js - * @description Checking String.prototype.charCodeAt.length - */ +/*--- +info: The length property of the charCodeAt method is 1 +description: Checking String.prototype.charCodeAt.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.charCodeAt.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T1.js index 3a639267a..ee9ae3fa8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T1.js - * @description pos is false and true, and instance is object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: pos is false and true, and instance is object +---*/ var __instance = new Object(42); @@ -19,4 +17,3 @@ if ((__instance.charCodeAt(false) !== 52)||(__instance.charCodeAt(true) !== 50)) } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T10.js index 048869d36..cdce7f878 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T10.js - * @description Call charCodeAt() function with object argument - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: Call charCodeAt() function with object argument +---*/ var __obj = {toString:function(){return 1;}} var __str = "lego"; @@ -20,4 +18,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T2.js index c4e3f2ad4..bb80e6788 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T2.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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T2.js - * @description pos is equation with false and true, and instance is Boolean object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: pos is equation with false and true, and instance is Boolean object +---*/ var __instance = new Boolean; @@ -35,4 +33,3 @@ if (__instance.charCodeAt(true+1) !== 0x6C) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T4.js index 04aed9862..276eeb2d1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T4.js - * @description Call charCodeAt() function without argument of string object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: Call charCodeAt() function without argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if ("smart".charCodeAt() !== 0x73) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T5.js index 6f0c0aaa4..4582048c4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T5.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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T5.js - * @description Call charCodeAt() function with null argument of function object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: Call charCodeAt() function with null argument of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (function(){return "lego"}().charCodeAt(null) !== 0x6C) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T6.js index 8f54a0d00..4ab9ef370 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T6.js - * @description Call charCodeAt() function with x argument of new String object, where x is undefined variable - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: > + Call charCodeAt() function with x argument of new String object, + where x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +18,3 @@ if (new String("lego").charCodeAt(x) !== 0x6C) { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T7.js index c3c521cdb..bcffca07b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T7.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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T7.js - * @description Call charCodeAt() function with undefined argument of string object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: Call charCodeAt() function with undefined argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (String("lego").charCodeAt(undefined) !== 0x6C) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T8.js index 9e3d73988..70d2d9a56 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T8.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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T8.js - * @description Call charCodeAt() function with void 0 argument of string object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: Call charCodeAt() function with void 0 argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +14,3 @@ if (String(42).charCodeAt(void 0) !== 0x34) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T9.js index 4c9b24faf..d56cefb7d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt(pos) - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A1_T9.js - * @description Call charCodeAt() function with function(){}() argument of string object - */ +/*--- +info: String.prototype.charCodeAt(pos) +description: > + Call charCodeAt() function with function(){}() argument of string + object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (new String(42).charCodeAt(function(){}()) !== 0x34) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A2.js index 39e833fd7..1734ae3f0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A2.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.charCodeAt(pos) calls if ToInteger(pos) less than 0 the NaN returns - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A2.js - * @description Call charCodeAt(pos) with negative pos - */ +/*--- +info: > + When String.prototype.charCodeAt(pos) calls if ToInteger(pos) less than 0 + the NaN returns +description: Call charCodeAt(pos) with negative pos +---*/ function __FACTORY(){}; @@ -21,4 +21,3 @@ if (!isNaN(__instance.charCodeAt(-1))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A3.js index a5d6a8fe4..7aacb5554 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A3.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.charCodeAt(pos) calls if ToInteger(pos) not less than ToString(this value) the NaN returns - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A3.js - * @description pos is bigger of string length - */ +/*--- +info: > + When String.prototype.charCodeAt(pos) calls if ToInteger(pos) not less + than ToString(this value) the NaN returns +description: pos is bigger of string length +---*/ var __instance = new String("ABC"); @@ -17,4 +17,3 @@ if (!isNaN(__instance.charCodeAt(3))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A4.js index 884d6322d..357fca005 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A4.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.charCodeAt(pos) calls first calls ToString, giving it the this value as its argument - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A4.js - * @description Change toString function, it trow exception, and call charCodeAt() - */ +/*--- +info: > + When String.prototype.charCodeAt(pos) calls first calls ToString, giving + it the this value as its argument +description: Change toString function, it trow exception, and call charCodeAt() +includes: [$FAIL.js] +---*/ var __obj={ valueOf:1, @@ -26,4 +27,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A6.js index dc78648b2..9542efcd5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A6.js - * @description Checking String.prototype.charCodeAt.prototype - */ +/*--- +info: String.prototype.charCodeAt has not prototype property +description: Checking String.prototype.charCodeAt.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.charCodeAt.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js index 5a97c5746..b00f453b9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A7.js - * @description Checking if creating the String.prototype.charCodeAt object fails - */ +/*--- +info: String.prototype.charCodeAt can't be used as constructor +description: Checking if creating the String.prototype.charCodeAt object fails +includes: + - $FAIL.js + - Test262Error.js +---*/ var __FACTORY = String.prototype.charCodeAt; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception');
-} catch (e) {
+ $FAIL('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A8.js index ed4c5bd03..6dbd37ed3 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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.charCodeAt.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A8.js - * @description Checking if enumerating the String.prototype.charCodeAt.length property fails - */ +/*--- +info: The String.prototype.charCodeAt.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.charCodeAt.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.5/S15.5.4.5_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A9.js index f561d1795..f2296302e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_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 String.prototype.charCodeAt.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.5/S15.5.4.5_A9.js - * @description Checking if deleting the String.prototype.charCodeAt.length property fails - */ +/*--- +info: > + The String.prototype.charCodeAt.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.charCodeAt.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - 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'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A10.js index 97fa3828d..faf463d24 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A10.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.indexOf.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A10.js - * @description Checking if varying the String.prototype.indexOf.length property fails - */ +/*--- +info: The String.prototype.indexOf.length property has the attribute ReadOnly +description: > + Checking if varying the String.prototype.indexOf.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +28,3 @@ if (String.prototype.indexOf.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A11.js index 7531afe14..4a84304b5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.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 indexOf method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A11.js - * @description Checking String.prototype.indexOf.length - */ +/*--- +info: The length property of the indexOf method is 1 +description: Checking String.prototype.indexOf.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.indexOf.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T1.js index fdfd829ac..2f8f0890c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T1.js - * @description Arguments are false and true, and instance is object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: Arguments are false and true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.indexOf(true, false) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T10.js index d43e2b48c..e05e2fddd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T10.js - * @description Call indexOf(searchString, position) function with object arguments - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: Call indexOf(searchString, position) function with object arguments +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return true;}} @@ -23,4 +21,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11.js index f952ceb23..7cd35bef6 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11.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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T11.js - * @description Instance is Date(0) object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: Instance is Date(0) object +---*/ var __instance = new Date(0); @@ -19,4 +17,3 @@ if ((__instance.getTimezoneOffset()>0 ? __instance.indexOf('31') : __instance.in } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T12.js index f6bbcde90..99ff9a8ee 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T12.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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T12.js - * @description Argument is string, and instance is array of strings - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: Argument is string, and instance is array of strings +---*/ var __instance = new Array('new','zoo','revue'); @@ -25,4 +23,3 @@ if (__instance.indexOf('zoo') !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T2.js index 0e4fc8da5..972c4a7dd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T2.js - * @description Arguments are boolean equation, function and null, and instance is Boolean object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Arguments are boolean equation, function and null, and instance is + Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +19,3 @@ if (__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T4.js index 1339dda27..4051930f8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T4.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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T4.js - * @description Call indexOf(searchString, position) function without arguments of string - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Call indexOf(searchString, position) function without arguments of + string +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if ("".indexOf() !== -1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T5.js index b397ff385..aea257a42 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T5.js - * @description Call indexOf(searchString, position) function with null argument of function object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Call indexOf(searchString, position) function with null argument + of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (function(){return "gnulluna"}().indexOf(null) !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T6.js index 97c926bba..2e7367345 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T6.js - * @description Call indexOf(searchString, position) function with x argument of new String object, where x is undefined variable - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Call indexOf(searchString, position) function with x argument of + new String object, where x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +18,3 @@ if (new String("undefined").indexOf(x) !== 0) { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T7.js index 4b18ea23f..88e8b63d8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T7.js - * @description Call indexOf(searchString, position) function with undefined argument of string object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Call indexOf(searchString, position) function with undefined + argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (String("undefined").indexOf(undefined) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T8.js index 14219aa0d..a21b2966d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T8.js - * @description Call indexOf(searchString, position) function with void 0 argument of string object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Call indexOf(searchString, position) function with void 0 argument + of string object +---*/ var __obj = {toString:function(){}}; @@ -18,4 +18,3 @@ if (String(__obj).indexOf(void 0) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T9.js index c13d6c4de..1c1e375e7 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A1_T9.js - * @description Call indexOf(searchString, position) function with function(){}() argument of string object - */ +/*--- +info: String.prototype.indexOf(searchString, position) +description: > + Call indexOf(searchString, position) function with function(){}() + argument of string object +---*/ var __obj = { valueOf:function(){}, @@ -21,4 +21,3 @@ if (new String(__obj).indexOf(function(){}()) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T1.js index e7f880dd7..4a8782131 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_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. -/** - * When length of searchString less than length of ToString(this) -1 returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T1.js - * @description Call "abcd".indexOf("abcdab") and check result - */ +/*--- +info: When length of searchString less than length of ToString(this) -1 returns +description: Call "abcd".indexOf("abcdab") and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if ("abcd".indexOf("abcdab")!==-1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T2.js index 65087c437..7a607130c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T2.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. -/** - * When length of searchString less than length of ToString(this) -1 returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T2.js - * @description Call "abcd".indexOf("abcdab",0) and check result - */ +/*--- +info: When length of searchString less than length of ToString(this) -1 returns +description: Call "abcd".indexOf("abcdab",0) and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if ("abcd".indexOf("abcdab",0)!==-1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T3.js index 8420f3402..6e64c0870 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T3.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. -/** - * When length of searchString less than length of ToString(this) -1 returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T3.js - * @description Call "abcd".indexOf("abcdab",99) and check result - */ +/*--- +info: When length of searchString less than length of ToString(this) -1 returns +description: Call "abcd".indexOf("abcdab",99) and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if ("abcd".indexOf("abcdab",99)!==-1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T4.js index 28c766db7..941f4ab06 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_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. -/** - * When length of searchString less than length of ToString(this) -1 returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A2_T4.js - * @description Call "abcd".indexOf("abcdab",NaN) and check result - */ +/*--- +info: When length of searchString less than length of ToString(this) -1 returns +description: Call "abcd".indexOf("abcdab",NaN) and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if ("abcd".indexOf("abcdab",NaN)!==-1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T1.js index 5264ebdc0..6954ab70f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_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. -/** - * Since we deal with max(ToInteger(pos), 0) if ToInteger(pos) less than 0 indexOf(searchString,0) returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T1.js - * @description Call "$$abcdabcd".indexOf("ab",NaN) and check result - */ +/*--- +info: > + Since we deal with max(ToInteger(pos), 0) if ToInteger(pos) less than 0 + indexOf(searchString,0) returns +description: Call "$$abcdabcd".indexOf("ab",NaN) and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if ("$$abcdabcd".indexOf("ab",NaN)!==2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T2.js index 4820875d3..4a1ca4cc1 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_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. -/** - * Since we deal with max(ToInteger(pos), 0) if ToInteger(pos) less than 0 indexOf(searchString,0) returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T2.js - * @description Call "$$abcdabcd".indexOf("ab",eval("\"-99\"")) and check result - */ +/*--- +info: > + Since we deal with max(ToInteger(pos), 0) if ToInteger(pos) less than 0 + indexOf(searchString,0) returns +description: Call "$$abcdabcd".indexOf("ab",eval("\"-99\"")) and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if ("$$abcdabcd".indexOf("ab",eval("\"-99\""))!==2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T3.js index bccc2e6b3..7917bb914 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T3.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. -/** - * Since we deal with max(ToInteger(pos), 0) if ToInteger(pos) less than 0 indexOf(searchString,0) returns - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A3_T3.js - * @description Call "$$abcdabcd".indexOf("ab",function(){return -Infinity;}()) and check result - */ +/*--- +info: > + Since we deal with max(ToInteger(pos), 0) if ToInteger(pos) less than 0 + indexOf(searchString,0) returns +description: > + Call "$$abcdabcd".indexOf("ab",function(){return -Infinity;}()) + and check result +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +17,3 @@ if ("$$abcdabcd".indexOf("ab", function(){return -Infinity;}())!==2) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T1.js index d47dfdf7d..014f6f3ba 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T1.js @@ -1,13 +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.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T1.js - * @description Override toString and valueOf functions, valueOf throw exception - */ +/*--- +info: > + when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: Override toString and valueOf functions, valueOf throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){throw "intointeger";}} @@ -29,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T2.js index 0960e05f3..8808c0815 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T2.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T2.js - * @description Override toString and valueOf functions, second toString throw exception - */ +/*--- +info: > + when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: > + Override toString and valueOf functions, second toString throw + exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} @@ -27,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T3.js index 978293a6f..623291646 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T3.js @@ -1,13 +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.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T3.js - * @description Override toString and valueOf functions - */ +/*--- +info: > + when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: Override toString and valueOf functions +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}} @@ -19,4 +18,3 @@ if ("ABB\u0041BABAB".indexOf(__obj, __obj2)!==3) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T4.js index 3783f73c6..b18a57532 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T4.js @@ -1,13 +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.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T4.js - * @description Override toString and valueOf functions, and they throw exceptions - */ +/*--- +info: > + when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: Override toString and valueOf functions, and they throw exceptions +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}}; var __obj2 = {valueOf:function(){throw "intoint";}}; @@ -28,4 +28,3 @@ with(__instance){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T5.js index 1bd6fcb86..b50363b04 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T5.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A4_T5.js - * @description Override toString and valueOf functions, first and second valueOf throw exception - */ +/*--- +info: > + when String.prototype.indexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: > + Override toString and valueOf functions, first and second valueOf + throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; @@ -35,4 +37,3 @@ function __FACTORY( value ) { this.toString = function() { return new Number; }; this.valueOf=function(){return this.value+""}; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T1.js index a71670742..345d861a0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_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.indexOf works properly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T1.js - * @description Search one symbol from begin of string - */ +/*--- +info: String.prototype.indexOf works properly +description: Search one symbol from begin of string +---*/ var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); @@ -19,4 +17,3 @@ for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T2.js index bb5170215..be2955e0e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T2.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.indexOf works properly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T2.js - * @description Search one symbol from it`s position in the string - */ +/*--- +info: String.prototype.indexOf works properly +description: Search one symbol from it`s position in the string +---*/ var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); @@ -19,4 +17,3 @@ for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T3.js index 63ac59304..1e441620f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T3.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.indexOf works properly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T3.js - * @description Search one symbol from it`s position+1 in the string - */ +/*--- +info: String.prototype.indexOf works properly +description: Search one symbol from it`s position+1 in the string +---*/ var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); @@ -19,4 +17,3 @@ for ( var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T4.js index acb405bd5..35c82e264 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_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.indexOf works properly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T4.js - * @description Search substring from begin of string - */ +/*--- +info: String.prototype.indexOf works properly +description: Search substring from begin of string +---*/ var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); @@ -19,4 +17,3 @@ for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T5.js index 4882bd16c..9f584d83b 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T5.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.indexOf works properly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T5.js - * @description Search substring from it`s position in the string - */ +/*--- +info: String.prototype.indexOf works properly +description: Search substring from it`s position in the string +---*/ var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); @@ -19,4 +17,3 @@ for ( var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T6.js index 46ee650e8..5008611b5 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T6.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.indexOf works properly - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A5_T6.js - * @description Search substring from it`s position+1 in the string - */ +/*--- +info: String.prototype.indexOf works properly +description: Search substring from it`s position+1 in the string +---*/ var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); @@ -19,4 +17,3 @@ for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A6.js index b7b2773fe..4a92be07e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A6.js - * @description Checking String.prototype.indexOf.prototype - */ +/*--- +info: String.prototype.indexOf has not prototype property +description: Checking String.prototype.indexOf.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.indexOf.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A7.js index e9fda93c9..912a7c2de 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A7.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. -/** - * String.prototype.indexOf can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A7.js - * @description Checking if creating the String.prototype.indexOf object fails - */ +/*--- +info: String.prototype.indexOf can't be used as constructor +description: Checking if creating the String.prototype.indexOf object fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var __FACTORY = String.prototype.indexOf; @@ -19,4 +20,3 @@ try { } $PRINT(e); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A8.js index 99a509ed3..15a710450 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A8.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.indexOf.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A8.js - * @description Checking if enumerating the String.prototype.indexOf.length property fails - */ +/*--- +info: The String.prototype.indexOf.length property has the attribute DontEnum +description: > + Checking if enumerating the String.prototype.indexOf.length + property fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +38,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A9.js index 61f691344..3dedb7661 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_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.indexOf.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.7/S15.5.4.7_A9.js - * @description Checking if deleting the String.prototype.indexOf.length property fails - */ +/*--- +info: The String.prototype.indexOf.length property has the attribute DontDelete +description: > + Checking if deleting the String.prototype.indexOf.length property + fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +32,3 @@ if (!(String.prototype.indexOf.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A10.js index 8d512c175..1dd433923 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A10.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 String.prototype.lastIndexOf.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A10.js - * @description Checking if varying the String.prototype.lastIndexOf.length property fails - */ +/*--- +info: > + The String.prototype.lastIndexOf.length property has the attribute + ReadOnly +description: > + Checking if varying the String.prototype.lastIndexOf.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +30,3 @@ if (String.prototype.lastIndexOf.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A11.js index 63bbf1728..136cb5f62 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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 lastIndexOf method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A11.js - * @description Checking String.prototype.lastIndexOf.length - */ +/*--- +info: The length property of the lastIndexOf method is 1 +description: Checking String.prototype.lastIndexOf.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.lastIndexOf.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T1.js index 490bbeedb..9ff18d9fd 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T1.js - * @description Arguments are false and true, and instance is object - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: Arguments are false and true, and instance is object +---*/ var __instance = new Object(true); @@ -19,4 +17,3 @@ if (__instance.lastIndexOf(true, false) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T10.js index 54ce2d778..b52a49134 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T10.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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T10.js - * @description Call lastIndexOf(searchString, position) function with object arguments - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function with object + arguments +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return NaN;}} @@ -23,4 +23,3 @@ with(__str){ ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T12.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T12.js index 5b7750d71..191742099 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T12.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T12.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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T12.js - * @description Argument is string, and instance is array of strings - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: Argument is string, and instance is array of strings +---*/ var __instance = new Array('new','zoo','revue'); @@ -25,4 +23,3 @@ if (__instance.lastIndexOf('zoo') !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T2.js index bda402f77..929fb51f4 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T2.js - * @description Arguments are boolean equation, function and null, and instance is Boolean object - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Arguments are boolean equation, function and null, and instance is + Boolean object +---*/ var __instance = new Boolean; @@ -19,4 +19,3 @@ if (__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T4.js index 954db0d24..9520585af 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T4.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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T4.js - * @description Call lastIndexOf(searchString, position) function without arguments of string - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function without + arguments of string +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if ("".lastIndexOf() !== -1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T5.js index 5cfab859c..0e337d756 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T5.js - * @description Call lastIndexOf(searchString, position) function with null argument of function object - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function with null + argument of function object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (function(){return "gnullunazzgnull"}().lastIndexOf(null) !== 11) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T6.js index 43b0243f4..fe4648312 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T6.js - * @description Call lastIndexOf(searchString, position) function with x argument of new String object, where x is undefined variable - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function with x argument + of new String object, where x is undefined variable +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -18,4 +18,3 @@ if (new String("undefined").lastIndexOf(x) !== 0) { ////////////////////////////////////////////////////////////////////////////// var x; - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T7.js index 5699bdfdb..ff7577fbb 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T7.js - * @description Call lastIndexOf(searchString, position) function with undefined argument of string object - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function with undefined + argument of string object +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -16,4 +16,3 @@ if (String("undefined").lastIndexOf(undefined) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T8.js index a13e7c461..897852854 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T8.js - * @description Call lastIndexOf(searchString, position) function with void 0 argument of string object - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function with void 0 + argument of string object +---*/ var __obj = {toString:function(){}}; @@ -18,4 +18,3 @@ if (String(__obj).lastIndexOf(void 0) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T9.js index 2d971ac68..f15118430 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf(searchString, position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A1_T9.js - * @description Call lastIndexOf(searchString, position) function with function(){}() argument of string object - */ +/*--- +info: String.prototype.lastIndexOf(searchString, position) +description: > + Call lastIndexOf(searchString, position) function with + function(){}() argument of string object +---*/ var __obj = { valueOf:function(){}, @@ -21,4 +21,3 @@ if (new String(__obj).lastIndexOf(function(){}()) !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T1.js index 54a783ac0..67515caa8 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T1.js @@ -1,13 +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.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T1.js - * @description Override toString and valueOf functions, valueOf throw exception - */ +/*--- +info: > + when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: Override toString and valueOf functions, valueOf throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){throw "intointeger";}} @@ -29,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T2.js index 6c50f3b73..16fd7b0c0 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T2.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T2.js - * @description Override toString and valueOf functions, second toString throw exception - */ +/*--- +info: > + when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: > + Override toString and valueOf functions, second toString throw + exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} @@ -27,4 +29,3 @@ with(__str){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T3.js index 59d0efe87..6815f9b79 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T3.js @@ -1,13 +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.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T3.js - * @description Override toString and valueOf functions - */ +/*--- +info: > + when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: Override toString and valueOf functions +---*/ var __obj = {toString:function(){return "\u0041B";}} var __obj2 = {valueOf:function(){return {};},toString:function(){}} @@ -19,4 +18,3 @@ if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)!==7) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T4.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T4.js index 83d2414b0..d75e9c743 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T4.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T4.js @@ -1,13 +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.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T4.js - * @description Override toString and valueOf functions, and they throw exceptions - */ +/*--- +info: > + when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: Override toString and valueOf functions, and they throw exceptions +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){throw "intostr";}}; var __obj2 = {valueOf:function(){throw "intoint";}}; @@ -28,4 +28,3 @@ with(__instance){ } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T5.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T5.js index cf34fa1dc..07ad24b8e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T5.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T5.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. - * Then Call ToString(searchString) and Call ToNumber(position) - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A4_T5.js - * @description Override toString and valueOf functions, first and second valueOf throw exception - */ +/*--- +info: > + when String.prototype.lastIndexOf(searchString, position) is called first Call ToString, giving it the this value as its argument. + Then Call ToString(searchString) and Call ToNumber(position) +description: > + Override toString and valueOf functions, first and second valueOf + throw exception +includes: [$FAIL.js] +---*/ var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; @@ -35,4 +37,3 @@ function __FACTORY( value ) { this.toString = function() { return new Number; }; this.valueOf=function(){return this.value+""}; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A6.js index ce738c725..e14813385 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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.lastIndexOf has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A6.js - * @description Checking String.prototype.lastIndexOf.prototype - */ +/*--- +info: String.prototype.lastIndexOf has not prototype property +description: Checking String.prototype.lastIndexOf.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.lastIndexOf.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A7.js index 3f83ddd9a..d110a7cf9 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A7.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. -/** - * String.prototype.lastIndexOf can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A7.js - * @description Checking if creating the String.prototype.lastIndexOf object fails - */ +/*--- +info: String.prototype.lastIndexOf can't be used as constructor +description: Checking if creating the String.prototype.lastIndexOf object fails +includes: + - $PRINT.js + - $FAIL.js +---*/ var __FACTORY = String.prototype.lastIndexOf; @@ -16,4 +17,3 @@ try { } catch (e) { $PRINT(e); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A8.js index 130206520..9ac8fa671 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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 String.prototype.lastIndexOf.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A8.js - * @description Checking if enumerating the String.prototype.lastIndexOf.length property fails - */ +/*--- +info: > + The String.prototype.lastIndexOf.length property has the attribute + DontEnum +description: > + Checking if enumerating the String.prototype.lastIndexOf.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +41,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A9.js index de01ba9f7..f4f5b71ed 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_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 String.prototype.lastIndexOf.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.8/S15.5.4.8_A9.js - * @description Checking if deleting the String.prototype.lastIndexOf.length property fails - */ +/*--- +info: > + The String.prototype.lastIndexOf.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.lastIndexOf.length + property fails +includes: [$FAIL.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +34,3 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_3.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_3.js index 441166c9f..d11266a83 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_3.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_3.js @@ -1,11 +1,12 @@ // Copyright 2013 Mozilla Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that String.prototype.localeCompare treats a missing - * "that" argument, undefined, and "undefined" as equivalent. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that String.prototype.localeCompare treats a missing "that" + argument, undefined, and "undefined" as equivalent. +author: Norbert Lindenberg +---*/ var thisValues = ["a", "t", "u", "undefined", "UNDEFINED", "nicht definiert", "xyz", "未定义"]; @@ -19,4 +20,3 @@ for (i = 0; i < thisValues.length; i++) { $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); } } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_CE.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_CE.js index 4eda191bc..ad9fa7b68 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_CE.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/15.5.4.9_CE.js @@ -3,12 +3,13 @@ // Copyright 2013 Microsoft Corporation. All rights reserved. // This code is governed by the license found in the LICENSE file. -/** - * @description Tests that String.prototype.localeCompare - * returns 0 when comparing Strings that are considered canonically equivalent - * by the Unicode standard. - * @author Norbert Lindenberg - */ +/*--- +description: > + Tests that String.prototype.localeCompare returns 0 when + comparing Strings that are considered canonically equivalent by + the Unicode standard. +author: Norbert Lindenberg +---*/ // pairs with characters not in Unicode 3.0 are commented out var pairs = [ diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A10.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A10.js index e2ced33f6..9ef85188f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A10.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A10.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 String.prototype.localeCompare.length property has the attribute ReadOnly - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A10.js - * @description Checking if varying the String.prototype.localeCompare.length property fails - */ +/*--- +info: > + The String.prototype.localeCompare.length property has the attribute + ReadOnly +description: > + Checking if varying the String.prototype.localeCompare.length + property fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -27,4 +29,3 @@ if (String.prototype.localeCompare.length !== __obj) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A11.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A11.js index 7af91d484..50325219f 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A11.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_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 localeCompare method is 1 - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A11.js - * @description Checking String.prototype.localeCompare.length - */ +/*--- +info: The length property of the localeCompare method is 1 +description: Checking String.prototype.localeCompare.length +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -23,4 +21,3 @@ if (String.prototype.localeCompare.length !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T1.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T1.js index 5bab3d318..016994515 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_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.localeCompare(that) - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T1.js - * @description This string is symbol and arguments are symbols - */ +/*--- +info: String.prototype.localeCompare(that) +description: This string is symbol and arguments are symbols +---*/ var str1 = new String("h"); //CHECK#1 @@ -26,4 +24,3 @@ var str2 = new String ("h"); if (str1.localeCompare(str2)!==0){ $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T2.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T2.js index 1b4c561b1..e1e2bc52c 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_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.localeCompare(that) - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A1_T2.js - * @description Call string_1.localeCompare(string_2) is equal -string_2.localeCompare(string_1) - */ +/*--- +info: String.prototype.localeCompare(that) +description: > + Call string_1.localeCompare(string_2) is equal + -string_2.localeCompare(string_1) +---*/ //CHECK#1 var str1 = "h"; @@ -14,4 +14,3 @@ var str2 = "H"; if (str1.localeCompare(str2)!==-str2.localeCompare(str1)){ $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: '+str1.localeCompare(str2)); } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A6.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A6.js index fb01cb121..2c8122791 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A6.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_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.localeCompare has not prototype property - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A6.js - * @description Checking String.prototype.localeCompare.prototype - */ +/*--- +info: String.prototype.localeCompare has not prototype property +description: Checking String.prototype.localeCompare.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +13,3 @@ if (String.prototype.localeCompare.prototype !== undefined) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js index 42ef95947..8b9950f1d 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js @@ -1,19 +1,21 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * String.prototype.localeCompare can't be used as constructor - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A7.js - * @description Checking if creating the String.prototype.localeCompare object fails - */ +/*--- +info: String.prototype.localeCompare can't be used as constructor +description: > + Checking if creating the String.prototype.localeCompare object + fails +includes: + - $FAIL.js + - Test262Error.js +---*/ var __FACTORY = String.prototype.localeCompare; try { var __instance = new __FACTORY; - $FAIL('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception');
-} catch (e) {
+ $FAIL('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A8.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A8.js index 4d25c0a1c..cfc773090 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A8.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A8.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 String.prototype.localeCompare.length property has the attribute DontEnum - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A8.js - * @description Checking if enumerating the String.prototype.localeCompare.length property fails - */ +/*--- +info: > + The String.prototype.localeCompare.length property has the attribute + DontEnum +description: > + Checking if enumerating the String.prototype.localeCompare.length + property fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -38,4 +40,3 @@ if (count !== 0) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A9.js b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A9.js index 41f76f7ab..ac2503b1e 100644 --- a/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A9.js +++ b/test/suite/ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A9.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 String.prototype.localeCompare.length property has the attribute DontDelete - * - * @path ch15/15.5/15.5.4/15.5.4.9/S15.5.4.9_A9.js - * @description Checking if deleting the String.prototype.localeCompare.length property fails - */ +/*--- +info: > + The String.prototype.localeCompare.length property has the attribute + DontDelete +description: > + Checking if deleting the String.prototype.localeCompare.length + property fails +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#0 @@ -31,4 +33,3 @@ if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_T1.js index 5a7b583ab..eba9fcfc9 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_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. -/** - * The initial value of String.prototype.constructor is the built-in String constructor - * - * @path ch15/15.5/15.5.4/S15.5.4.1_A1_T1.js - * @description Checking String.prototype.constructor - */ +/*--- +info: > + The initial value of String.prototype.constructor is the built-in String + constructor +description: Checking String.prototype.constructor +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if (String.prototype.constructor !== String) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_T2.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_T2.js index c4e2b175c..95a1fcbde 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.1_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.1_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. -/** - * The initial value of String.prototype.constructor is the built-in String constructor - * - * @path ch15/15.5/15.5.4/S15.5.4.1_A1_T2.js - * @description Create new String.prototype.constructor object and check it - */ +/*--- +info: > + The initial value of String.prototype.constructor is the built-in String + constructor +description: Create new String.prototype.constructor object and check it +---*/ var __constr = String.prototype.constructor; @@ -47,4 +47,3 @@ if (__instance.toString() !== __to_string_result) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T1.js index 66934a4ac..a175c07a5 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_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.toString() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A1_T1.js - * @description Create new String(number) and check it`s method toString() - */ +/*--- +info: String.prototype.toString() returns this string value +description: Create new String(number) and check it`s method toString() +---*/ var __string__obj = new String(1); @@ -17,4 +15,3 @@ if (__string__obj.toString() !== ""+1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T2.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T2.js index b8c88ac62..ac43b0af6 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T2.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.toString() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A1_T2.js - * @description Create new String(boolean) and check it`s method toString() - */ +/*--- +info: String.prototype.toString() returns this string value +description: Create new String(boolean) and check it`s method toString() +---*/ var __string__obj = new String(true); @@ -17,4 +15,3 @@ if (__string__obj.toString() !== ""+true) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T3.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T3.js index 0099e68c7..40f34e309 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T3.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.toString() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A1_T3.js - * @description Create new String(string) and check it`s method toString() - */ +/*--- +info: String.prototype.toString() returns this string value +description: Create new String(string) and check it`s method toString() +---*/ var __string__obj = new String("metal"); @@ -17,4 +15,3 @@ if (__string__obj.toString() !== "metal") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T4.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T4.js index ce76b13ec..3f4b1defb 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_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.toString() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A1_T4.js - * @description Create new String(function(){}()) and check it`s method toString() - */ +/*--- +info: String.prototype.toString() returns this string value +description: Create new String(function(){}()) and check it`s method toString() +---*/ var __string__obj = new String(function(){}()); @@ -17,4 +15,3 @@ if (__string__obj.toString() !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T1.js index 07385a3ec..7da0b2ca3 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_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 toString function is not generic; it throws a TypeError exception if its this value is not a String object. Therefore, it cannot be transferred to other kinds of objects for use as a method - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A2_T1.js - * @description Checking if creating variable String.prototype.toString fails - */ +/*--- +info: > + The toString function is not generic; it throws a TypeError exception if + its this value is not a String object. Therefore, it cannot be + transferred to other kinds of objects for use as a method +description: Checking if creating variable String.prototype.toString fails +includes: [$FAIL.js] +---*/ var __toString = String.prototype.toString; @@ -31,4 +33,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T2.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T2.js index fee77c5f2..e060fbbf1 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A2_T2.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 toString function is not generic; it throws a TypeError exception if its this value is not a String object. Therefore, it cannot be transferred to other kinds of objects for use as a method - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A2_T2.js - * @description Checking if creating the object String.prototype.toString fails - */ +/*--- +info: > + The toString function is not generic; it throws a TypeError exception if + its this value is not a String object. Therefore, it cannot be + transferred to other kinds of objects for use as a method +description: Checking if creating the object String.prototype.toString fails +includes: [$FAIL.js] +---*/ var __obj={toString : String.prototype.toString}; @@ -31,4 +33,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A3_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A3_T1.js index 5d95ca6cb..8c2491976 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A3_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A3_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. -/** - * String.prototype.toString() is equal String.prototype.valueOf() - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A3_T1.js - * @description Create new String() with various arguments and compare returned results of toString() and valueOf() - */ +/*--- +info: String.prototype.toString() is equal String.prototype.valueOf() +description: > + Create new String() with various arguments and compare returned + results of toString() and valueOf() +---*/ //CHECK#1 var str = new String(); @@ -27,4 +27,3 @@ if(!(str.valueOf() == str.toString())) str = new String(Math.PI); if(!(str.valueOf() == str.toString())) $ERROR('#4: str = new String(Math.PI),str.valueOf() == str.toString()'); - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A4_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A4_T1.js index 6a0ca09ad..0ac79f88e 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A4_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.2_A4_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.toString have length property and it is equal 0 - * - * @path ch15/15.5/15.5.4/S15.5.4.2_A4_T1.js - * @description Checking String.prototype.toString.length property - */ +/*--- +info: String.prototype.toString have length property and it is equal 0 +description: Checking String.prototype.toString.length property +---*/ //CHECK#1 if (String.prototype.toString.hasOwnProperty('length')!==true){ @@ -17,4 +15,3 @@ else{ if (String.prototype.toString.length!==0) $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length==='+String.prototype.toString.length); } - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T1.js index 94c2e9738..61b71f4f3 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_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.valueOf() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.3_A1_T1.js - * @description Create String object as new String(1) and check it`s valueOf() - */ +/*--- +info: String.prototype.valueOf() returns this string value +description: Create String object as new String(1) and check it`s valueOf() +---*/ var __string__obj = new String(1); @@ -17,4 +15,3 @@ if (__string__obj.valueOf() !== ""+1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T2.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T2.js index 8ce7a26ce..8ada1b821 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T2.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T2.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.valueOf() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.3_A1_T2.js - * @description Create String object as new String(true) and check it`s valueOf() - */ +/*--- +info: String.prototype.valueOf() returns this string value +description: Create String object as new String(true) and check it`s valueOf() +---*/ var __string__obj = new String(true); @@ -17,4 +15,3 @@ if (__string__obj.valueOf() !== ""+true) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T3.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T3.js index 974ee4347..86447cc53 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T3.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T3.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.valueOf() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.3_A1_T3.js - * @description Create String object as new String(string) and check it`s valueOf() - */ +/*--- +info: String.prototype.valueOf() returns this string value +description: Create String object as new String(string) and check it`s valueOf() +---*/ var __string__obj = new String("metal"); @@ -17,4 +15,3 @@ if (__string__obj.valueOf() !== "metal") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T4.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T4.js index ec4b40103..906d66782 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T4.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A1_T4.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.valueOf() returns this string value - * - * @path ch15/15.5/15.5.4/S15.5.4.3_A1_T4.js - * @description Create String object as new String(function(){}()) and check it`s valueOf() - */ +/*--- +info: String.prototype.valueOf() returns this string value +description: > + Create String object as new String(function(){}()) and check it`s + valueOf() +---*/ var __string__obj = new String(function(){}()); @@ -17,4 +17,3 @@ if (__string__obj.valueOf() !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T1.js index daefea484..934387e0d 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T1.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The valueOf function is not generic; it throws a TypeError exception if its this value is not a String object. - * Therefore, it cannot be transferred to other kinds of objects for use as a method - * - * @path ch15/15.5/15.5.4/S15.5.4.3_A2_T1.js - * @description Checking if creating variable String.prototype.valueOf fails - */ +/*--- +info: > + The valueOf function is not generic; it throws a TypeError exception if its this value is not a String object. + Therefore, it cannot be transferred to other kinds of objects for use as a method +description: Checking if creating variable String.prototype.valueOf fails +includes: [$FAIL.js] +---*/ var __valueOf = String.prototype.valueOf; @@ -32,4 +32,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T2.js b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T2.js index e411d04a7..84d6bab66 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T2.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4.3_A2_T2.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The valueOf function is not generic; it throws a TypeError exception if its this value is not a String object. - * Therefore, it cannot be transferred to other kinds of objects for use as a method - * - * @path ch15/15.5/15.5.4/S15.5.4.3_A2_T2.js - * @description Checking if creating the object String.prototype.valueOf fails - */ +/*--- +info: > + The valueOf function is not generic; it throws a TypeError exception if its this value is not a String object. + Therefore, it cannot be transferred to other kinds of objects for use as a method +description: Checking if creating the object String.prototype.valueOf fails +includes: [$FAIL.js] +---*/ var __obj={valueOf : String.prototype.valueOf}; @@ -32,4 +32,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4_A1.js b/test/suite/ch15/15.5/15.5.4/S15.5.4_A1.js index a7a22899e..ff0f79dfc 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4_A1.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4_A1.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The String prototype object is itself a String object (its [[Class]] is "String") - * - * @path ch15/15.5/15.5.4/S15.5.4_A1.js - * @description first we delete String.prototype.toString cause it overrides Object prototype toString. - * Object.prototype.toString returns [object+[[class]]+] - */ +/*--- +info: > + The String prototype object is itself a String object (its [[Class]] is + "String") +description: > + first we delete String.prototype.toString cause it overrides + Object prototype toString. Object.prototype.toString returns + [object+[[class]]+] +---*/ delete String.prototype.toString; @@ -18,4 +20,3 @@ if (String.prototype.toString() !== "[object "+"String"+"]") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4_A2.js b/test/suite/ch15/15.5/15.5.4/S15.5.4_A2.js index 06ec51459..f1aa02334 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4_A2.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4_A2.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 object is itself a String object whose value is an empty string - * - * @path ch15/15.5/15.5.4/S15.5.4_A2.js - * @description Checking String.prototype - */ +/*--- +info: > + The String prototype object is itself a String object whose value is an + empty string +description: Checking String.prototype +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,4 +15,3 @@ if (String.prototype !="") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch15/15.5/15.5.4/S15.5.4_A3.js b/test/suite/ch15/15.5/15.5.4/S15.5.4_A3.js index 1f8df3820..738afcf86 100644 --- a/test/suite/ch15/15.5/15.5.4/S15.5.4_A3.js +++ b/test/suite/ch15/15.5/15.5.4/S15.5.4_A3.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 value of the internal [[Prototype]] property of the String prototype object is the Object prototype object (15.2.3.1) - * - * @path ch15/15.5/15.5.4/S15.5.4_A3.js - * @description Checking Object.prototype.isPrototypeOf(String.prototype) - */ +/*--- +info: > + The value of the internal [[Prototype]] property of the String prototype + object is the Object prototype object (15.2.3.1) +description: Checking Object.prototype.isPrototypeOf(String.prototype) +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -25,4 +25,3 @@ if (String.prototype.toString() != "[object "+"String"+"]") { } // ////////////////////////////////////////////////////////////////////////////// - |