diff options
Diffstat (limited to 'test/suite/ch15/15.10/15.10.6')
109 files changed, 689 insertions, 929 deletions
diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/15.10.6.2-9-e-1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/15.10.6.2-9-e-1.js index 482748988..8a1a687bf 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/15.10.6.2-9-e-1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/15.10.6.2-9-e-1.js @@ -1,19 +1,21 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.6/15.10.6.2/15.10.6.2-9-e-1.js
- * @description RegExp.prototype.exec - the removed step 9.e won't affected current algorithm
- */
-
-
-function testcase() {
- var str = "Hello World!";
- var regObj = new RegExp("World");
- var result = false;
- result = regObj.exec(str).toString() === "World";
- return result;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp.prototype.exec - the removed step 9.e won't affected + current algorithm +includes: [runTestCase.js] +---*/ + +function testcase() { + var str = "Hello World!"; + var regObj = new RegExp("World"); + var result = false; + result = regObj.exec(str).toString() === "World"; + return result; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A10.js index 622178b19..2fa8a88cb 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A10.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype.exec.length property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A10.js - * @description Checking if varying the RegExp.prototype.exec.length property fails - */ +/*--- +info: The RegExp.prototype.exec.length property has the attribute ReadOnly +description: Checking if varying the RegExp.prototype.exec.length property fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { @@ -21,4 +20,3 @@ RegExp.prototype.exec.length = function(){return "shifted";}; if (RegExp.prototype.exec.length !== __obj) { $ERROR('#2: __obj = RegExp.prototype.exec.length; RegExp.prototype.exec.length = function(){return "shifted";}; RegExp.prototype.exec.length === __obj. Actual: ' + (RegExp.prototype.exec.length)); } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A11.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A11.js index cd7ac8ea6..883bd3217 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A11.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A11.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the exec method is 1 - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A11.js - * @description Checking RegExp.prototype.exec.length - */ +/*--- +info: The length property of the exec method is 1 +description: Checking RegExp.prototype.exec.length +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.prototype.exec.hasOwnProperty("length") !== true) { @@ -17,5 +16,3 @@ if (RegExp.prototype.exec.hasOwnProperty("length") !== true) { if (RegExp.prototype.exec.length !== 1) { $ERROR('#2: RegExp.prototype.exec.length === 1. Actual: ' + (RegExp.prototype.exec.length)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A12.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A12.js index d4177de6a..2db3c0ec2 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A12.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A12.js @@ -1,12 +1,11 @@ // Copyright 2011 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * regExp exec() acts like regExp.exec('undefined') (step 2) - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A12.js - * @description Checking RegExp.prototype.exec - */ +/*--- +info: regExp exec() acts like regExp.exec('undefined') (step 2) +description: Checking RegExp.prototype.exec +includes: [$FAIL.js] +---*/ (/foo/).test('xfoox'); var match = new RegExp('(.|\r|\n)*','').exec()[0]; @@ -16,4 +15,3 @@ if (match === 'xfoox') { if (match !== 'undefined') { $FAIL('#2: regExp.exec() must coerce absent first arg to "undefined"'); } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T1.js index 3820639df..e94054761 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T1.js - * @description String is "123" and RegExp is /1|12/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is "123" and RegExp is /1|12/ +---*/ __executed = /1|12/.exec("123"); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /1|12/.exec("123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T10.js index 9110c8a26..6ba70a801 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T10.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T10.js - * @description String is 1.01 and RegExp is /1|12/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is 1.01 and RegExp is /1|12/ +---*/ __executed = /1|12/.exec(1.01); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /1|12/.exec(1.01); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T11.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T11.js index 312afbd52..8f9b7a2de 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T11.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T11.js - * @description String is new Number(1.012) and RegExp is /2|12/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is new Number(1.012) and RegExp is /2|12/ +---*/ __executed = /2|12/.exec(new Number(1.012)); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /2|12/.exec(new Number(1.012)); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T12.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T12.js index fe8ec74b9..a442f232c 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T12.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T12.js - * @description String is {toString:function(){return Math.PI;}} and RegExp is /\.14/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: > + String is {toString:function(){return Math.PI;}} and RegExp is + /\.14/ +---*/ __executed = /\.14/.exec({toString:function(){return Math.PI}}); @@ -41,5 +42,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T13.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T13.js index bb068edaa..8233105fe 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T13.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T13.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T13.js - * @description String is true and RegExp is /t[a-b|q-s]/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is true and RegExp is /t[a-b|q-s]/ +---*/ __executed = /t[a-b|q-s]/.exec(true); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /t[a-b|q-s]/.exec(true); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T14.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T14.js index c631d5e40..f7e388f2a 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T14.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T14.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T14.js - * @description String is new Boolean and RegExp is /AL|se/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is new Boolean and RegExp is /AL|se/ +---*/ __executed = /AL|se/.exec(new Boolean); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /AL|se/.exec(new Boolean); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T15.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T15.js index 7bed7f106..e6668c929 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T15.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T15.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T15.js - * @description String is {toString:function(){return false;}} and RegExp is /LS/i - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: "String is {toString:function(){return false;}} and RegExp is /LS/i" +---*/ __executed = /LS/i.exec({toString:function(){return false}}); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T16.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T16.js index 4431507ee..73c4bb47c 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T16.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T16.js @@ -1,17 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T16.js - * @description RegExp is /undefined/ and call exec() without arguments - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: RegExp is /undefined/ and call exec() without arguments +---*/ __re = /undefined/.exec()[0]; if (__re !== "undefined") { $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T17.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T17.js index b66df5954..54ea9ad04 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T17.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T17.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T17.js - * @description String is null and RegExp is /ll|l/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is null and RegExp is /ll|l/ +---*/ __executed = /ll|l/.exec(null); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /ll|l/.exec(null); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T18.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T18.js index b1d5bdaf1..34ca221ce 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T18.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T18.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T18.js - * @description String is undefined and RegExp is /nd|ne/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is undefined and RegExp is /nd|ne/ +---*/ __executed = /nd|ne/.exec(undefined); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /nd|ne/.exec(undefined); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T19.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T19.js index bf5851923..62fe9f440 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T19.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T19.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T19.js - * @description String is void 0 and RegExp is /e{1}/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is void 0 and RegExp is /e{1}/ +---*/ __executed = /e{1}/.exec(void 0); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /e{1}/.exec(void 0); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T2.js index d910dcfc8..724dc0961 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T2.js - * @description String is new String("123") and RegExp is /((1)|(12))((3)|(23))/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is new String("123") and RegExp is /((1)|(12))((3)|(23))/ +---*/ with(/((1)|(12))((3)|(23))/){ __executed = exec(new String("123")); @@ -43,5 +42,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: with(/((1)|(12))((3)|(23))/){__executed = exec(new String("123"));} __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T20.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T20.js index c60a6b048..ab7655350 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T20.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T20.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T20.js - * @description String is x and RegExp is /[a-f]d/, where x is undefined variable - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is x and RegExp is /[a-f]d/, where x is undefined variable +---*/ __executed = /[a-f]d/.exec(x); @@ -43,4 +42,3 @@ for(var index=0; index<__expected.length; index++) { } var x; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T21.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T21.js index 2ce045593..f2a415e78 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T21.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T21.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T21.js - * @description String is function(){}() and RegExp is /[a-z]n/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is function(){}() and RegExp is /[a-z]n/ +---*/ __executed = /[a-z]n/.exec(function(){}()); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-z]n/.exec(function(){}()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T3.js index c2a05cc09..b5ff40a2d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T3.js - * @description String is new Object("abcdefghi") and RegExp is /a[a-z]{2,4}/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is new Object("abcdefghi") and RegExp is /a[a-z]{2,4}/ +---*/ __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); @@ -41,5 +40,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T4.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T4.js index 07468985e..a8f39248d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T4.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T4.js - * @description String is {toString:function(){return "abcdefghi";}} and RegExp is /a[a-z]{2,4}?/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: > + String is {toString:function(){return "abcdefghi";}} and RegExp is + /a[a-z]{2,4}?/ +---*/ __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); @@ -41,5 +42,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T5.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T5.js index 0efb7b256..6f9f046dd 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T5.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T5.js - * @description String is {toString:function(){return {};}, valueOf:function(){return "aabaac";}} and RegExp is /(aa|aabaac|ba|b|c)* / - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: > + String is {toString:function(){return {};}, + valueOf:function(){return "aabaac";}} and RegExp is + /(aa|aabaac|ba|b|c)* / +---*/ __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); @@ -41,5 +43,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T6.js index 2444d74bc..d44ad4be7 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T6.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T6.js - * @description String is (function(){return "zaacbbbcac"})() and RegExp is /(z)((a+)?(b+)?(c))* / - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: > + String is (function(){return "zaacbbbcac"})() and RegExp is + /(z)((a+)?(b+)?(c))* / +---*/ __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); @@ -41,5 +42,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T7.js index 7dbbb81e0..dc9fd0989 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T7.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T7.js - * @description String is {toString:function(){throw "intostr";}} and RegExp is /[a-z]/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: > + String is {toString:function(){throw "intostr";}} and RegExp is + /[a-z]/ +---*/ //CHECK#1 try { @@ -17,5 +18,3 @@ try { $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T8.js index 7d52b7a71..956421df1 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T8.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T8.js - * @description String is {toString:void 0, valueOf:function(){throw "invalof";}} and RegExp is /[a-z]/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: > + String is {toString:void 0, valueOf:function(){throw "invalof";}} + and RegExp is /[a-z]/ +---*/ //CHECK#1 try { @@ -17,5 +18,3 @@ try { $ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T9.js index f1dd9d5d6..5be324ebf 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T9.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and - * returns an Array object containing the results of the match, or null if the string did not match - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A1_T9.js - * @description String is undefined variable and RegExp is /1|12/ - */ +/*--- +info: > + RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and + returns an Array object containing the results of the match, or null if the string did not match +description: String is undefined variable and RegExp is /1|12/ +---*/ var __string; @@ -18,4 +17,3 @@ if (__re.exec(__string) !== null) { } function __string(){}; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T1.js index ef0e75779..4954ba0cc 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T1.js - * @description The internal [[Class]] property is "Object" - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The internal [[Class]] property is "Object" +---*/ __instance = new Object; @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T10.js index eb3c0d302..1811b10b9 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T10.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T10.js - * @description The tested object is undefined - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is undefined +---*/ exec = RegExp.prototype.exec; @@ -18,5 +18,3 @@ try { $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T2.js index 3ad0c6a36..64598565d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T2.js - * @description The tested object is Math - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is Math +---*/ __instance = Math; @@ -21,5 +21,3 @@ try { $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; with(__instance) exec("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T3.js index d95f43afa..adb5a2058 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T3.js - * @description The tested object is function object - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is function object +---*/ __instance.exec = RegExp.prototype.exec; @@ -21,4 +21,3 @@ try { } function __instance(){}; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T4.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T4.js index 54732989f..cdfaac28f 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T4.js - * @description The tested object is new String("[a-b]") - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new String("[a-b]") +---*/ __instance = new String("[a-b]"); @@ -22,5 +22,3 @@ with(__instance){ } } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T5.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T5.js index 1fe90d769..89be44645 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T5.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T5.js - * @description The tested object is new Boolean(false) - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new Boolean(false) +---*/ __instance = new Boolean(false); @@ -22,5 +22,3 @@ with(__instance) { } } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T6.js index 7ecc6c9ef..4a70ac2f1 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T6.js - * @description The tested object is new Number(1.0) - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new Number(1.0) +---*/ __instance = new Number(1.0); @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T7.js index 1c698ff1d..468beb97e 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T7.js - * @description The tested object is false - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is false +---*/ __instance = false; @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T8.js index f95548b61..d4d6f6d0a 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T8.js - * @description The tested object is "." - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is "." +---*/ __instance = "."; @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T9.js index ea43ba4db..3d34e2f45 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A2_T9.js - * @description The tested object is 1.0 - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is 1.0 +---*/ __instance = 1.0; @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T1.js index 2425d0941..32cec81d0 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T1.js - * @description RegExp is /(?:ab|cd)\d?/g and tested string is "ab cd2 ab34 cd" - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: "RegExp is /(?:ab|cd)\\d?/g and tested string is \"ab cd2 ab34 cd\"" +---*/ __re = /(?:ab|cd)\d?/g; @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T2.js index 65ba482a6..066861d74 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T2.js - * @description RegExp is /[Nn]evermore/g and tested string is very long string - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: RegExp is /[Nn]evermore/g and tested string is very long string +---*/ __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + "Over many a quaint and curious volume of forgotten lore," + @@ -152,5 +151,3 @@ do{ if (__matched !== NEVERMORE) { $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T3.js index d7dab0af9..b05fd87af 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T3.js - * @description RegExp is /[Nn]?evermore/g and tested string is very long string - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: RegExp is /[Nn]?evermore/g and tested string is very long string +---*/ __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + "Over many a quaint and curious volume of forgotten lore," + @@ -152,5 +151,3 @@ do{ if (__matched !== NEVERMORE_AND_EVERMORE) { $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T4.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T4.js index 72cac2ed5..8ed9f64c1 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T4.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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T4.js - * @description RegExp is /([Nn]?ever|([Nn]othing\s{1,}))more/g and tested string is very long string - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: > + RegExp is /([Nn]?ever|([Nn]othing\s{1,}))more/g and tested string + is very long string +---*/ __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + "Over many a quaint and curious volume of forgotten lore," + @@ -152,5 +153,3 @@ do{ if (__matched !== ALL_THE_HOPELESS_MORE) { $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T5.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T5.js index 1625679e0..f6ba5c3fa 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T5.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T5.js - * @description RegExp is /\d+/g and tested string is "123 456 789" - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: RegExp is /\d+/g and tested string is "123 456 789" +---*/ __re = /\d+/g; @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#2: __executed = /\\d+/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T6.js index 3ab41a91c..207761cde 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T6.js - * @description RegExp is /(\d+)/g and tested string is "123 456 789" - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: RegExp is /(\d+)/g and tested string is "123 456 789" +---*/ __re = /(\d+)/g; @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T7.js index 1160c0ac0..d9a48ed58 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true and lastIndex not changed manually, - * next exec calling start to match from position where current match finished - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A3_T7.js - * @description RegExp is /\d+/ and tested string is "123 456 789" - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true and lastIndex not changed manually, + next exec calling start to match from position where current match finished +description: RegExp is /\d+/ and tested string is "123 456 789" +---*/ __re = /\d+/; @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#2: __executed = /\\d+/.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T1.js index 56d1f7e62..1b04a40fa 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T1.js - * @description Call first exec, then set re.lastIndex = 12 and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: Call first exec, then set re.lastIndex = 12 and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +67,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T10.js index 0d880dd0f..2ff8a1f9b 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T10.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T10.js - * @description Call first exec, then set re.lastIndex = {valueOf:function(){return 12;}} and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = + {valueOf:function(){return 12;}} and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -70,5 +71,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T11.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T11.js index 3a8a07cea..463d16510 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T11.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T11.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T11.js - * @description Call first exec, then set re.lastIndex = {valueOf:function(){throw "intoint";}} and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = {valueOf:function(){throw + "intoint";}} and again call exec +includes: [$FAIL.js] +---*/ __re = /(?:ab|cd)\d?/g; @@ -51,5 +53,3 @@ try { $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T12.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T12.js index 44ae47514..dc5bbe899 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T12.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T12.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T12.js - * @description Call first exec, then set re.lastIndex = {toString:function(){return 12;},valueOf:function(){return {};}} and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = + {toString:function(){return 12;},valueOf:function(){return {};}} + and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -70,5 +72,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T2.js index 485c6e7fa..638184c45 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T2.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T2.js - * @description Call first exec, then set re.lastIndex = undefined and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = undefined and again call + exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +69,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T3.js index 07daf65ea..54a891507 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T3.js - * @description Call first exec, then set re.lastIndex = void 0 and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: Call first exec, then set re.lastIndex = void 0 and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +67,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T4.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T4.js index cfdb7a7bd..513dbbe0e 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T4.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T4.js - * @description Call first exec, then set re.lastIndex = null and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: Call first exec, then set re.lastIndex = null and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +67,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T5.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T5.js index da1c8bc04..5c0d8561a 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T5.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T5.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T5.js - * @description Call first exec, then set re.lastIndex = x and again call exec, where x is undefined variable - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = x and again call exec, + where x is undefined variable +---*/ __re = /(?:ab|cd)\d?/g; @@ -70,4 +71,3 @@ for(var index=0; index<__expected.length; index++) { } var x; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T6.js index 482bb420f..2bfa2b1f8 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T6.js - * @description Call first exec, then set re.lastIndex = false and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: Call first exec, then set re.lastIndex = false and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +67,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T7.js index 3d08c9098..f7d9fac24 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T7.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T7.js - * @description Call first exec, then set re.lastIndex = Math.NaN and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = Math.NaN and again call + exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +69,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T8.js index 7d79fd939..97b017e92 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T8.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T8.js - * @description Call first exec, then set re.lastIndex = "12" and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: Call first exec, then set re.lastIndex = "12" and again call exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +67,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T9.js index 3a001d425..6364fa4a5 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T9.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec behavior depends on global property. - * If global is true next exec calling start to match from lastIndex position - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A4_T9.js - * @description Call first exec, then set re.lastIndex = "eleven" and again call exec - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + If global is true next exec calling start to match from lastIndex position +description: > + Call first exec, then set re.lastIndex = "eleven" and again call + exec +---*/ __re = /(?:ab|cd)\d?/g; @@ -68,5 +69,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T1.js index 36a518f16..782b99acb 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T1.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. -/** - * RegExp.prototype.exec behavior depends on global property. - * Let global is true and let I = If ToInteger(lastIndex). - * Then if I<0 orI>length then set lastIndex to 0 and return null - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T1.js - * @description First call /(?:ab|cd)\d?/g.exec("aac1dz2233a1bz12nm444ab42"), and then First call /(?:ab|cd)\d?/g.exec("aacd22") - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + Let global is true and let I = If ToInteger(lastIndex). + Then if I<0 orI>length then set lastIndex to 0 and return null +description: > + First call /(?:ab|cd)\d?/g.exec("aac1dz2233a1bz12nm444ab42"), and + then First call /(?:ab|cd)\d?/g.exec("aacd22") +---*/ __re = /(?:ab|cd)\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); @@ -50,5 +51,3 @@ if (__executed) { if (__re.lastIndex !== 0) { $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T2.js index 8de8ba885..9b0e20127 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * Let global is true and let I = If ToInteger(lastIndex). - * Then if I<0 orI>length then set lastIndex to 0 and return null - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T2.js - * @description Set lastIndex to 100 and call /(?:ab|cd)\d?/g.exec("aacd22 ") - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + Let global is true and let I = If ToInteger(lastIndex). + Then if I<0 orI>length then set lastIndex to 0 and return null +description: "Set lastIndex to 100 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")" +---*/ __re = /(?:ab|cd)\d?/g; __re.lastIndex=100; @@ -23,5 +22,3 @@ if (__executed) { if (__re.lastIndex !== 0) { $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T3.js index 7e2d76626..b76dd8e75 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_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. -/** - * RegExp.prototype.exec behavior depends on global property. - * Let global is true and let I = If ToInteger(lastIndex). - * Then if I<0 orI>length then set lastIndex to 0 and return null - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A5_T3.js - * @description Set lastIndex to -1 and call /(?:ab|cd)\d?/g.exec("aacd22 ") - */ +/*--- +info: > + RegExp.prototype.exec behavior depends on global property. + Let global is true and let I = If ToInteger(lastIndex). + Then if I<0 orI>length then set lastIndex to 0 and return null +description: "Set lastIndex to -1 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")" +---*/ __re = /(?:ab|cd)\d?/g; __re.lastIndex=-1; @@ -36,5 +35,3 @@ if (__executed) { if (__re.lastIndex !== 0) { $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A6.js index 5e71a618c..56dd3d0aa 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A6.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.exec has not prototype property - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A6.js - * @description Checking RegExp.prototype.exec.prototype - */ +/*--- +info: RegExp.prototype.exec has not prototype property +description: Checking RegExp.prototype.exec.prototype +---*/ //CHECK#1 if (RegExp.prototype.exec.prototype !== undefined) { $ERROR('#1: RegExp.prototype.exec.prototype === undefined. Actual: ' + (RegExp.prototype.exec.prototype)); } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A7.js index 7285a2ab1..fa03dda1d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A7.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. -/** - * RegExp.prototype.exec can't be used as constructor - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A7.js - * @description Checking if creating the RegExp.prototype.exec object fails - */ +/*--- +info: RegExp.prototype.exec can't be used as constructor +description: Checking if creating the RegExp.prototype.exec object fails +---*/ __FACTORY = RegExp.prototype.exec; @@ -18,4 +16,3 @@ try { $ERROR('#1.2: __FACTORY = RegExp.prototype.exec throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A8.js index ffe5d7b01..cdf0f62ac 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype.exec.length property has the attribute DontEnum - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A8.js - * @description Checking if enumerating the RegExp.prototype.exec.length property fails - */ +/*--- +info: The RegExp.prototype.exec.length property has the attribute DontEnum +description: > + Checking if enumerating the RegExp.prototype.exec.length property + fails +---*/ //CHECK#0 if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { @@ -28,5 +28,3 @@ for (p in RegExp.prototype.exec){ if (count !== 0) { $ERROR('#2: count = 0; for (p in RegExp.prototype.exec){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A9.js index 1e67a2125..762a6644b 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_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 RegExp.prototype.exec.length property has the attribute DontDelete - * - * @path ch15/15.10/15.10.6/15.10.6.2/S15.10.6.2_A9.js - * @description Checking if deleting the RegExp.prototype.exec.length property fails - */ +/*--- +info: The RegExp.prototype.exec.length property has the attribute DontDelete +description: > + Checking if deleting the RegExp.prototype.exec.length property + fails +includes: [$FAIL.js] +---*/ //CHECK#0 if ((RegExp.prototype.exec.hasOwnProperty('length') !== true)) { @@ -22,5 +23,3 @@ if (delete RegExp.prototype.exec.length !== false) { if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { $ERROR('#2: delete RegExp.prototype.exec.length; RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A10.js index ada503cda..f1150a469 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A10.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype.test.length property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A10.js - * @description Checking if varying the RegExp.prototype.test.length property fails - */ +/*--- +info: The RegExp.prototype.test.length property has the attribute ReadOnly +description: Checking if varying the RegExp.prototype.test.length property fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.prototype.test.hasOwnProperty('length') !== true) { @@ -21,5 +20,3 @@ RegExp.prototype.test.length = function(){return "shifted";}; if (RegExp.prototype.test.length !== __obj) { $ERROR('#2: __obj = RegExp.prototype.test.length; RegExp.prototype.test.length = function(){return "shifted";}; RegExp.prototype.test.length === __obj. Actual: ' + (RegExp.prototype.test.length)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A11.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A11.js index faefeada3..888c1403a 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A11.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A11.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the test method is 1 - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A11.js - * @description Checking RegExp.prototype.test.length - */ +/*--- +info: The length property of the test method is 1 +description: Checking RegExp.prototype.test.length +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.prototype.test.hasOwnProperty("length") !== true) { @@ -17,5 +16,3 @@ if (RegExp.prototype.test.hasOwnProperty("length") !== true) { if (RegExp.prototype.test.length !== 1) { $ERROR('#2: RegExp.prototype.test.length === 1. Actual: ' + (RegExp.prototype.test.length)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T1.js index bb51ec13f..3478c2b52 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T1.js - * @description RegExp is /1|12/ and tested string is "123" - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /1|12/ and tested string is "123" +---*/ var __string = "123"; __re = /1|12/; @@ -15,5 +13,3 @@ __re = /1|12/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T10.js index b2817a297..273fa0941 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T10.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T10.js - * @description RegExp is /1|12/ and tested string is 1.01 - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /1|12/ and tested string is 1.01 +---*/ var __string = 1.01; __re = /1|12/; @@ -15,5 +13,3 @@ __re = /1|12/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T11.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T11.js index 2687e40cb..5c60598e3 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T11.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T11.js - * @description RegExp is /2|12/ and tested string is new Number(1.012) - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /2|12/ and tested string is new Number(1.012) +---*/ var __string = new Number(1.012); __re = /2|12/; @@ -15,5 +13,3 @@ __re = /2|12/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T12.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T12.js index 95ff76d74..d63ad848c 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T12.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T12.js - * @description RegExp is /\.14/ and tested string is {toString:function(){return Math.PI;}} - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /\.14/ and tested string is {toString:function(){return + Math.PI;}} +---*/ var __string = {toString:function(){return Math.PI;}}; __re = /\.14/; @@ -15,5 +15,3 @@ __re = /\.14/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T13.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T13.js index b489ac423..c71e9f9af 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T13.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T13.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. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T13.js - * @description RegExp is /t[a-b|q-s]/ and tested string is true - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /t[a-b|q-s]/ and tested string is true +---*/ var __string = true; __re = /t[a-b|q-s]/; @@ -15,5 +13,3 @@ __re = /t[a-b|q-s]/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T14.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T14.js index 7d92aae10..d0c23c6cd 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T14.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T14.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T14.js - * @description RegExp is /AL|se/ and tested string is new Boolean - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /AL|se/ and tested string is new Boolean +---*/ var __string = new Boolean; __re = /AL|se/; @@ -15,5 +13,3 @@ __re = /AL|se/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T15.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T15.js index d5fa26f76..eb7823a2a 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T15.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T15.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T15.js - * @description RegExp is /LS/i and tested string is {toString:function(){return false;}} - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /LS/i and tested string is {toString:function(){return + false;}} +---*/ var __string = {toString:function(){return false;}}; __re = /LS/i; @@ -15,5 +15,3 @@ __re = /LS/i; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T16.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T16.js index 7dedbf60e..4620338ce 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T16.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T16.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. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T16.js - * @description RegExp is /undefined/ and call test() without arguments - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /undefined/ and call test() without arguments +---*/ __re = /undefined/; @@ -14,5 +12,3 @@ __re = /undefined/; if (__re.test() !== (__re.exec() !== null)) { $ERROR('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T17.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T17.js index 0e4bab34c..1077183dd 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T17.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T17.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T17.js - * @description RegExp is /ll|l/ and tested string is null - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /ll|l/ and tested string is null +---*/ __re = /ll|l/; @@ -14,5 +12,3 @@ __re = /ll|l/; if (__re.test(null) !== (__re.exec(null) !== null)) { $ERROR('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T18.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T18.js index 7931a811c..e05484807 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T18.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T18.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. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T18.js - * @description RegExp is /nd|ne/ and tested string is undefined - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /nd|ne/ and tested string is undefined +---*/ __re = /nd|ne/; @@ -14,5 +12,3 @@ __re = /nd|ne/; if (__re.test(undefined) !== (__re.exec(undefined) !== null)) { $ERROR('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T19.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T19.js index 8621eff94..b0b7c478e 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T19.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T19.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. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T19.js - * @description RegExp is /e{1}/ and tested string is void 0 - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /e{1}/ and tested string is void 0 +---*/ __re = /e{1}/; @@ -14,5 +12,3 @@ __re = /e{1}/; if (__re.test(void 0) !== (__re.exec(void 0) !== null)) { $ERROR('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T2.js index f171f2300..5d131d636 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T2.js - * @description RegExp is /((1)|(12))((3)|(23))/ and tested string is new String("123") - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /((1)|(12))((3)|(23))/ and tested string is new + String("123") +---*/ var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; @@ -15,5 +15,3 @@ __re = /((1)|(12))((3)|(23))/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T20.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T20.js index 9548d0c37..fa6961557 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T20.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T20.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. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T20.js - * @description RegExp is /[a-f]d/ and tested string is x, where x is undefined - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /[a-f]d/ and tested string is x, where x is undefined +---*/ __re = /[a-f]d/; @@ -16,4 +14,3 @@ if (__re.test(x) !== (__re.exec(x) !== null)) { } var x; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T21.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T21.js index 7d881ac7a..649c8219f 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T21.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T21.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T21.js - * @description RegExp is /[a-z]n/ and tested string is x, where x is function(){}() - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /[a-z]n/ and tested string is x, where x is + function(){}() +---*/ __re = /[a-z]n/; @@ -14,5 +14,3 @@ __re = /[a-z]n/; if (__re.test(function(){}()) !== (__re.exec(function(){}()) !== null)) { $ERROR('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T3.js index e4e2d476f..ab16c7b50 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T3.js - * @description RegExp is /a[a-z]{2,4}/ and tested string is new Object("abcdefghi") - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /a[a-z]{2,4}/ and tested string is new + Object("abcdefghi") +---*/ var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; @@ -15,5 +15,3 @@ __re = /a[a-z]{2,4}/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T4.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T4.js index 6bb802c1d..04354540f 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T4.js - * @description RegExp is /a[a-z]{2,4}?/ and tested string is {toString:function(){return "abcdefghi";}} - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /a[a-z]{2,4}?/ and tested string is + {toString:function(){return "abcdefghi";}} +---*/ var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; @@ -15,5 +15,3 @@ __re = /a[a-z]{2,4}?/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T5.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T5.js index 40987cabf..1086fef1d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T5.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T5.js - * @description RegExp is /(aa|aabaac|ba|b|c)* / and tested string is {toString:function(){return {};}, valueOf:function(){return "aabaac";}} - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /(aa|aabaac|ba|b|c)* / and tested string is + {toString:function(){return {};}, valueOf:function(){return + "aabaac";}} +---*/ var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; @@ -15,5 +16,3 @@ __re = /(aa|aabaac|ba|b|c)*/; if (__re.test(__string) !== (__re.exec(__string) !== null)) { $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T6.js index 67c631529..a48836223 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T6.js - * @description RegExp is /(z)((a+)?(b+)?(c))* / and tested string is (function(){return "zaacbbbcac"})() - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /(z)((a+)?(b+)?(c))* / and tested string is + (function(){return "zaacbbbcac"})() +---*/ __re = /(z)((a+)?(b+)?(c))*/; @@ -14,5 +14,3 @@ __re = /(z)((a+)?(b+)?(c))*/; if (__re.test((function(){return "zaacbbbcac"})()) !== (__re.exec((function(){return "zaacbbbcac"})()) !== null)) { $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T7.js index 2f58c4a4f..3a6dc5fca 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T7.js - * @description RegExp is /[a-z]/ and tested string is {toString:function(){throw "intostr";}} - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /[a-z]/ and tested string is {toString:function(){throw + "intostr";}} +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T8.js index c26af1273..5ff70a365 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T8.js - * @description RegExp is /[a-z]/ and tested string is {toString:void 0, valueOf:function(){throw "invalof";}} - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: > + RegExp is /[a-z]/ and tested string is {toString:void 0, + valueOf:function(){throw "invalof";}} +---*/ //CHECK#1 try { @@ -16,4 +16,3 @@ try { $ERROR('#1.2: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T9.js index f4c2b1494..0dd107d98 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T9.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Equivalent to the expression RegExp.prototype.exec(string) != null - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A1_T9.js - * @description RegExp is /1|12/ and tested string is function object - */ +/*--- +info: Equivalent to the expression RegExp.prototype.exec(string) != null +description: RegExp is /1|12/ and tested string is function object +---*/ var __string; __re = /1|12/; @@ -17,4 +15,3 @@ if (__re.test(__string) !== (__re.exec(__string) !== null)) { } function __string(){}; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T1.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T1.js index a439f4d8b..7432c26da 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T1.js - * @description The tested object is new Object - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new Object +---*/ __instance = new Object; @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = new Object; __instance.test = RegExp.prototype.test. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T10.js index 460a9300f..a76717616 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T10.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T10.js - * @description The tested object is undefined - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is undefined +---*/ test = RegExp.prototype.test; @@ -18,4 +18,3 @@ try { $ERROR('#1.2: test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T2.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T2.js index 818fac34f..f48f3f85b 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T2.js - * @description The tested object is Math - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is Math +---*/ __instance = Math; @@ -21,6 +21,3 @@ try { $ERROR('#1.2: __instance = Math; __instance.test = RegExp.prototype.test; with(__instance) test("message to investigate"). Actual: ' + (e)); } } - - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T3.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T3.js index 022921d03..306303d3c 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T3.js - * @description The tested object is function object - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is function object +---*/ __instance.test = RegExp.prototype.test; @@ -21,4 +21,3 @@ try { } function __instance(){}; - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T4.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T4.js index 1c6a3b6a1..e3b0352e5 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T4.js - * @description The tested object is new String("[a-b]") - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new String("[a-b]") +---*/ __instance = new String("[a-b]"); @@ -22,5 +22,3 @@ with(__instance){ } } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T5.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T5.js index 7b36fed26..d3bb9eb82 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T5.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T5.js - * @description The tested object is new Boolean(false) - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new Boolean(false) +---*/ __instance = new Boolean(false); @@ -22,4 +22,3 @@ with(__instance) { } } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T6.js index a7f773750..c28e57914 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T6.js - * @description The tested object is new Number(1.0) - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is new Number(1.0) +---*/ __instance = new Number(1.0); @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = new Number(1.0); __instance.test = RegExp.prototype.test; __instance["test"]("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T7.js index 053c11c7e..9e2b6e990 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T7.js - * @description The tested object is false - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is false +---*/ __instance = false; @@ -20,6 +20,3 @@ try { $ERROR('#1.2: __instance = false; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } - - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T8.js index 67dbbf1cf..e292f8199 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T8.js - * @description The tested object is "." - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is "." +---*/ __instance = "."; @@ -20,4 +20,3 @@ try { $ERROR('#1.2: __instance = "."; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T9.js index 754f0c536..53dcdcd56 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A TypeError exception is thrown if the this value is not an object for which the value of the internal [[Class]] property is "RegExp" - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A2_T9.js - * @description The tested object is 1.0 - */ +/*--- +info: > + A TypeError exception is thrown if the this value is not an object for + which the value of the internal [[Class]] property is "RegExp" +description: The tested object is 1.0 +---*/ __instance = 1.0; @@ -20,5 +20,3 @@ try { $ERROR('#1.2: __instance = 1.0; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A6.js index 5634afb38..b4570d20d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A6.js @@ -1,16 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.test has not prototype property - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A6.js - * @description Checking RegExp.prototype.test.prototype - */ +/*--- +info: RegExp.prototype.test has not prototype property +description: Checking RegExp.prototype.test.prototype +---*/ //CHECK#1 if (RegExp.prototype.test.prototype !== undefined) { $ERROR('#1: RegExp.prototype.test.prototype === undefined. Actual: ' + (RegExp.prototype.test.prototype)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A7.js index dbbc5a305..34e6e916e 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A7.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. -/** - * RegExp.prototype.test can't be used as constructor - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A7.js - * @description Checking if creating the RegExp.prototype.test object fails - */ +/*--- +info: RegExp.prototype.test can't be used as constructor +description: Checking if creating the RegExp.prototype.test object fails +---*/ __FACTORY = RegExp.prototype.test; @@ -18,4 +16,3 @@ try { $ERROR('#1.2: __FACTORY = RegExp.prototype.test throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A8.js index 39e2f2fa7..0d116c90a 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype.test.length property has the attribute DontEnum - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A8.js - * @description Checking if enumerating the RegExp.prototype.test.length property fails - */ +/*--- +info: The RegExp.prototype.test.length property has the attribute DontEnum +description: > + Checking if enumerating the RegExp.prototype.test.length property + fails +---*/ //CHECK#0 if (RegExp.prototype.test.hasOwnProperty('length') !== true) { @@ -28,5 +28,3 @@ for (p in RegExp.prototype.test){ if (count !== 0) { $ERROR('#2: count = 0; for (p in RegExp.prototype.test){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A9.js index f5a6aa7b9..8acfb7487 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A9.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype.test.length property has the attribute DontDelete - * - * @path ch15/15.10/15.10.6/15.10.6.3/S15.10.6.3_A9.js - * @description Checking if deleting RegExp.prototype.test.length property fails - */ +/*--- +info: The RegExp.prototype.test.length property has the attribute DontDelete +description: Checking if deleting RegExp.prototype.test.length property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if ((RegExp.prototype.exec.hasOwnProperty('length') !== true)) { @@ -22,5 +21,3 @@ if (delete RegExp.prototype.exec.length !== false) { if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { $ERROR('#2: delete RegExp.prototype.exec.length; RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A10.js b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A10.js index 59c73b9c4..545e1ab5f 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A10.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_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 RegExp.prototype.toString.length property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A10.js - * @description Checking if varying the RegExp.prototype.toString.length property fails - */ +/*--- +info: The RegExp.prototype.toString.length property has the attribute ReadOnly +description: > + Checking if varying the RegExp.prototype.toString.length property + fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { @@ -21,5 +22,3 @@ RegExp.prototype.toString.length = function(){return "shifted";}; if (RegExp.prototype.toString.length !== __obj) { $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A11.js b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A11.js index 23f54b523..3cac9e18e 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A11.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A11.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the toString method is 1 - * - * @path ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A11.js - * @description Checking RegExp.prototype.toString.length - */ +/*--- +info: The length property of the toString method is 1 +description: Checking RegExp.prototype.toString.length +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty("length") !== true) { @@ -17,5 +16,3 @@ if (RegExp.prototype.toString.hasOwnProperty("length") !== true) { if (RegExp.prototype.toString.length !== 0) { $ERROR('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A6.js index 66acbd26e..2235cc583 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A6.js @@ -1,16 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp.prototype.toString has not prototype property - * - * @path ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A6.js - * @description Checking RegExp.prototype.toString.prototype - */ +/*--- +info: RegExp.prototype.toString has not prototype property +description: Checking RegExp.prototype.toString.prototype +---*/ //CHECK#1 if (RegExp.prototype.toString.prototype !== undefined) { $ERROR('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A7.js b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A7.js index cc3296e3c..d27c1cb5d 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A7.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A7.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. -/** - * RegExp.prototype.toString can't be used as constructor - * - * @path ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A7.js - * @description Checking if creating the RegExp.prototype.toString object fails - */ +/*--- +info: RegExp.prototype.toString can't be used as constructor +description: Checking if creating the RegExp.prototype.toString object fails +---*/ __FACTORY = RegExp.prototype.toString; @@ -18,4 +16,3 @@ try { $ERROR('#1.2: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A8.js b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A8.js index ae1eed75e..fbaf9a1d2 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A8.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype.toString.length property has the attribute DontEnum - * - * @path ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A8.js - * @description Checking if enumerating the RegExp.prototype.toString.length property fails - */ +/*--- +info: The RegExp.prototype.toString.length property has the attribute DontEnum +description: > + Checking if enumerating the RegExp.prototype.toString.length + property fails +---*/ //CHECK#0 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { @@ -28,5 +28,3 @@ for (p in RegExp.prototype.toString){ if (count !== 0) { $ERROR('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A9.js b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A9.js index 677fd21aa..98568b225 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A9.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_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 RegExp.prototype.toString.length property has the attribute DontDelete - * - * @path ch15/15.10/15.10.6/15.10.6.4/S15.10.6.4_A9.js - * @description Checking if deleting the RegExp.prototype.toString.length property fails - */ +/*--- +info: The RegExp.prototype.toString.length property has the attribute DontDelete +description: > + Checking if deleting the RegExp.prototype.toString.length property + fails +includes: [$FAIL.js] +---*/ //CHECK#0 if ((RegExp.prototype.toString.hasOwnProperty('length') !== true)) { @@ -22,5 +23,3 @@ if (delete RegExp.prototype.toString.length !== false) { if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { $ERROR('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/15.10.6.js b/test/suite/ch15/15.10/15.10.6/15.10.6.js index 0f8543e4b..034c556f1 100644 --- a/test/suite/ch15/15.10/15.10.6/15.10.6.js +++ b/test/suite/ch15/15.10/15.10.6/15.10.6.js @@ -1,16 +1,16 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.6/15.10.6.js
- * @description RegExp.prototype is itself a RegExp
- */
-
-
-function testcase() {
- var s = Object.prototype.toString.call(RegExp.prototype);
- return s === '[object RegExp]';
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: RegExp.prototype is itself a RegExp +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = Object.prototype.toString.call(RegExp.prototype); + return s === '[object RegExp]'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T1.js b/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T1.js index 5363d1890..9611e66c9 100644 --- a/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T1.js @@ -1,16 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The initial value of RegExp.prototype.constructor is the built-in RegExp constructor - * - * @path ch15/15.10/15.10.6/S15.10.6.1_A1_T1.js - * @description Compare RegExp.prototype.constructor with RegExp - */ +/*--- +info: > + The initial value of RegExp.prototype.constructor is the built-in RegExp + constructor +description: Compare RegExp.prototype.constructor with RegExp +---*/ //CHECK#1 if (RegExp.prototype.constructor !== RegExp) { $ERROR('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T2.js b/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T2.js index 28384a3e8..2c1de28fc 100644 --- a/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.6/S15.10.6.1_A1_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The initial value of RegExp.prototype.constructor is the built-in RegExp constructor - * - * @path ch15/15.10/15.10.6/S15.10.6.1_A1_T2.js - * @description Compare instance.constructor !== RegExp, where instance is new RegExp.prototype.constructor - */ +/*--- +info: > + The initial value of RegExp.prototype.constructor is the built-in RegExp + constructor +description: > + Compare instance.constructor !== RegExp, where instance is new + RegExp.prototype.constructor +---*/ __FACTORY = RegExp.prototype.constructor; @@ -21,5 +23,3 @@ if ((__instance instanceof RegExp) !== true) { if (__instance.constructor !== RegExp) { $ERROR('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } - - diff --git a/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T1.js b/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T1.js index aec954bef..f18865b26 100644 --- a/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T1.js @@ -1,16 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of the internal [[Prototype]] property of the RegExp prototype object is the Object prototype - * - * @path ch15/15.10/15.10.6/S15.10.6_A1_T1.js - * @description Checking Object.prototype.isPrototypeOf(RegExp.prototype) - */ +/*--- +info: > + The value of the internal [[Prototype]] property of the RegExp prototype + object is the Object prototype +description: Checking Object.prototype.isPrototypeOf(RegExp.prototype) +---*/ //CHECK#1 if (Object.prototype.isPrototypeOf(RegExp.prototype) !== true) { $ERROR('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T2.js b/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T2.js index c937bdbf5..44b1fa94c 100644 --- a/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.6/S15.10.6_A1_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of the internal [[Prototype]] property of the RegExp prototype object is the Object prototype - * - * @path ch15/15.10/15.10.6/S15.10.6_A1_T2.js - * @description Add new property to Object.prototype and check it of RegExp.prototype - */ +/*--- +info: > + The value of the internal [[Prototype]] property of the RegExp prototype + object is the Object prototype +description: > + Add new property to Object.prototype and check it of + RegExp.prototype +---*/ Object.prototype.indicator = 1; @@ -14,5 +16,3 @@ Object.prototype.indicator = 1; if (RegExp.prototype.indicator !== 1) { $ERROR('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator)); } - - |