diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4/15.5.4.10')
38 files changed, 213 insertions, 278 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'))) { } // ////////////////////////////////////////////////////////////////////////////// - |