diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.4/15.5.4.14')
103 files changed, 846 insertions, 1030 deletions
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'))) { } // ////////////////////////////////////////////////////////////////////////////// - |