diff options
Diffstat (limited to 'test/suite/ch15/15.10')
544 files changed, 3979 insertions, 4935 deletions
diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T1.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T1.js index c629126d8..bd19ef584 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T1.js - * @description Tested RegExp is "a**" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "a**" +---*/ //CHECK#1 try { @@ -16,4 +14,3 @@ try { $ERROR('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T10.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T10.js index 858f95ad4..8f0bb25e4 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T10.js - * @description Tested RegExp is "++a" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "++a" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T11.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T11.js index e3ebc5c11..6e8e7cdaa 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T11.js - * @description Tested RegExp is "?a" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "?a" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T12.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T12.js index 02f80d692..9683d5e74 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T12.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T12.js - * @description Tested RegExp is "??a" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "??a" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T13.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T13.js index e6c0f5f37..01b701ddf 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T13.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T13.js - * @description Tested RegExp is "x{1}{1,}" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "x{1}{1,}" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T14.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T14.js index d1bc8b0b2..f886ed0dc 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T14.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T14.js - * @description Tested RegExp is "x{1,2}{1}" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "x{1,2}{1}" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T15.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T15.js index 1912f4606..34d581b3f 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T15.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T15.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 syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T15.js - * @description Tested RegExp is "x{1,}{1}" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "x{1,}{1}" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T16.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T16.js index 70aea659d..e6f2e62e2 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T16.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T16.js - * @description Tested RegExp is "x{0,1}{1,}" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "x{0,1}{1,}" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T2.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T2.js index 85d12c192..bc5e212a1 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T2.js - * @description Tested RegExp is "a***" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "a***" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T3.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T3.js index eb39dde82..5dde15f86 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T3.js - * @description Tested RegExp is "a++" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "a++" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T4.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T4.js index b057a5a46..f7dd3b5d5 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T4.js - * @description Tested RegExp is "a+++" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "a+++" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T5.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T5.js index 1954fc136..f56c8e287 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T5.js - * @description Tested RegExp is "a???" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "a???" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T6.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T6.js index 83ae8f1c4..b17f7b1e0 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T6.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T6.js - * @description Tested RegExp is "a????" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "a????" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T7.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T7.js index affed4c57..ee3041b11 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T7.js - * @description Tested RegExp is "*a" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "*a" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T8.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T8.js index e2dc4af80..0f45dc6d3 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T8.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T8.js - * @description Tested RegExp is "**a" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "**a" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T9.js b/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T9.js index 561c2a5e7..9d27d4268 100644 --- a/test/suite/ch15/15.10/15.10.1/S15.10.1_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.1/S15.10.1_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. -/** - * RegExp syntax errors must be caught when matcher(s) compiles - * - * @path ch15/15.10/15.10.1/S15.10.1_A1_T9.js - * @description Tested RegExp is "+a" - */ +/*--- +info: RegExp syntax errors must be caught when matcher(s) compiles +description: Tested RegExp is "+a" +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.1_T1.js index d4cfc054d..1e0e8e8de 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.1_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. -/** - * The production CharacterEscape :: t evaluates by returning - * the character \u0009 - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.1_T1.js - * @description Use \t in RegExp and \u0009 in tested string - */ +/*--- +info: > + The production CharacterEscape :: t evaluates by returning + the character \u0009 +description: Use \t in RegExp and \u0009 in tested string +---*/ //CHECK#1 var arr = /\t/.exec("\u0009"); @@ -19,5 +18,4 @@ if ((arr === null) || (arr[0] !== "\u0009")) { var arr = /\t\t/.exec("a\u0009\u0009b"); if ((arr === null) || (arr[0] !== "\u0009\u0009")) { $ERROR('#2: var arr = /\\t\\t/.exec("a\\u0009\\u0009b"); arr[0] === "\\u0009\\u0009". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.2_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.2_T1.js index c0294ae78..d2471d637 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.2_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.2_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. -/** - * The production CharacterEscape :: n evaluates by returning - * the character \u000A - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.2_T1.js - * @description Use \n in RegExp and \u000A in tested string - */ +/*--- +info: > + The production CharacterEscape :: n evaluates by returning + the character \u000A +description: Use \n in RegExp and \u000A in tested string +---*/ //CHECK#1 var arr = /\n/.exec("\u000A"); @@ -19,5 +18,4 @@ if ((arr === null) || (arr[0] !== "\u000A")) { var arr = /\n\n/.exec("a\u000A\u000Ab"); if ((arr === null) || (arr[0] !== "\u000A\u000A")) { $ERROR('#2: var arr = /\\n\\n/.exec("a\\u000A\\u000Ab"); arr[0] === "\\u000A\\u000A". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.3_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.3_T1.js index c1d26f44d..1e6f55005 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.3_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.3_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. -/** - * The production CharacterEscape :: v evaluates by returning - * the character \u000B - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.3_T1.js - * @description Use \v in RegExp and \u000B in tested string - */ +/*--- +info: > + The production CharacterEscape :: v evaluates by returning + the character \u000B +description: Use \v in RegExp and \u000B in tested string +---*/ //CHECK#1 var arr = /\v/.exec("\u000B"); @@ -19,5 +18,4 @@ if ((arr === null) || (arr[0] !== "\u000B")) { var arr = /\v\v/.exec("a\u000B\u000Bb"); if ((arr === null) || (arr[0] !== "\u000B\u000B")) { $ERROR('#2: var arr = /\\v\\v/.exec("a\\u000B\\u000Bb"); arr[0] === "\\u000B\\u000B". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.4_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.4_T1.js index 4b3b0f1b2..4ca86c97f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.4_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.4_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. -/** - * The production CharacterEscape :: f evaluates by returning - * the character \u000C - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.4_T1.js - * @description Use \f in RegExp and \u000C in tested string - */ +/*--- +info: > + The production CharacterEscape :: f evaluates by returning + the character \u000C +description: Use \f in RegExp and \u000C in tested string +---*/ //CHECK#1 var arr = /\f/.exec("\u000C"); @@ -19,5 +18,4 @@ if ((arr === null) || (arr[0] !== "\u000C")) { var arr = /\f\f/.exec("a\u000C\u000Cb"); if ((arr === null) || (arr[0] !== "\u000C\u000C")) { $ERROR('#2: var arr = /\\f\\f/.exec("a\\u000C\\u000Cb"); arr[0] === "\\u000C\\u000C". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.5_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.5_T1.js index d69e42496..e05599dbd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.5_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.5_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. -/** - * The production CharacterEscape :: r evaluates by returning - * the character \u000D - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A1.5_T1.js - * @description Use \r in RegExp and \u000D in tested string - */ +/*--- +info: > + The production CharacterEscape :: r evaluates by returning + the character \u000D +description: Use \r in RegExp and \u000D in tested string +---*/ //CHECK#1 var arr = /\r/.exec("\u000D"); @@ -19,5 +18,4 @@ if ((arr === null) || (arr[0] !== "\u000D")) { var arr = /\r\r/.exec("a\u000D\u000Db"); if ((arr === null) || (arr[0] !== "\u000D\u000D")) { $ERROR('#2: var arr = /\\r\\r/.exec("a\\u000D\\u000Db"); arr[0] === "\\u000D\\u000D". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T1.js index 623c912ea..e620e4840 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_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. -/** - * CharacterEscape :: c ControlLetter - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T1.js - * @description ControlLetter :: A - Z - */ +/*--- +info: "CharacterEscape :: c ControlLetter" +description: "ControlLetter :: A - Z" +---*/ //CHECK#0041-005A var result = true; @@ -20,5 +18,4 @@ for (alpha = 0x0041; alpha <= 0x005A; alpha++) { if (result !== true) { $ERROR('#1: CharacterEscape :: c A - Z'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T2.js index 2b6a3937b..6b02edd06 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CharacterEscape :: c ControlLetter - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T2.js - * @description ControlLetter :: a - z - */ +/*--- +info: "CharacterEscape :: c ControlLetter" +description: "ControlLetter :: a - z" +---*/ //CHECK#0061-007A var result = true; @@ -20,5 +18,4 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#1: CharacterEscape :: c a - z'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T3.js index bdf21e064..4da079671 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CharacterEscape :: c ControlLetter - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A2.1_T3.js - * @description ControlLetter :: RUSSIAN ALPHABET is incorrect - */ +/*--- +info: "CharacterEscape :: c ControlLetter" +description: "ControlLetter :: RUSSIAN ALPHABET is incorrect" +---*/ //CHECK#0410-042F var result = true; @@ -34,5 +32,4 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet is incorrect'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T1.js index 2a431dc18..4d6e83325 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_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. -/** - * CharacterEscape :: HexEscapeSequence :: x HexDigit HexDigit - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T1.js - * @description Tested string include equal unicode symbols - */ +/*--- +info: "CharacterEscape :: HexEscapeSequence :: x HexDigit HexDigit" +description: Tested string include equal unicode symbols +---*/ //CHECK#0 var arr = /\x00/.exec("\u0000"); @@ -31,4 +29,3 @@ var arr = /\xFF/.exec("\u00FF"); if ((arr === null) || (arr[0] !== "\u00FF")) { $ERROR('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T2.js index 789ee29c1..8b04ba3c3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CharacterEscape :: HexEscapeSequence :: x HexDigit HexDigit - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A3.1_T2.js - * @description Checking ENGLISH CAPITAL ALPHABET and english small alphabet - */ +/*--- +info: "CharacterEscape :: HexEscapeSequence :: x HexDigit HexDigit" +description: Checking ENGLISH CAPITAL ALPHABET and english small alphabet +---*/ //CHECK#41-5A hex = ["\\x41", "\\x42", "\\x43", "\\x44", "\\x45", "\\x46", "\\x47", "\\x48", "\\x49", "\\x4A", "\\x4B", "\\x4C", "\\x4D", "\\x4E", "\\x4F", "\\x50", "\\x51", "\\x52", "\\x53", "\\x54", "\\x55", "\\x56", "\\x57", "\\x58", "\\x59", "\\x5A"]; @@ -36,5 +34,4 @@ for (index = 0; index < hex.length; index++) { if (result !== true) { $ERROR('#1: english small alphabet'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T1.js index 7da30da23..9598b6a6c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_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. -/** - * CharacterEscape :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T1.js - * @description RegExp and tested string include uncode symbols - */ +/*--- +info: > + CharacterEscape :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +description: RegExp and tested string include uncode symbols +---*/ //CHECK#0 var arr = /\u0000/.exec("\u0000"); @@ -43,4 +43,3 @@ var arr = /\uFFFF/.exec("\uFFFF"); if ((arr === null) || (arr[0] !== "\uFFFF")) { $ERROR('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0])); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T2.js index 115b8d841..a7cf10413 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_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. -/** - * CharacterEscape :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T2.js - * @description Tested string include ENGLISH CAPITAL ALPHABET and english small alphabet - */ +/*--- +info: > + CharacterEscape :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +description: > + Tested string include ENGLISH CAPITAL ALPHABET and english small + alphabet +---*/ //CHECK#41-5A hex = ["\\u0041", "\\u0042", "\\u0043", "\\u0044", "\\u0045", "\\u0046", "\\u0047", "\\u0048", "\\u0049", "\\u004A", "\\u004B", "\\u004C", "\\u004D", "\\u004E", "\\u004F", "\\u0050", "\\u0051", "\\u0052", "\\u0053", "\\u0054", "\\u0055", "\\u0056", "\\u0057", "\\u0058", "\\u0059", "\\u005A"]; @@ -36,5 +38,4 @@ for (index = 0; index < hex.length; index++) { if (result !== true) { $ERROR('#1: english small alphabet'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T3.js index 9904a3482..408523c1d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * CharacterEscape :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit HexDigit - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A4.1_T3.js - * @description Tested string include RUSSIAN CAPITAL ALPHABET and russian small alphabet in unicode notation - */ +/*--- +info: > + CharacterEscape :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit + HexDigit +description: > + Tested string include RUSSIAN CAPITAL ALPHABET and russian small + alphabet in unicode notation +---*/ //CHECK#0410-042F, 0401 hex = ["\\u0410", "\\u0411", "\\u0412", "\\u0413", "\\u0414", "\\u0415", "\\u0416", "\\u0417", "\\u0418", "\\u0419", "\\u041A", "\\u041B", "\\u041C", "\\u041D", "\\u041E", "\\u041F", "\\u0420", "\\u0421", "\\u0422", "\\u0423", "\\u0424", "\\u0425", "\\u0426", "\\u0427", "\\u0428", "\\u0429", "\\u042A", "\\u042B", "\\u042C", "\\u042D", "\\u042E", "\\u042F", "\\u0401"]; @@ -37,4 +39,3 @@ for (index = 0; index < hex.length; index++) { if (result !== true) { $ERROR('#1: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A5.1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A5.1_T1.js index 16517f4aa..dc010d63a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A5.1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A5.1_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. -/** - * CharacterEscape :: IdentityEscapeSequence :: SourceCharacter but not IdentifierPart - * - * @path ch15/15.10/15.10.2/15.10.2.10/S15.10.2.10_A5.1_T1.js - * @description Tested string is "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"' - */ +/*--- +info: > + CharacterEscape :: IdentityEscapeSequence :: SourceCharacter but not + IdentifierPart +description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'" +---*/ //CHECK#1 var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"'; @@ -18,5 +18,4 @@ do { if (non_ident.length !== k) { $ERROR('#1: IdentityEscapeSequence :: SourceCharacter but not IdentifierPart'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js index 306eec084..1e6687534 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T1.js - * @description DecimalEscape :: 0. If i is zero, return the EscapeValue consisting of a <NUL> character (Unicodevalue0000) - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: > + DecimalEscape :: 0. If i is zero, return the EscapeValue + consisting of a <NUL> character (Unicodevalue0000) +---*/ //CHECK#1 var arr = /\0/.exec("\u0000"); @@ -19,4 +19,3 @@ var arr = (new RegExp("\\0")).exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { $ERROR('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js index fb1cb4676..7bedb8ff2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T4.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /(A)\1/.exec("AA"); @@ -18,5 +16,4 @@ if ((arr === null) || (arr[0] !== "AA")) { //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { $ERROR('#2: var arr = (/(A)\\1/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js index d96e9f82b..502e778f8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T5.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /\1(A)/.exec("AA"); @@ -18,5 +16,4 @@ if ((arr === null) || (arr[0] !== "A")) { //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { $ERROR('#2: var arr = (/\\1(A)/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js index 93fe35a09..2def73463 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T6.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /(A)\1(B)\2/.exec("AABB"); @@ -23,5 +21,4 @@ if ((arr === null) || (arr[1] !== "A")) { //CHECK#3 if ((arr === null) || (arr[2] !== "B")) { $ERROR('#3: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js index 4adb97ead..10cd6f242 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T7.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /\1(A)(B)\2/.exec("ABB"); @@ -23,5 +21,4 @@ if ((arr === null) || (arr[1] !== "A")) { //CHECK#3 if ((arr === null) || (arr[2] !== "B")) { $ERROR('#3: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js index d0915d52f..f79912acb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T8.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /((((((((((A))))))))))\1\2\3\4\5\6\7\8\9\10/.exec("AAAAAAAAAAA"); @@ -20,5 +18,4 @@ for (i = 1; i <= 10; i++) { if ((arr === null) || (arr[i] !== "A")) { $ERROR('#2: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); } -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js index b2dfb4ee3..943fd37bc 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_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. -/** - * DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit] - * - * @path ch15/15.10/15.10.2/15.10.2.11/S15.10.2.11_A1_T9.js - * @description DecimalIntegerLiteral is not 0 - */ +/*--- +info: "DecimalEscape :: DecimalIntegerLiteral [lookahead not in DecimalDigit]" +description: DecimalIntegerLiteral is not 0 +---*/ var arr = /((((((((((A))))))))))\10\9\8\7\6\5\4\3\2\1/.exec("AAAAAAAAAAA"); @@ -20,5 +18,4 @@ for (i = 1; i <= 10; i++) { if ((arr === null) || (arr[i] !== "A")) { $ERROR('#2: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); } -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T1.js index 482e089d5..2cbd8b4e1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: s evaluates by returning the set of characters - * containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T1.js - * @description WhiteSpace - */ +/*--- +info: > + The production CharacterClassEscape :: s evaluates by returning the set of characters + containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions +description: WhiteSpace +---*/ var i0 = ""; for (var j = 0; j < 1024; j++) @@ -526,4 +525,4 @@ if (i63.replace(/\s+/g, "") !== o63) { var i64 = String.fromCharCode(65279); if (i64.replace(/\s/g, "") !== "") { $ERROR("#64: Error matching character class \s for BOM (feff)"); -}
\ No newline at end of file +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T2.js index 52716fa8c..f497a9c60 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: s evaluates by returning the set of characters - * containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T2.js - * @description LineTerminator - */ +/*--- +info: > + The production CharacterClassEscape :: s evaluates by returning the set of characters + containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions +description: LineTerminator +---*/ //CHECK#1 var arr = /\s/.exec("\u000A"); @@ -31,5 +30,4 @@ if ((arr === null) || (arr[0] !== "\u2028")) { var arr = /\s/.exec("\u2029"); if ((arr === null) || (arr[0] !== "\u2029")) { $ERROR('#4: var arr = /\\s/.exec("\\u2029"); arr[0] === "\\u2029". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T3.js index a33d7dfbc..19a030b4e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: s evaluates by returning the set of characters - * containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T3.js - * @description ENGLISH ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: s evaluates by returning the set of characters + containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions +description: ENGLISH ALPHABET +---*/ var regexp_s = /\s/; @@ -33,5 +32,4 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#2: english small alphabet'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T4.js index 87c33c7c7..d95da91fc 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: s evaluates by returning the set of characters - * containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T4.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: s evaluates by returning the set of characters + containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions +description: RUSSIAN ALPHABET +---*/ var regexp_s = /\s/; @@ -34,4 +33,3 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T5.js index 4e08b1f65..23fd19261 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: s evaluates by returning the set of characters - * containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A1_T5.js - * @description Tested string is "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"' - */ +/*--- +info: > + The production CharacterClassEscape :: s evaluates by returning the set of characters + containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions +description: > + Tested string is + "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + + '"' +---*/ //CHECK#1 var non_s = "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"'; @@ -25,5 +27,4 @@ while (regexp_s.exec(non_S) !== null) { if (non_S.length !== k) { $ERROR('#2: non-S'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T1.js index 36a45391b..061996200 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_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. -/** - * The production CharacterClassEscape :: S evaluates by returning - * the set of all characters not included in the set returned by - * CharacterClassEscape :: s - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T1.js - * @description WhiteSpace - */ +/*--- +info: > + The production CharacterClassEscape :: S evaluates by returning + the set of all characters not included in the set returned by + CharacterClassEscape :: s +description: WhiteSpace +---*/ var i0 = ""; for (var j = 0; j < 1024; j++) @@ -527,4 +526,4 @@ if (i63.replace(/\S+/g, "") !== o63) { var i64 = String.fromCharCode(65279); if (i64.replace(/\S/g, "") === "") { $ERROR("#64: Error matching character class \S for BOM (feff)"); -}
\ No newline at end of file +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T2.js index 2cc29e04c..bb37b71d0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_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. -/** - * The production CharacterClassEscape :: S evaluates by returning - * the set of all characters not included in the set returned by - * CharacterClassEscape :: s - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T2.js - * @description LineTerminator - */ +/*--- +info: > + The production CharacterClassEscape :: S evaluates by returning + the set of all characters not included in the set returned by + CharacterClassEscape :: s +description: LineTerminator +---*/ //CHECK#1 var arr = /\S/.exec("\u000A"); @@ -32,5 +31,4 @@ if (arr !== null) { var arr = /\S/.exec("\u2029"); if (arr !== null) { $ERROR('#4: var arr = /\\S/.exec("\\u2029"); arr[0] === "\\u2029". Actual. ' + (arr && arr[0])); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T3.js index 66a831f10..301fd219a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_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. -/** - * The production CharacterClassEscape :: S evaluates by returning - * the set of all characters not included in the set returned by - * CharacterClassEscape :: s - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T3.js - * @description ENGLISH ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: S evaluates by returning + the set of all characters not included in the set returned by + CharacterClassEscape :: s +description: ENGLISH ALPHABET +---*/ var regexp_S = /\S/; @@ -38,5 +37,4 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#2: english small alphabet'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T4.js index 56d511ec6..93b3c35bc 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: S evaluates by returning - * the set of all characters not included in the set returned by - * CharacterClassEscape :: s - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T4.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: S evaluates by returning + the set of all characters not included in the set returned by + CharacterClassEscape :: s +description: RUSSIAN ALPHABET +---*/ var regexp_S = /\S/; @@ -39,4 +38,3 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T5.js index 7dbcfcb1a..9cbf5eb2f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T5.js @@ -1,14 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: S evaluates by returning - * the set of all characters not included in the set returned by - * CharacterClassEscape :: s - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A2_T5.js - * @description Tested string is "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"' - */ +/*--- +info: > + The production CharacterClassEscape :: S evaluates by returning + the set of all characters not included in the set returned by + CharacterClassEscape :: s +description: > + Tested string is + "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + + '"' +---*/ //CHECK#1 var non_s = "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"'; @@ -27,4 +29,3 @@ var non_S = '\f\n\r\t\v '; if (/\S/.exec(non_S) !== null) { $ERROR('#2: non-S'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T1.js index df3a3e82a..a09ecced0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_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. -/** - * The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: - * a - z, A - Z, 0 - 9, _ - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T1.js - * @description A - Z - */ +/*--- +info: > + The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: + a - z, A - Z, 0 - 9, _ +description: A - Z +---*/ var i0 = ""; for (var j = 0; j < 256; j++) @@ -2056,4 +2055,3 @@ var o255 = i255; if (i255.replace(/\w+/g, "") !== o255) { $ERROR("#255: Error matching character class \w between character ff00 and ffff"); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T2.js index 5a1f80a84..26ef9687c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: - * a - z, A - Z, 0 - 9, _ - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T2.js - * @description a - z - */ +/*--- +info: > + The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: + a - z, A - Z, 0 - 9, _ +description: a - z +---*/ var regexp_w = /\w/; @@ -24,4 +23,3 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#1: a - z'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T3.js index 1b5833ff4..81209b5de 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: - * a - z, A - Z, 0 - 9, _ - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T3.js - * @description 0 - 9, _ - */ +/*--- +info: > + The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: + a - z, A - Z, 0 - 9, _ +description: 0 - 9, _ +---*/ var regexp_w = /\w/; @@ -35,4 +34,3 @@ if ((arr === null) || (arr[0] !== "\u005F")) { if (regexp_w.exec(" ") !== null) { $ERROR('#3: '); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T4.js index cf2255903..140657af5 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: - * a - z, A - Z, 0 - 9, _ - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T4.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: + a - z, A - Z, 0 - 9, _ +description: RUSSIAN ALPHABET +---*/ var regexp_w = /\w/; @@ -34,4 +33,3 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T5.js index 3efca98cf..e5d7c9ee8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: - * a - z, A - Z, 0 - 9, _ - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A3_T5.js - * @description non-w - */ +/*--- +info: > + The production CharacterClassEscape :: w evaluates by returning the set of characters containing the sixty-three characters: + a - z, A - Z, 0 - 9, _ +description: non-w +---*/ //CHECK#1 var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; @@ -25,5 +24,4 @@ while (regexp_w.exec(non_W) !== null) { if (non_W.length !== k) { $ERROR('#2: non-W'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T1.js index 97b79fe36..43fbbe0fd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: W evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: w - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T1.js - * @description A - Z - */ +/*--- +info: > + The production CharacterClassEscape :: W evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: w +description: A - Z +---*/ var i0 = ""; for (var j = 0; j < 1024; j++) @@ -520,4 +519,3 @@ var o63 = ""; if (i63.replace(/\W+/g, "") !== o63) { $ERROR("#63: Error matching character class \W between character fc00 and ffff"); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T2.js index 7fc4278b6..fedeb321a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: W evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: w - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T2.js - * @description a - z - */ +/*--- +info: > + The production CharacterClassEscape :: W evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: w +description: a - z +---*/ var regexp_W = /\W/; @@ -22,4 +21,3 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#1: a - z'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T3.js index 22cbf5336..54560a093 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: W evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: w - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T3.js - * @description 0 - 9 - */ +/*--- +info: > + The production CharacterClassEscape :: W evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: w +description: 0 - 9 +---*/ var regexp_W = /\W/; @@ -33,4 +32,3 @@ var arr = regexp_W.exec(" "); if ((arr === null) || (arr[0] !== "\u0020")) { $ERROR('#2: '); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T4.js index e5657b968..2fde0c5cb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_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. -/** - * The production CharacterClassEscape :: W evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: w - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T4.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: W evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: w +description: RUSSIAN ALPHABET +---*/ var regexp_W = /\W/; @@ -38,4 +37,3 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T5.js index 3e01ed72c..988dc7ec8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: W evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: w - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A4_T5.js - * @description non-w - */ +/*--- +info: > + The production CharacterClassEscape :: W evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: w +description: non-w +---*/ //CHECK#1 var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; @@ -26,4 +25,3 @@ var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; if (/\W/.exec(non_W) !== null) { $ERROR('#2: non-W'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T1.js index e1602190e..b90b4d9f1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T1.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 production CharacterClassEscape :: d evaluates by returning the ten-element set of characters containing the characters 0 through 9 inclusive - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T1.js - * @description 0 - 9 - */ +/*--- +info: > + The production CharacterClassEscape :: d evaluates by returning the + ten-element set of characters containing the characters 0 through 9 + inclusive +description: 0 - 9 +---*/ var i0 = ""; for (var j = 0; j < 1024; j++) @@ -519,4 +520,3 @@ var o63 = i63; if (i63.replace(/\d+/g, "") !== o63) { $ERROR("#63: Error matching character class \d between character fc00 and ffff"); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T2.js index 8aa5fd99b..fc9177fce 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: d evaluates by returning the ten-element set of characters containing the characters 0 through 9 inclusive - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T2.js - * @description ENGLISH ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: d evaluates by returning the + ten-element set of characters containing the characters 0 through 9 + inclusive +description: ENGLISH ALPHABET +---*/ var regexp_d = /\d/; @@ -32,5 +33,4 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#2: english small alphabet'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T3.js index 922266793..f5cb51ff3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T3.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 production CharacterClassEscape :: d evaluates by returning the ten-element set of characters containing the characters 0 through 9 inclusive - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T3.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: d evaluates by returning the + ten-element set of characters containing the characters 0 through 9 + inclusive +description: RUSSIAN ALPHABET +---*/ var regexp_d = /\d/; @@ -33,4 +34,3 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T4.js index d8795cfb9..98b07881e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T4.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 production CharacterClassEscape :: d evaluates by returning the ten-element set of characters containing the characters 0 through 9 inclusive - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A5_T4.js - * @description non-d - */ +/*--- +info: > + The production CharacterClassEscape :: d evaluates by returning the + ten-element set of characters containing the characters 0 through 9 + inclusive +description: non-d +---*/ //CHECK#1 var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; @@ -24,5 +25,4 @@ while (regexp_d.exec(non_D) !== null) { if (non_D.length !== k) { $ERROR('#2: non-D'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T1.js index 0cf2a5a04..1753eaadb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_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. -/** - * The production CharacterClassEscape :: D evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: d - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T1.js - * @description 0 - 9 - */ +/*--- +info: > + The production CharacterClassEscape :: D evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: d +description: 0 - 9 +---*/ var i0 = ""; for (var j = 0; j < 1024; j++) @@ -520,4 +519,3 @@ var o63 = ""; if (i63.replace(/\D+/g, "") !== o63) { $ERROR("#63: Error matching character class \D between character fc00 and ffff"); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T2.js index 320ec141f..60e32dc69 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: D evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: d - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T2.js - * @description ENGLISH ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: D evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: d +description: ENGLISH ALPHABET +---*/ var regexp_D = /\D/; @@ -37,5 +36,4 @@ for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (result !== true) { $ERROR('#2: english small alphabet'); -} - +} diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T3.js index 1edcdce38..075e86986 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: D evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: d - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T3.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: D evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: d +description: RUSSIAN ALPHABET +---*/ var regexp_D = /\D/; @@ -38,4 +37,3 @@ for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (result !== true) { $ERROR('#2: russian small alphabet'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T4.js index 662ce119d..71181a447 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClassEscape :: D evaluates by returning the set of all characters not - * included in the set returned by CharacterClassEscape :: d - * - * @path ch15/15.10/15.10.2/15.10.2.12/S15.10.2.12_A6_T4.js - * @description RUSSIAN ALPHABET - */ +/*--- +info: > + The production CharacterClassEscape :: D evaluates by returning the set of all characters not + included in the set returned by CharacterClassEscape :: d +description: RUSSIAN ALPHABET +---*/ //CHECK#1 var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; @@ -26,4 +25,3 @@ var non_d = '0123456789'; if (/\D/.exec(non_d) !== null) { $ERROR('#2: non-d'); } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T1.js index a3f4f4457..c5b84baa1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T1.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T1.js - * @description Execute /[]a/.test("\0a\0a") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[]a/.test("\0a\0a") and check results +---*/ __executed = /[]a/.test("\0a\0a");; @@ -14,5 +15,3 @@ __executed = /[]a/.test("\0a\0a");; if (__executed) { $ERROR('#1: /[]a/.test("\\0a\\0a") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T10.js index 5e36a443b..c5d70150d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T10.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T10.js - * @description Execute /[a-c\d]+/.exec("\n\n\abc324234\n") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[a-c\d]+/.exec("\n\n\abc324234\n") and check results +---*/ __executed = /[a-c\d]+/.exec("\n\n\abc324234\n"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T11.js index 70e8feac4..412443508 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T11.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T11.js - * @description Execute /ab[.]?c/.exec("abc") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /ab[.]?c/.exec("abc") and check results +---*/ __executed = /ab[.]?c/.exec("abc"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T12.js index 770542b6f..7e4e3f66b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T12.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T12.js - * @description Execute /a[b]c/.exec("abc") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /a[b]c/.exec("abc") and check results +---*/ __executed = /a[b]c/.exec("abc"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T13.js index 74ffd0d46..6103e1255 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T13.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T13.js - * @description Execute /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: > + Execute /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g") and + check results +---*/ __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); @@ -35,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T14.js index 3fbf7affb..188bbe539 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T14.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T14.js - * @description Execute /[*&$]{3}/.exec("123*&$abc") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[*&$]{3}/.exec("123*&$abc") and check results +---*/ __executed = /[*&$]{3}/.exec("123*&$abc"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T15.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T15.js index a80ce39bf..efb27f86d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T15.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T15.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T15.js - * @description Execute /[\d][\n][^\d]/.exec("line1\nline2") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[\d][\n][^\d]/.exec("line1\nline2") and check results +---*/ __executed = /[\d][\n][^\d]/.exec("line1\nline2"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T16.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T16.js index ea5be63be..23ca25faf 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T16.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T16.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T16.js - * @description Execute /[\d][\12-\14]{1,}[^\d]/.exec("line1\n\n\n\n\nline2") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: > + Execute /[\d][\12-\14]{1,}[^\d]/.exec("line1\n\n\n\n\nline2") and + check results +---*/ __executed = /[\d][\12-\14]{1,}[^\d]/.exec("line1\n\n\n\n\nline2"); @@ -35,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[\\d][\\12-\\14]{1,}[^\\d]/.exec("line1\\n\\n\\n\\n\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T17.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T17.js index 28256c88b..8c7402c41 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T17.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T17.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T17.js - * @description Execute /[]/.exec("a[b\n[]\tc]d") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[]/.exec("a[b\n[]\tc]d") and check results +---*/ __executed = /[]/.exec("a[b\n[]\tc]d"); @@ -14,5 +15,3 @@ __executed = /[]/.exec("a[b\n[]\tc]d"); if (__executed !== null) { $ERROR('#1: /[]/.exec("a[b\\n[]\\tc]d") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T2.js index b02086b99..274ddd902 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T2.js - * @description Execute /a[]/.test("\0a\0a") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /a[]/.test("\0a\0a") and check results +---*/ __executed = /a[]/.test("\0a\0a");; @@ -14,5 +15,3 @@ __executed = /a[]/.test("\0a\0a");; if (__executed) { $ERROR('#1: /a[]/.test("\\0a\\0a") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T3.js index f1198a3a7..a5602a8d1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T3.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T3.js - * @description Execute /q[ax-zb](?=\s+)/.exec("qYqy ") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /q[ax-zb](?=\s+)/.exec("qYqy ") and check results +---*/ __executed = /q[ax-zb](?=\s+)/.exec("qYqy "); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T4.js index a4cb361f8..b24a0c63b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T4.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T4.js - * @description Execute /q[ax-zb](?=\s+)/.exec("tqaqy ") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /q[ax-zb](?=\s+)/.exec("tqaqy ") and check results +---*/ __executed = /q[ax-zb](?=\s+)/.exec("tqaqy "); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T5.js index b8e2aa9a0..a4f6d39ca 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T5.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T5.js - * @description Execute /q[ax-zb](?=\s+)/.exec("tqa\t qy ") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /q[ax-zb](?=\s+)/.exec("tqa\t qy ") and check results +---*/ __executed = /q[ax-zb](?=\s+)/.exec("tqa\t qy "); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T6.js index d84a74b33..fd8542adb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T6.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T6.js - * @description Execute /ab[ercst]de/.exec("abcde") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /ab[ercst]de/.exec("abcde") and check results +---*/ __executed = /ab[ercst]de/.exec("abcde"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T7.js index e6c7a5d7e..247014b8d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T7.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T7.js - * @description Execute /ab[erst]de/.test("abcde") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /ab[erst]de/.test("abcde") and check results +---*/ __executed = /ab[erst]de/.test("abcde"); @@ -14,5 +15,3 @@ __executed = /ab[erst]de/.test("abcde"); if (__executed) { $ERROR('#1: /ab[erst]de/.test("abcde") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T8.js index d69ffefb4..a209148d8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T8.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 production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T8.js - * @description Execute /[d-h]+/.exec("abcdefghijkl") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[d-h]+/.exec("abcdefghijkl") and check results +---*/ __executed = /[d-h]+/.exec("abcdefghijkl"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T9.js index d95321ce3..2c8135b3c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T9.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean false - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A1_T9.js - * @description Execute /[1234567].{2}/.exec("abc6defghijkl") and check results - */ +/*--- +info: > + The production CharacterClass :: [ [lookahead \notin {^}] ClassRanges ] + evaluates by evaluating ClassRanges to obtain a CharSet and returning + that CharSet and the boolean false +description: Execute /[1234567].{2}/.exec("abc6defghijkl") and check results +---*/ __executed = /[1234567].{2}/.exec("abc6defghijkl"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T1.js index 8410e4d46..1fe6194f0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T1.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 production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T1.js - * @description Execute /[^]a/m.exec("a\naba") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /[^]a/m.exec("a\naba") and check results +---*/ __executed = /[^]a/m.exec("a\naba"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T2.js index 12c45c073..29897db63 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T2.js - * @description Execute /a[^]/.exec(" a\t\n") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /a[^]/.exec(" a\t\n") and check results +---*/ __executed = /a[^]/.exec(" a\t\n"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T3.js index 2b6bc76e4..b8c5bb3d8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T3.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 production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T3.js - * @description Execute /a[^b-z]\s+/.exec("ab an az aY n") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /a[^b-z]\s+/.exec("ab an az aY n") and check results +---*/ __executed = /a[^b-z]\s+/.exec("ab an az aY n"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T4.js index c6690db5d..4b4a32432 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T4.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 production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T4.js - * @description Execute /[^\b]+/g.exec("easy\bto\u0008ride") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /[^\b]+/g.exec("easy\bto\u0008ride") and check results +---*/ __executed = /[^\b]+/g.exec("easy\bto\u0008ride"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T5.js index 97ba1ad32..76ce8284c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_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. -/** - * The production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T5.js - * @description Execute /a[^1-9]c/.exec("abc") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /a[^1-9]c/.exec("abc") and check results +---*/ __executed = /a[^1-9]c/.exec("abc"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T6.js index f964ffbf0..6bdb5d519 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T6.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T6.js - * @description Execute /a[^b]c/.test("abc") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /a[^b]c/.test("abc") and check results +---*/ __executed = /a[^b]c/.test("abc"); @@ -14,5 +15,3 @@ __executed = /a[^b]c/.test("abc"); if (__executed) { $ERROR('#1: /a[^b]c/.test("abc") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T7.js index 56cd92bd3..4a3eff316 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T7.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 production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T7.js - * @description Execute /[^a-z]{4}/.exec("abc#$%def%&*@ghi") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /[^a-z]{4}/.exec("abc#$%def%&*@ghi") and check results +---*/ __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T8.js index 04e53653c..c5b5f459d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T8.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 production CharacterClass :: [ ^ ClassRanges ] evaluates by evaluating ClassRanges to obtain a CharSet and returning that CharSet and the boolean true - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A2_T8.js - * @description Execute /[^]/.exec("abc#$%def%&*@ghi") and check results - */ +/*--- +info: > + The production CharacterClass :: [ ^ ClassRanges ] evaluates by + evaluating ClassRanges to obtain a CharSet and returning that CharSet + and the boolean true +description: Execute /[^]/.exec("abc#$%def%&*@ghi") and check results +---*/ __executed = /[^]/.exec("abc#$%def%&*@ghi"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T1.js index 392445023..2d772286f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Inside a CharacterClass, \b means the backspace character - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T1.js - * @description Execute /.[\b]./.exec("abc\bdef") and check results - */ +/*--- +info: Inside a CharacterClass, \b means the backspace character +description: Execute /.[\b]./.exec("abc\bdef") and check results +---*/ __executed = /.[\b]./.exec("abc\bdef"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T2.js index f1bd6b63f..8e5cdb4b8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Inside a CharacterClass, \b means the backspace character - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T2.js - * @description Execute /c[\b]{3}d/.exec("abc\b\b\bdef") and check results - */ +/*--- +info: Inside a CharacterClass, \b means the backspace character +description: Execute /c[\b]{3}d/.exec("abc\b\b\bdef") and check results +---*/ __executed = /c[\b]{3}d/.exec("abc\b\b\bdef"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T3.js index a4e4864c0..0f6903ebb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Inside a CharacterClass, \b means the backspace character - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T3.js - * @description Execute /[^\[\b\]]+/.exec("abc\bdef") and check results - */ +/*--- +info: Inside a CharacterClass, \b means the backspace character +description: Execute /[^\[\b\]]+/.exec("abc\bdef") and check results +---*/ __executed = /[^\[\b\]]+/.exec("abc\bdef"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T4.js index d97e00f46..a81e28cd9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Inside a CharacterClass, \b means the backspace character - * - * @path ch15/15.10/15.10.2/15.10.2.13/S15.10.2.13_A3_T4.js - * @description Execute /[^\[\b\]]+/.exec("abcdef") and check results - */ +/*--- +info: Inside a CharacterClass, \b means the backspace character +description: Execute /[^\[\b\]]+/.exec("abcdef") and check results +---*/ __executed = /[^\[\b\]]+/.exec("abcdef"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-1.js index a026545e1..61099506e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-1.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.2/15.10.2.15-3-1.js
- * @description Pattern - SyntaxError was thrown when 'A' does not contain exactly one character (15.10.2.5 step 3)
- */
-
-
-function testcase() {
- try {
- var regExp = new RegExp("^[/w-c]$");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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: > + Pattern - SyntaxError was thrown when 'A' does not contain exactly + one character (15.10.2.5 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExp = new RegExp("^[/w-c]$"); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-2.js index 826529727..d0c84be35 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15-3-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.2/15.10.2.15-3-2.js
- * @description Pattern - SyntaxError was thrown when 'B' does not contain exactly one character (15.10.2.5 step 3)
- */
-
-
-function testcase() {
- try {
- var regExp = new RegExp("^[a-/w]$");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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: > + Pattern - SyntaxError was thrown when 'B' does not contain exactly + one character (15.10.2.5 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExp = new RegExp("^[a-/w]$"); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15-6-1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15-6-1.js index 67b1d1a3f..f46e9cb27 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15-6-1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15-6-1.js @@ -1,21 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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.2/15.10.2.15-6-1.js
- * @description Pattern - SyntaxError was thrown when one character in CharSet 'A' greater than one character in CharSet 'B' (15.10.2.15 CharacterRange step 6)
- */
-
-
-function testcase() {
- try {
- var regExp = new RegExp("^[z-a]$");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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: > + Pattern - SyntaxError was thrown when one character in CharSet 'A' + greater than one character in CharSet 'B' (15.10.2.15 + CharacterRange step 6) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExp = new RegExp("^[z-a]$"); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T1.js index 445093b5d..d04bdfdd9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T1.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T1.js - * @description Checking if execution of "/[b-ac-e]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-ac-e]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T10.js index 020749a9f..4b119a479 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T10.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T10.js - * @description Checking if execution of "/[\10b-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\10b-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T11.js index b88af78e7..84b03ae36 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T11.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T11.js - * @description Checking if execution of "/[\bd-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\bd-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T12.js index c81f72ad5..3e253a0a9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T12.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T12.js - * @description Checking if execution of "/[\Bd-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\Bd-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T13.js index b0406f752..60a1a5d17 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T13.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T13.js - * @description Checking if execution of "/[\td-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\td-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T14.js index cfb4eadc7..b8d308b5f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T14.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T14.js - * @description Checking if execution of "/[\nd-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\nd-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T15.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T15.js index 17ff0ace0..a4b54668b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T15.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T15.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T15.js - * @description Checking if execution of "/[\vd-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\vd-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T16.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T16.js index 2cede536f..a4a6de44f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T16.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T16.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T16.js - * @description Checking if execution of "/[\fd-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\fd-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T17.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T17.js index d2e265c99..a09de6528 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T17.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T17.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T17.js - * @description Checking if execution of "/[\rd-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\rd-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T18.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T18.js index f34067454..6fb7a2959 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T18.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T18.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T18.js - * @description Checking if execution of "/[\c0001d-G]/.exec("1")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\c0001d-G]/.exec("1")" leads to + throwing the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T19.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T19.js index bd569e65b..dfdcef5a8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T19.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T19.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T19.js - * @description Checking if execution of "/[\x0061d-G]/.exec("1")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\x0061d-G]/.exec("1")" leads to + throwing the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T2.js index 7047103bb..797d1be39 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T2.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T2.js - * @description Checking if execution of "/[a-dc-b]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[a-dc-b]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T20.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T20.js index 74043d31b..d4f39a909 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T20.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T20.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T20.js - * @description Checking if execution of "/[\u0061d-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\u0061d-G]/.exec("a")" leads to + throwing the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T21.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T21.js index 848393484..bf0f169d5 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T21.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T21.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T21.js - * @description Checking if execution of "/[\ad-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\ad-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T22.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T22.js index aabbacb17..f27a21ffd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T22.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T22.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T22.js - * @description Checking if execution of "/[c-eb-a]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[c-eb-a]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T23.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T23.js index 0cd3f8f7e..76ceeb90b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T23.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T23.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T23.js - * @description Checking if execution of "/[b-G\d]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\d]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T24.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T24.js index d5744bab2..ee7b966b0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T24.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T24.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T24.js - * @description Checking if execution of "/[b-G\D]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\D]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T25.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T25.js index 2fc86dcbf..8bd38c081 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T25.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T25.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T25.js - * @description Checking if execution of "/[b-G\s]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\s]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T26.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T26.js index fecf0d82a..7f8f0fa3c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T26.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T26.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T26.js - * @description Checking if execution of "/[b-G\S]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\S]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T27.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T27.js index 961466cfb..02c9b13b3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T27.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T27.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T27.js - * @description Checking if execution of "/[b-G\w]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\w]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T28.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T28.js index c4227e1a0..4c499673b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T28.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T28.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T28.js - * @description Checking if execution of "/[b-G\W]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\W]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T29.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T29.js index 651f6eed3..d19209741 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T29.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T29.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T29.js - * @description Checking if execution of "/[b-G\0]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\0]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T3.js index be3e83de9..ca16cc9a2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T3.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T3.js - * @description Checking if execution of "/[\db-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\db-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T30.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T30.js index b70c335db..f83d351db 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T30.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T30.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T30.js - * @description Checking if execution of "/[b-G\10]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[b-G\10]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T31.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T31.js index 4b6a85441..56bbf61db 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T31.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T31.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T31.js - * @description Checking if execution of "/[d-G\b]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\b]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T32.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T32.js index 35db57aac..7da8e42b1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T32.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T32.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T32.js - * @description Checking if execution of "/[d-G\B]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\B]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T33.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T33.js index 77f12e314..36e11a955 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T33.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T33.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T33.js - * @description Checking if execution of "/[d-G\t]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\t]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T34.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T34.js index 6f1bf0aa5..5d0f2589d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T34.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T34.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T34.js - * @description Checking if execution of "/[d-G\n]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\n]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T35.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T35.js index e4bcc9a9a..eb09d9434 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T35.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T35.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T35.js - * @description Checking if execution of "/[d-G\v]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\v]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T36.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T36.js index eaa9b66cd..78dd9fe4d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T36.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T36.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T36.js - * @description Checking if execution of "/[d-G\f]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\f]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T37.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T37.js index 49b37df66..9f3e0dc8a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T37.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T37.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T37.js - * @description Checking if execution of "/[d-G\r]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\r]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T38.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T38.js index 43f5dbf92..28bdc540c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T38.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T38.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T38.js - * @description Checking if execution of "/[d-G\c0001]/.exec("1")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\c0001]/.exec("1")" leads to + throwing the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T39.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T39.js index bbd17f8d6..028dd3ca3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T39.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T39.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T39.js - * @description Checking if execution of "/[d-G\x0061]/.exec("1")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\x0061]/.exec("1")" leads to + throwing the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T4.js index 5a9c458f4..4b593da7b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T4.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T4.js - * @description Checking if execution of "/[\Db-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\Db-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T40.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T40.js index 061268c94..2c94710e1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T40.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T40.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T40.js - * @description Checking if execution of "/[d-G\u0061]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\u0061]/.exec("a")" leads to + throwing the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T41.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T41.js index 3dc4f10c4..22e3b1df0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T41.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T41.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T41.js - * @description Checking if execution of "/[d-G\a]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[d-G\a]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T5.js index a17b0abc8..c6fcb1403 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T5.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T5.js - * @description Checking if execution of "/[\sb-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\sb-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T6.js index 6a20c51d6..84146bcd3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T6.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T6.js - * @description Checking if execution of "/[\Sb-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\Sb-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T7.js index cee8100a6..ded113ced 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T7.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T7.js - * @description Checking if execution of "/[\wb-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\wb-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T8.js index 2f45104d6..7404ff3e3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T8.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T8.js - * @description Checking if execution of "/[\Wb-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\Wb-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T9.js index e4d64bfc8..4acfb1524 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T9.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The internal helper function CharacterRange takes two CharSet parameters A and B and performs the - * following: - * If A does not contain exactly one character or B does not contain exactly one character then throw - * a SyntaxError exception - * - * @path ch15/15.10/15.10.2/15.10.2.15/S15.10.2.15_A1_T9.js - * @description Checking if execution of "/[\0b-G]/.exec("a")" leads to throwing the correct exception - */ +/*--- +info: > + The internal helper function CharacterRange takes two CharSet parameters A and B and performs the + following: + If A does not contain exactly one character or B does not contain exactly one character then throw + a SyntaxError exception +description: > + Checking if execution of "/[\0b-G]/.exec("a")" leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -19,4 +20,3 @@ try { $ERROR('#1.2: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.2-1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.2-1.js index c296eeace..89e92589d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.2-1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.2-1.js @@ -1,21 +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.2/15.10.2.2-1.js
- * @description Pattern - SyntaxError was thrown when compile a pattern
- */
-
-
-function testcase() {
- try {
- var regExp = new RegExp("\\");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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: Pattern - SyntaxError was thrown when compile a pattern +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExp = new RegExp("\\"); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T1.js index a40126f91..66327337c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T1.js - * @description Execute /a|ab/.exec("abc") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /a|ab/.exec("abc") and check results +---*/ __executed = /a|ab/.exec("abc"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T10.js index adec51a48..5d8eeeda6 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T10.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T10.js - * @description Execute /(?:ab|cd)+|ef/i.exec("AEKeFCDab") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: "Execute /(?:ab|cd)+|ef/i.exec(\"AEKeFCDab\") and check results" +---*/ __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T11.js index c1146e5c2..644d6aad1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T11.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T11.js - * @description Execute /11111|111/.exec("1111111111111111") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /11111|111/.exec("1111111111111111") and check results +---*/ __executed = /11111|111/.exec("1111111111111111"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T12.js index 6668f3683..acae651ab 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T12.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T12.js - * @description Execute /xyz|.../.exec("abc") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /xyz|.../.exec("abc") and check results +---*/ __executed = /xyz|.../.exec("abc"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T13.js index 5b3c05183..764603cac 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T13.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T13.js - * @description Execute /(.)..|abc/.exec("abc") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /(.)..|abc/.exec("abc") and check results +---*/ __executed = /(.)..|abc/.exec("abc"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T14.js index ea2cd7cd6..97e5872fa 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T14.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T14.js - * @description Execute /.+: gr(a|e)y/.exec("color: grey") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: "Execute /.+: gr(a|e)y/.exec(\"color: grey\") and check results" +---*/ __executed = /.+: gr(a|e)y/.exec("color: grey"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T15.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T15.js index a0e4b8516..d8175aa0e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T15.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T15.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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T15.js - * @description Execute /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: > + Execute /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob") and check + results +---*/ __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T16.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T16.js index 0f4cef5f0..e09cd16e0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T16.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T16.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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T16.js - * @description Execute /()|/.exec("") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /()|/.exec("") and check results +---*/ __executed = /()|/.exec(""); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T17.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T17.js index bf6313a96..4814ed0b3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T17.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T17.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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T17.js - * @description Execute /|()/.exec("") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /|()/.exec("") and check results +---*/ __executed = /|()/.exec(""); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T2.js index b07cdbab5..71a785a81 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T2.js - * @description Execute /((a)|(ab))((c)|(bc))/.exec("abc") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /((a)|(ab))((c)|(bc))/.exec("abc") and check results +---*/ __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T3.js index a534fd392..4eabb53ee 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T3.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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T3.js - * @description Execute /\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: > + Execute /\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12") and + check results +---*/ __executed = /\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T4.js index 87579047d..7cdd50e4b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T4.js - * @description Execute /\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: > + Execute /\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat + 12") and check results +---*/ __executed = /\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T5.js index e9ffabc48..c4b51bfaf 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T5.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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T5.js - * @description Execute /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: > + Execute /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") and check + results +---*/ __executed = /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1"); @@ -16,5 +17,3 @@ __executed = /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1"); if (__executed) { $ERROR('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T6.js index d80ed9a97..d6c8b72c2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T6.js - * @description Execute /ab|cd|ef/i.exec("AEKFCD") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /ab|cd|ef/i.exec("AEKFCD") and check results +---*/ __executed = /ab|cd|ef/i.exec("AEKFCD"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T7.js index e35fe0c43..67fd0eae3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_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. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T7.js - * @description Execute /ab|cd|ef/.test("AEKFCD") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: Execute /ab|cd|ef/.test("AEKFCD") and check results +---*/ __executed = /ab|cd|ef/.test("AEKFCD"); @@ -16,5 +15,3 @@ __executed = /ab|cd|ef/.test("AEKFCD"); if (__executed) { $ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T8.js index 5f6374720..7c317d64c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T8.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T8.js - * @description Execute /(?:ab|cd)+|ef/i.exec("AEKFCD") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: "Execute /(?:ab|cd)+|ef/i.exec(\"AEKFCD\") and check results" +---*/ __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T9.js index 4226e80b5..866b490e4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T9.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The | regular expression operator separates two alternatives. - * The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). - * If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) - * - * @path ch15/15.10/15.10.2/15.10.2.3/S15.10.2.3_A1_T9.js - * @description Execute /(?:ab|cd)+|ef/i.exec("AEKFCDab") and check results - */ +/*--- +info: > + The | regular expression operator separates two alternatives. + The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). + If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) +description: "Execute /(?:ab|cd)+|ef/i.exec(\"AEKFCDab\") and check results" +---*/ __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.5-3-1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.5-3-1.js index a044aa874..0ba6bb68a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.5-3-1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.5-3-1.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.2/15.10.2.5-3-1.js
- * @description Term - SyntaxError was thrown when max is finite and less than min (15.10.2.5 step 3)
- */
-
-
-function testcase() {
- try {
- var regExp = new RegExp("0{2,1}");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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: > + Term - SyntaxError was thrown when max is finite and less than min + (15.10.2.5 step 3) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExp = new RegExp("0{2,1}"); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T1.js index d24918c11..100a64646 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * An Atom followed by a Quantifier is repeated the number of times specified by the Quantifier - * - * @path ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T1.js - * @description Execute /a[a-z]{2,4}/.exec("abcdefghi") and check results - */ +/*--- +info: > + An Atom followed by a Quantifier is repeated the number of times + specified by the Quantifier +description: Execute /a[a-z]{2,4}/.exec("abcdefghi") and check results +---*/ __executed = /a[a-z]{2,4}/.exec("abcdefghi"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T2.js index dae4cdb50..6430fec7b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_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. -/** - * An Atom followed by a Quantifier is repeated the number of times specified by the Quantifier - * - * @path ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T2.js - * @description Execute /a[a-z]{2,4}?/.exec("abcdefghi") and check results - */ +/*--- +info: > + An Atom followed by a Quantifier is repeated the number of times + specified by the Quantifier +description: Execute /a[a-z]{2,4}?/.exec("abcdefghi") and check results +---*/ __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T3.js index 8a20e0dc5..137d5351a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_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. -/** - * An Atom followed by a Quantifier is repeated the number of times specified by the Quantifier - * - * @path ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T3.js - * @description Execute /(aa|aabaac|ba|b|c)* /.exec("aabaac") and check results - */ +/*--- +info: > + An Atom followed by a Quantifier is repeated the number of times + specified by the Quantifier +description: Execute /(aa|aabaac|ba|b|c)* /.exec("aabaac") and check results +---*/ __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T4.js index 53587b712..1ab8cbb70 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_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. -/** - * An Atom followed by a Quantifier is repeated the number of times specified by the Quantifier - * - * @path ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T4.js - * @description Execute /(z)((a+)?(b+)?(c))* /.exec("zaacbbbcac") and check results - */ +/*--- +info: > + An Atom followed by a Quantifier is repeated the number of times + specified by the Quantifier +description: Execute /(z)((a+)?(b+)?(c))* /.exec("zaacbbbcac") and check results +---*/ __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T5.js index ec2622b75..599dabbac 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * An Atom followed by a Quantifier is repeated the number of times specified by the Quantifier - * - * @path ch15/15.10/15.10.2/15.10.2.5/S15.10.2.5_A1_T5.js - * @description Execute /(a*)b\1+/.exec("baaaac") and check results - */ +/*--- +info: > + An Atom followed by a Quantifier is repeated the number of times + specified by the Quantifier +description: Execute /(a*)b\1+/.exec("baaaac") and check results +---*/ __executed = /(a*)b\1+/.exec("baaaac"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T1.js index a08a92547..6bc2cc571 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: $ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T1.js - * @description Execute /s$/.test("pairs\nmakes\tdouble") and check results - */ +/*--- +info: > + The production Assertion :: $ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /s$/.test("pairs\nmakes\tdouble") and check results +---*/ __executed = /s$/.test("pairs\nmakes\tdouble"); @@ -14,5 +14,3 @@ __executed = /s$/.test("pairs\nmakes\tdouble"); if (__executed) { $ERROR('#1: /s$/.test("pairs\\nmakes\\tdouble") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T2.js index e45809bb7..40eed1188 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: $ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T2.js - * @description Execute /e$/.exec("pairs\nmakes\tdouble") and check results - */ +/*--- +info: > + The production Assertion :: $ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /e$/.exec("pairs\nmakes\tdouble") and check results +---*/ __executed = /e$/.exec("pairs\nmakes\tdouble"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T3.js index e5c73e365..f2d110bd4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: $ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T3.js - * @description Execute /s$/m.exec("pairs\nmakes\tdouble") and check results - */ +/*--- +info: > + The production Assertion :: $ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /s$/m.exec("pairs\nmakes\tdouble") and check results +---*/ __executed = /s$/m.exec("pairs\nmakes\tdouble"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T4.js index dedbb27c1..bb8f20113 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: $ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T4.js - * @description Execute /[^e]$/mg.exec("pairs\nmakes\tdouble") and check results - */ +/*--- +info: > + The production Assertion :: $ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /[^e]$/mg.exec("pairs\nmakes\tdouble") and check results +---*/ __executed = /[^e]$/mg.exec("pairs\nmakes\tdouble"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T5.js index bf38830cd..5427dffce 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T5.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 production Assertion :: $ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A1_T5.js - * @description Execute /es$/mg.exec("pairs\nmakes\tdoubl\u0065s") and check results - */ +/*--- +info: > + The production Assertion :: $ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /es$/mg.exec("pairs\nmakes\tdoubl\u0065s") and check + results +---*/ __executed = /es$/mg.exec("pairs\nmakes\tdoubl\u0065s"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T1.js index 918559b1c..9bdab41fb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T1.js - * @description Execute /^m/.test("pairs\nmakes\tdouble") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^m/.test("pairs\nmakes\tdouble") and check results +---*/ __executed = /^m/.test("pairs\nmakes\tdouble"); @@ -14,5 +14,3 @@ __executed = /^m/.test("pairs\nmakes\tdouble"); if (__executed) { $ERROR('#1: /^m/.test("pairs\\nmakes\\tdouble") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T10.js index 298258b4a..dd8371995 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T10.js - * @description Execute /^\d+/m.exec("abc\n123xyz") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^\d+/m.exec("abc\n123xyz") and check results +---*/ __executed = /^\d+/m.exec("abc\n123xyz"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T2.js index 8fb843ec3..810cb74f4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T2.js - * @description Execute /^m/m.exec("pairs\nmakes\tdouble") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^m/m.exec("pairs\nmakes\tdouble") and check results +---*/ __executed = /^m/m.exec("pairs\nmakes\tdouble"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T3.js index 144dd942a..399a87d2e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T3.js - * @description Execute /^p[a-z]/.exec("pairs\nmakes\tdouble\npesos") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /^p[a-z]/.exec("pairs\nmakes\tdouble\npesos") and check + results +---*/ __executed = /^p[a-z]/.exec("pairs\nmakes\tdouble\npesos"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T4.js index b1fd56e2a..968b481b4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T4.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 production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T4.js - * @description Execute /^p[a-z]/m.exec("pairs\nmakes\tdouble\npesos") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /^p[a-z]/m.exec("pairs\nmakes\tdouble\npesos") and check + results +---*/ __executed = /^p[b-z]/m.exec("pairs\nmakes\tdouble\npesos"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T5.js index 322a2dd54..1c6109c37 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T5.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 production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T5.js - * @description Execute /^[^p]/m.exec("pairs\nmakes\tdouble\npesos") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /^[^p]/m.exec("pairs\nmakes\tdouble\npesos") and check + results +---*/ __executed = /^[^p]/m.exec("pairs\nmakes\tdouble\npesos"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T6.js index 4c702c9f2..63a1ce467 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T6.js - * @description Execute /^ab/.exec("abcde") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^ab/.exec("abcde") and check results +---*/ __executed = /^ab/.exec("abcde"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T7.js index aa76aaa6e..cc73a5c39 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T7.js - * @description Execute /^..^e/.test("ab\ncde") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^..^e/.test("ab\ncde") and check results +---*/ __executed = /^..^e/.test("ab\ncde"); @@ -14,5 +14,3 @@ __executed = /^..^e/.test("ab\ncde"); if (__executed) { $ERROR('#1: /^..^e/.test("ab\\ncde") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T8.js index 9017acdf6..7627becec 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T8.js - * @description Execute /^xxx/.test("yyyyy") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^xxx/.test("yyyyy") and check results +---*/ __executed = /^xxx/.test("yyyyy"); @@ -14,5 +14,3 @@ __executed = /^xxx/.test("yyyyy"); if (__executed) { $ERROR('#1: /^xxx/.test("yyyyy") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T9.js index f6d678ab9..bb889d710 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_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. -/** - * The production Assertion :: ^ evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A2_T9.js - * @description Execute /^\^+/.exec("^^^x") and check results - */ +/*--- +info: > + The production Assertion :: ^ evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /^\^+/.exec("^^^x") and check results +---*/ __executed = /^\^+/.exec("^^^x"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T1.js index 919287943..72511a0d5 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T1.js - * @description Execute /\bp/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\bp/.exec("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /\bp/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T10.js index 9fd41c9cd..f9a3c7745 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T10.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T10.js - * @description Execute /\brobot\b/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\brobot\b/.exec("pilot\nsoviet robot\topenoffice") and + check results +---*/ __executed = /\brobot\b/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T11.js index dac31e088..ad499ae74 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T11.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T11.js - * @description Execute /\b\w{5}\b/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\b\w{5}\b/.exec("pilot\nsoviet robot\topenoffice") and + check results +---*/ __executed = /\b\w{5}\b/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T12.js index 5d37ef949..2fa5918d7 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T12.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T12.js - * @description Execute /\bop/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\bop/.exec("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /\bop/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T13.js index 9efc67dbc..859301b73 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T13.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T13.js - * @description Execute /op\b/.test("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /op\b/.test("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /op\b/.test("pilot\nsoviet robot\topenoffice"); @@ -14,5 +16,3 @@ __executed = /op\b/.test("pilot\nsoviet robot\topenoffice"); if (__executed) { $ERROR('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T14.js index 78d5b00fd..34780421b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T14.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T14.js - * @description Execute /e\b/.exec("pilot\nsoviet robot\topenoffic\u0065") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /e\b/.exec("pilot\nsoviet robot\topenoffic\u0065") and + check results +---*/ __executed = /e\b/.exec("pilot\nsoviet robot\topenoffic\u0065"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T15.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T15.js index ffdbd71bc..d3f2cf115 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T15.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T15.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T15.js - * @description Execute /\be/.test("pilot\nsoviet robot\topenoffic\u0065") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\be/.test("pilot\nsoviet robot\topenoffic\u0065") and + check results +---*/ __executed = /\be/.test("pilot\nsoviet robot\topenoffic\u0065"); @@ -14,5 +16,3 @@ __executed = /\be/.test("pilot\nsoviet robot\topenoffic\u0065"); if (__executed) { $ERROR('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T2.js index 9e823cf24..954b5fa20 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T2.js - * @description Execute /ot\b/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /ot\b/.exec("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /ot\b/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T3.js index 97a2ba9d1..00199c4b8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T3.js - * @description Execute /\bot/.test("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\bot/.test("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /\bot/.test("pilot\nsoviet robot\topenoffice"); @@ -14,5 +16,3 @@ __executed = /\bot/.test("pilot\nsoviet robot\topenoffice"); if (__executed) { $ERROR('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T4.js index 7e45b6c68..194236a1d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T4.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T4.js - * @description Execute /\bso/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\bso/.exec("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /\bso/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T5.js index 3ec5ab4e0..09587c6f4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T5.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T5.js - * @description Execute /so\b/.test("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /so\b/.test("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /so\b/.test("pilot\nsoviet robot\topenoffice"); @@ -14,5 +16,3 @@ __executed = /so\b/.test("pilot\nsoviet robot\topenoffice"); if (__executed) { $ERROR('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T6.js index e1e7ba3ab..ffc2c35bd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T6.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T6.js - * @description Execute /[^o]t\b/.exec("pilOt\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /[^o]t\b/.exec("pilOt\nsoviet robot\topenoffice") and + check results +---*/ __executed = /[^o]t\b/.exec("pilOt\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T7.js index 4c6970b3f..5dd338391 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T7.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T7.js - * @description Execute /[^o]t\b/i.exec("pilOt\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /[^o]t\b/i.exec("pilOt\nsoviet robot\topenoffice") and + check results +---*/ __executed = /[^o]t\b/i.exec("pilOt\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T8.js index 679157757..5cb018184 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T8.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T8.js - * @description Execute /\bro/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\bro/.exec("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /\bro/.exec("pilot\nsoviet robot\topenoffice"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T9.js index 191a42487..27165c968 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T9.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 production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T9.js - * @description Execute /r\b/.exec("pilot\nsoviet robot\topenoffice") and check results - */ +/*--- +info: > + The production Assertion :: \b evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /r\b/.exec("pilot\nsoviet robot\topenoffice") and check + results +---*/ __executed = /r\b/.test("pilot\nsoviet robot\topenoffice"); @@ -14,5 +16,3 @@ __executed = /r\b/.test("pilot\nsoviet robot\topenoffice"); if (__executed) { $ERROR('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T1.js index b1d4a2325..8ec3c366c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T1.js - * @description Execute /\Bevil\B/.exec("devils arise\tfor\nevil") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\Bevil\B/.exec("devils arise\tfor\nevil") and check + results +---*/ __executed = /\Bevil\B/.exec("devils arise\tfor\nevil"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T2.js index d28b7cac4..472976dd6 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T2.js - * @description Execute /[f-z]e\B/.exec("devils arise\tfor\nevil") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /[f-z]e\B/.exec("devils arise\tfor\nevil") and check + results +---*/ __executed = /[f-z]e\B/.exec("devils arise\tfor\nrevil"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T3.js index 3bb63efe4..24e7bda7c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_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. -/** - * The production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T3.js - * @description Execute /\Bo\B/.exec("devils arise\tfor\nevil") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /\Bo\B/.exec("devils arise\tfor\nevil") and check results +---*/ __executed = /\Bo\B/i.exec("devils arise\tfOr\nrevil"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T4.js index 60965fe6c..6dd4995a2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_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. -/** - * The production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T4.js - * @description Execute /\B\w\B/.exec("devils arise\tfor\nevil") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /\B\w\B/.exec("devils arise\tfor\nevil") and check results +---*/ __executed = /\B\w\B/.exec("devils arise\tfor\nrevil"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T5.js index 1e0863c4c..00d8ae25c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_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. -/** - * The production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T5.js - * @description Execute /\w\B/.exec("devils arise\tfor\nevil") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /\w\B/.exec("devils arise\tfor\nevil") and check results +---*/ __executed = /\w\B/.exec("devils arise\tfor\nrevil"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T6.js index c6a63358a..5645d8033 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_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. -/** - * The production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T6.js - * @description Execute /\B\w/.exec("devils arise\tfor\nevil") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: Execute /\B\w/.exec("devils arise\tfor\nevil") and check results +---*/ __executed = /\B\w/.exec("devils arise\tfor\nrevil"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T7.js index b60057fbe..3e5d36761 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T7.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 production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T7.js - * @description Execute /\B\[^z]{4}\B/.test("devil arise\tforzzx\nevils") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\B\[^z]{4}\B/.test("devil arise\tforzzx\nevils") and + check results +---*/ __executed = /\B\[^z]{4}\B/.test("devil arise\tforzzx\nevils"); @@ -14,5 +16,3 @@ __executed = /\B\[^z]{4}\B/.test("devil arise\tforzzx\nevils"); if (__executed) { $ERROR('#1: /\\B\\[^z]{4}\\B/.test("devil arise\\tforzzx\\nevils") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T8.js index c19aad65b..a3e4d9741 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T8.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 production Assertion :: \B evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A4_T8.js - * @description Execute /\B\w{4}\B/.exec("devil arise\tforzzx\nevils") and check results - */ +/*--- +info: > + The production Assertion :: \B evaluates by returning an internal + AssertionTester closure that takes a State argument x and performs the ... +description: > + Execute /\B\w{4}\B/.exec("devil arise\tforzzx\nevils") and check + results +---*/ __executed = /\B\w{4}\B/.exec("devil arise\tforzzx\nevils"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T1.js index f8fb83ed3..5090e8290 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Since assertion evaluating do not change endIndex repetition of assertion does the same result - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T1.js - * @description Execute /^^^^^^^robot$$$$/.exec("robot") and check results - */ +/*--- +info: > + Since assertion evaluating do not change endIndex repetition of assertion + does the same result +description: Execute /^^^^^^^robot$$$$/.exec("robot") and check results +---*/ __executed = /^^^^^^^robot$$$$/.exec("robot"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T2.js index e63b1666f..adf34643b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_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. -/** - * Since assertion evaluating do not change endIndex repetition of assertion does the same result - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A5_T2.js - * @description Execute /\B\B\B\B\B\Bbot\b\b\b\b\b\b\b/.exec("robot wall-e") and check results - */ +/*--- +info: > + Since assertion evaluating do not change endIndex repetition of assertion + does the same result +description: > + Execute /\B\B\B\B\B\Bbot\b\b\b\b\b\b\b/.exec("robot wall-e") and + check results +---*/ __executed = /\B\B\B\B\B\Bbot\b\b\b\b\b\b\b/.exec("robot wall-e"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T1.js index 688884379..0ac0db86b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_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. -/** - * Assertions in combination - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T1.js - * @description while asterix is non greedy it is run till the end because of dollar assertion - */ +/*--- +info: Assertions in combination +description: > + while asterix is non greedy it is run till the end because of + dollar assertion +---*/ __executed = /^.*?$/.exec("Hello World"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T2.js index a1e4818c9..80836b6bf 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Assertions in combination - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T2.js - * @description Execute /^.*?/.exec("Hello World") and check results - */ +/*--- +info: Assertions in combination +description: Execute /^.*?/.exec("Hello World") and check results +---*/ __executed = /^.*?/.exec("Hello World"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T3.js index 8a1f3ad38..7aadca89c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Assertions in combination - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T3.js - * @description while asterix is non greedy it is run till matches end or colon - */ +/*--- +info: Assertions in combination +description: while asterix is non greedy it is run till matches end or colon +---*/ __executed = /^.*?(:|$)/.exec("Hello: World"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T4.js index 08cd42f78..73c0fcdb6 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Assertions in combination - * - * @path ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A6_T4.js - * @description Execute /^.*(:|$)/.exec("Hello: World") and check results - */ +/*--- +info: Assertions in combination +description: "Execute /^.*(:|$)/.exec(\"Hello: World\") and check results" +---*/ __executed = /^.*(:|$)/.exec("Hello: World"); @@ -35,5 +33,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T1.js index 2fefde618..cbc36eca3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T1.js - * @description Execute /\d{2,4}/.exec("the answer is 42") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /\d{2,4}/.exec("the answer is 42") and check results +---*/ __executed = /\d{2,4}/.exec("the answer is 42"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T10.js index d141f3d65..d91669077 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T10.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T10.js - * @description Execute /b{0,93}c/.exec("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /b{0,93}c/.exec("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T11.js index 2470bcfc7..8d5f48972 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T11.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 production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T11.js - * @description Execute /bx{0,93}c/.exec("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /bx{0,93}c/.exec("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T12.js index c61c55d35..973154441 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_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. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T12.js - * @description Execute /.{0,93}/.exec("weirwerdf") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /.{0,93}/.exec("weirwerdf") and check results +---*/ __executed = /.{0,93}/.exec("weirwerdf"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T2.js index b61f802eb..b1afe736a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T2.js - * @description Execute /\d{2,4}/.test("the 7 movie") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /\d{2,4}/.test("the 7 movie") and check results +---*/ __executed = /\d{2,4}/.test("the 7 movie"); @@ -14,5 +14,3 @@ __executed = /\d{2,4}/.test("the 7 movie"); if (__executed) { $ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T3.js index 83ffab217..22f1543d7 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T3.js - * @description Execute /\d{2,4}/.exec("the 20000 Leagues Under the Sea book") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: > + Execute /\d{2,4}/.exec("the 20000 Leagues Under the Sea book") and + check results +---*/ __executed = /\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T4.js index 8ae84c992..b1f703a1e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T4.js - * @description Execute /\d{2,4}/.exec("the Fahrenheit 451 book") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /\d{2,4}/.exec("the Fahrenheit 451 book") and check results +---*/ __executed = /\d{2,4}/.exec("the Fahrenheit 451 book"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T5.js index 25d5d368b..8976f65c4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T5.js - * @description Execute /\d{2,4}/.exec("the 1984 novel") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /\d{2,4}/.exec("the 1984 novel") and check results +---*/ __executed = /\d{2,4}/.exec("the 1984 novel"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T6.js index bacc09142..ae3160895 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T6.js - * @description Execute /\d{2,4}/.exec("0a0\u0031\u0031b") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /\d{2,4}/.exec("0a0\u0031\u0031b") and check results +---*/ __executed = /\d{2,4}/.exec("0a0\u0031\u0031b"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T7.js index 239d624fa..3b927b5b0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T7.js - * @description Execute /\d{2,4}/.exec("0a0\u0031\u003122b") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /\d{2,4}/.exec("0a0\u0031\u003122b") and check results +---*/ __executed = /\d{2,4}/.exec("0a0\u0031\u003122b"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T8.js index 5b9d406e7..d7383b3ac 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T8.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T8.js - * @description Execute /b{2,3}c/.exec("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /b{2,3}c/.exec("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T9.js index 14a6bba24..cdd24bfe4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A1_T9.js - * @description Execute /b{42,93}c/.exec("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } + evaluates as ... +description: Execute /b{42,93}c/.exec("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{42,93}c/.test("aaabbbbcccddeeeefffff"); @@ -14,5 +14,3 @@ __executed = /b{42,93}c/.test("aaabbbbcccddeeeefffff"); if (__executed) { $ERROR('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T1.js index 0758297ca..236f08c92 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_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. -/** - * i) The production QuantifierPrefix :: { DecimalDigits } evaluates... - * ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T1.js - * @description Execute /\w{3}\d?/.exec("CE\uFFFFL\uFFDDbox127") and check results - */ +/*--- +info: > + i) The production QuantifierPrefix :: { DecimalDigits } evaluates... + ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 +description: Execute /\w{3}\d?/.exec("CE\uFFFFL\uFFDDbox127") and check results +---*/ __executed = /\w{3}\d?/.exec("CE\uFFFFL\uFFDDbox127"); @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T2.js index 0bd93de40..ca34afd47 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * i) The production QuantifierPrefix :: { DecimalDigits } evaluates... - * ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T2.js - * @description Execute /\w{3}\d?/.exec("CELL\uFFDDbox127") and check results - */ +/*--- +info: > + i) The production QuantifierPrefix :: { DecimalDigits } evaluates... + ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 +description: Execute /\w{3}\d?/.exec("CELL\uFFDDbox127") and check results +---*/ __executed = /\w{3}\d?/.exec("CELL\uFFDDbox127"); @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T3.js index ea5542af2..2e7d4a276 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * i) The production QuantifierPrefix :: { DecimalDigits } evaluates... - * ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T3.js - * @description Execute /b{2}c/.exec("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + i) The production QuantifierPrefix :: { DecimalDigits } evaluates... + ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 +description: Execute /b{2}c/.exec("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); @@ -36,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T4.js index 9f70d3573..75c4e2e25 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * i) The production QuantifierPrefix :: { DecimalDigits } evaluates... - * ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A2_T4.js - * @description Execute /b{8}c/.test("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + i) The production QuantifierPrefix :: { DecimalDigits } evaluates... + ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 +description: Execute /b{8}c/.test("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{8}/.test("aaabbbbcccddeeeefffff"); @@ -15,5 +14,3 @@ __executed = /b{8}/.test("aaabbbbcccddeeeefffff"); if (__executed) { $ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T1.js index 2b252a2c4..1fe7efa5b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T1.js - * @description Execute /\s+java\s+/.exec("language java\n") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /\s+java\s+/.exec("language java\n") and check results +---*/ __executed = /\s+java\s+/.exec("language java\n"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T10.js index 94d161b67..f7104a4a3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_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. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T10.js - * @description Execute /o+/.test("abcdefg") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /o+/.test("abcdefg") and check results +---*/ __executed = /o+/.test("abcdefg"); @@ -14,5 +14,3 @@ __executed = /o+/.test("abcdefg"); if (__executed) { $ERROR('#1: /o+/.test("abcdefg") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T11.js index 24eeaf962..43af933a1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T11.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 production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T11.js - * @description Execute /d+/.exec("abcdefg") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /d+/.exec("abcdefg") and check results +---*/ __executed = /d+/.exec("abcdefg"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T12.js index 761c49913..fda325b44 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_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. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T12.js - * @description Execute /(b+)(b+)(b+)/.exec("abbbbbbbc") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /(b+)(b+)(b+)/.exec("abbbbbbbc") and check results +---*/ __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T13.js index 70f8e1afa..72a1c59be 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T13.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T13.js - * @description Execute /(b+)(b*)/.exec("abbbbbbbc") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /(b+)(b*)/.exec("abbbbbbbc") and check results +---*/ __executed = /(b+)(b*)/.exec("abbbbbbbc"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T14.js index d1e713f9a..b291873ac 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T14.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T14.js - * @description Execute /b*b+/.exec("abbbbbbbc") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /b*b+/.exec("abbbbbbbc") and check results +---*/ __executed = /b*b+/.exec("abbbbbbbc"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T2.js index 648531c41..4cec3db5b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T2.js - * @description Execute /\s+java\s+/.exec("\t java object") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /\s+java\s+/.exec("\t java object") and check results +---*/ __executed = /\s+java\s+/.exec("\t java object"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T3.js index 149f3c98e..4ce40d5d2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T3.js - * @description Execute /\s+java\s+/.test("\t javax package") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /\s+java\s+/.test("\t javax package") and check results +---*/ __executed = /\s+java\s+/.test("\t javax package"); @@ -14,5 +14,3 @@ __executed = /\s+java\s+/.test("\t javax package"); if (__executed) { $ERROR('#1: /\\s+java\\s+/.test("\\t javax package") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T4.js index 1d566b277..40078e9fd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T4.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T4.js - * @description Execute /\s+java\s+/.test("java\n\nobject") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /\s+java\s+/.test("java\n\nobject") and check results +---*/ __executed = /\s+java\s+/.test("java\n\nobject"); @@ -14,5 +14,3 @@ __executed = /\s+java\s+/.test("java\n\nobject"); if (__executed) { $ERROR('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T5.js index 0fb67ae6a..340fd3e54 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T5.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 production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T5.js - * @description Execute /[a-z]+\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: > + Execute /[a-z]+\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0") and check + results +---*/ __executed = /[a-z]+\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T6.js index f7811bf4a..640517f18 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_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. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T6.js - * @description Execute /[a-z]+\d+/.exec("__abc123.0") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /[a-z]+\d+/.exec("__abc123.0") and check results +---*/ __executed = /[a-z]+\d+/.exec("__abc123.0"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T7.js index 50df9d4c8..0e6d97f6b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T7.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 production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T7.js - * @description Execute /[a-z]+(\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: > + Execute /[a-z]+(\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0") and + check results +---*/ __executed = /[a-z]+(\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T8.js index f95837858..6dffb79a8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_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. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T8.js - * @description Execute /[a-z]+(\d+)/.exec("__abc123.0") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /[a-z]+(\d+)/.exec("__abc123.0") and check results +---*/ __executed = /[a-z]+(\d+)/.exec("__abc123.0"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T9.js index 2c8311931..d90ab4840 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_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. -/** - * The production QuantifierPrefix :: + evaluates by returning the two results 1 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A3_T9.js - * @description Execute /d+/.exec("abcdddddefg") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: + evaluates by returning the two + results 1 and \infty +description: Execute /d+/.exec("abcdddddefg") and check results +---*/ __executed = /d+/.exec("abcdddddefg"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T1.js index a0d48de9a..bc4b81aff 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T1.js - * @description Execute /[^"]* /.exec('"beast"-nickname') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /[^"]* /.exec('"beast"-nickname') and check results +---*/ __executed = /[^"]*/.exec('"beast"-nickname'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T10.js index c39a92513..66a741fc6 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_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. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T10.js - * @description Execute /d* /.exec('abcddddefg') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /d* /.exec('abcddddefg') and check results +---*/ __executed = /d*/.exec('abcddddefg'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T11.js index 3c17990db..3a671083b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T11.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T11.js - * @description Execute /cd* /.exec('abcddddefg') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /cd* /.exec('abcddddefg') and check results +---*/ __executed = /cd*/.exec('abcddddefg'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T12.js index a8401083e..966e45908 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_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. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T12.js - * @description Execute /cx*d/.exec('abcdefg') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /cx*d/.exec('abcdefg') and check results +---*/ __executed = /cx*d/.exec('abcdefg'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T13.js index b0d1f28e0..5aef77d74 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T13.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T13.js - * @description Execute /(x*)(x+)/.exec('xxxxxxx') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /(x*)(x+)/.exec('xxxxxxx') and check results +---*/ __executed = /(x*)(x+)/.exec('xxxxxxx'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T14.js index ad6b7d77e..473d00151 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T14.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T14.js - * @description Execute /(\d*)(\d+)/.exec('1234567890') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /(\d*)(\d+)/.exec('1234567890') and check results +---*/ __executed = /(\d*)(\d+)/.exec('1234567890'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T15.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T15.js index 362003a82..34a7cce2f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T15.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_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. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T15.js - * @description Execute /(\d*)\d(\d+)/.exec('1234567890') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /(\d*)\d(\d+)/.exec('1234567890') and check results +---*/ __executed = /(\d*)\d(\d+)/.exec('1234567890'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T16.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T16.js index a2e4c965b..c0b07faaa 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T16.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T16.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T16.js - * @description Execute /(x+)(x*)/.exec('xxxxxxx') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /(x+)(x*)/.exec('xxxxxxx') and check results +---*/ __executed = /(x+)(x*)/.exec('xxxxxxx'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T17.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T17.js index 5e8861610..b645b2c92 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T17.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T17.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T17.js - * @description Execute /x*y+$/.exec('xxxxxxyyyyyy') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /x*y+$/.exec('xxxxxxyyyyyy') and check results +---*/ __executed = /x*y+$/.exec('xxxxxxyyyyyy'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T18.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T18.js index 330315ad3..e155d7c81 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T18.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T18.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T18.js - * @description Execute /[\d]*[\s]*bc./.exec('abcdef') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /[\d]*[\s]*bc./.exec('abcdef') and check results +---*/ __executed = /[\d]*[\s]*bc./.exec('abcdef'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T19.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T19.js index 0818eca6b..1c8d828a8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T19.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T19.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T19.js - * @description Execute /bc..[\d]*[\s]* /.exec('abcdef') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /bc..[\d]*[\s]* /.exec('abcdef') and check results +---*/ __executed = /bc..[\d]*[\s]*/.exec('abcdef'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T2.js index 146fc23f9..44c854a3b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T2.js - * @description Execute /[^"]* /.exec('alice said: "don\'t"') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: "Execute /[^\"]* /.exec('alice said: \"don\\'t\"') and check results" +---*/ __executed = /[^"]*/.exec('alice said: "don\'t"'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T20.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T20.js index 11b5462c7..0bb3cc26f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T20.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T20.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T20.js - * @description Execute /.* /.exec('a1b2c3') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /.* /.exec('a1b2c3') and check results +---*/ __executed = /.*/.exec('a1b2c3'); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T21.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T21.js index 84bf97034..8c33273a3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T21.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_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. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T21.js - * @description Execute /[xyz]*1/.test('a0.b2.c3') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /[xyz]*1/.test('a0.b2.c3') and check results +---*/ __executed = /[xyz]*1/.test('a0.b2.c3'); @@ -14,5 +14,3 @@ __executed = /[xyz]*1/.test('a0.b2.c3'); if (__executed) { $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T3.js index 6d7ffaf71..f05de24ea 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_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. -/** - * The production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T3.js - * @description Execute /[^"]* /.exec("before\'i\'start") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: Execute /[^"]* /.exec("before\'i\'start") and check results +---*/ __executed = /[^"]*/.exec("before\'i\'start"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T4.js index 4f4ca9ef5..b5d7ce23d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T4.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T4.js - * @description Execute /[^"]* /.exec('alice \"sweep\": "don\'t"') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: > + Execute /[^"]* /.exec('alice \"sweep\": "don\'t"') and check + results +---*/ __executed = /[^"]*/.exec('alice \"sweep\": "don\'t"'); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T5.js index 61420275b..b94b7e0ed 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T5.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T5.js - * @description Execute /[^"]* /.exec('alice \u0022sweep\u0022: "don\'t"') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: > + Execute /[^"]* /.exec('alice \u0022sweep\u0022: "don\'t"') and + check results +---*/ __executed = /[^"]*/.exec('alice \u0022sweep\u0022: "don\'t"'); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T6.js index 362dbdd62..81c60ecfa 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T6.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T6.js - * @description Execute /["'][^"']*["']/.exec('alice \u0022sweep\u0022: "don\'t"') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: > + Execute /["'][^"']*["']/.exec('alice \u0022sweep\u0022: "don\'t"') + and check results +---*/ __executed = /["'][^"']*["']/.exec('alice \u0022sweep\u0022: "don\'t"'); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T7.js index 8fc87a83f..73fd475ec 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T7.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T7.js - * @description Execute /["'][^"']*["']/.exec('alice cries out: \'don\'t\'') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: > + Execute /["'][^"']*["']/.exec('alice cries out: \'don\'t\'') and + check results +---*/ __executed = /["'][^"']*["']/.exec('alice cries out: \'don\'t\''); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T8.js index 840c044e0..96ddb099c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T8.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T8.js - * @description Execute /["'][^"']*["']/.test('alice cries out: don\'t') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: > + Execute /["'][^"']*["']/.test('alice cries out: don\'t') and check + results +---*/ __executed = /["'][^"']*["']/.test('alice cries out: don\'t'); @@ -14,5 +16,3 @@ __executed = /["'][^"']*["']/.test('alice cries out: don\'t'); if (__executed) { $ERROR('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T9.js index 836f76f8b..d433a485f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T9.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 production QuantifierPrefix :: * evaluates by returning the two results 0 and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A4_T9.js - * @description Execute /["'][^"']*["']/.exec('alice cries out:\"\"') and check results - */ +/*--- +info: > + The production QuantifierPrefix :: * evaluates by returning the two + results 0 and \infty +description: > + Execute /["'][^"']*["']/.exec('alice cries out:\"\"') and check + results +---*/ __executed = /["'][^"']*["']/.exec('alice cries out:\"\"'); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T1.js index 035a62b27..8faf3df2d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T1.js - * @description Execute /java(script)?/.exec("state: javascript is extension of ecma script") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: > + Execute /java(script)?/.exec("state: javascript is extension of + ecma script") and check results +---*/ __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T10.js index 23224d09c..4f6254268 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T10.js - * @description Execute /ab?c?d?x?y?z/.exec("123az789") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /ab?c?d?x?y?z/.exec("123az789") and check results +---*/ __executed = /ab?c?d?x?y?z/.exec("123az789"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T11.js index f9396a6a3..150cbb4d2 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T11.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 production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T11.js - * @description Execute /\??\??\??\??\??/.exec("?????") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /\??\??\??\??\??/.exec("?????") and check results +---*/ __executed = /\??\??\??\??\??/.exec("?????"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T12.js index db97a462f..19ba0b75e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T12.js - * @description Execute /.?.?.?.?.?.?.?/.exec("test") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /.?.?.?.?.?.?.?/.exec("test") and check results +---*/ __executed = /.?.?.?.?.?.?.?/.exec("test"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T2.js index c30a69199..8068fb473 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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 production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T2.js - * @description Execute /java(script)?/.exec("state: java and javascript are vastly different") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: > + Execute /java(script)?/.exec("state: java and javascript are + vastly different") and check results +---*/ __executed = /java(script)?/.exec("state: java and javascript are vastly different"); @@ -35,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T3.js index 3e84feb22..9f1fab046 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T3.js - * @description Execute /java(script)?/.test("state: both Java and JavaScript used in web development") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: > + Execute /java(script)?/.test("state: both Java and JavaScript used + in web development") and check results +---*/ __executed = /java(script)?/.test("state: both Java and JavaScript used in web development"); @@ -14,5 +16,3 @@ __executed = /java(script)?/.test("state: both Java and JavaScript used in web d if (__executed) { $ERROR('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T4.js index 0f418f37c..40dc6c2b9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T4.js - * @description Execute /cd?e/.exec("abcdef") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /cd?e/.exec("abcdef") and check results +---*/ __executed = /cd?e/.exec("abcdef"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T5.js index 78736fba7..0bde30d31 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T5.js - * @description Execute /cdx?e/.exec("abcdef") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /cdx?e/.exec("abcdef") and check results +---*/ __executed = /cdx?e/.exec("abcdef"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T6.js index 5d50c362f..e6c8adbc9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T6.js - * @description Execute /o?pqrst/.exec("pqrstuvw") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /o?pqrst/.exec("pqrstuvw") and check results +---*/ __executed = /o?pqrst/.exec("pqrstuvw"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T7.js index 5714b2e76..eb135023e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T7.js - * @description Execute /x?y?z?/.exec("abcd") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /x?y?z?/.exec("abcd") and check results +---*/ __executed = /x?y?z?/.exec("abcd"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T8.js index e50dc6179..7cd33de67 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T8.js - * @description Execute /x?ay?bz?c/.exec("abcd") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /x?ay?bz?c/.exec("abcd") and check results +---*/ __executed = /x?ay?bz?c/.exec("abcd"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T9.js index 2f6b84ea8..15de307b0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_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. -/** - * The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1 - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A5_T9.js - * @description Execute /b?b?b?b/.exec("abbbbc") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: ? evaluates by returning the two + results 0 and 1 +description: Execute /b?b?b?b/.exec("abbbbc") and check results +---*/ __executed = /b?b?b?b/.exec("abbbbc"); @@ -35,5 +35,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T1.js index 02646ecaf..b277ea804 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_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. -/** - * The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: - * i) Let i be the MV of DecimalDigits - * ii) Return the two results i and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T1.js - * @description Execute /b{2,}c/.exec("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: + i) Let i be the MV of DecimalDigits + ii) Return the two results i and \infty +description: Execute /b{2,}c/.exec("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T2.js index bf2d2e8de..7aecbd6cb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_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. -/** - * The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: - * i) Let i be the MV of DecimalDigits - * ii) Return the two results i and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T2.js - * @description Execute /b{8,}c/.test("aaabbbbcccddeeeefffff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: + i) Let i be the MV of DecimalDigits + ii) Return the two results i and \infty +description: Execute /b{8,}c/.test("aaabbbbcccddeeeefffff") and check results +---*/ __executed = /b{8,}c/.test("aaabbbbcccddeeeefffff"); @@ -16,5 +15,3 @@ __executed = /b{8,}c/.test("aaabbbbcccddeeeefffff"); if (__executed) { $ERROR('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T3.js index 99966c765..3db3803cf 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_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. -/** - * The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: - * i) Let i be the MV of DecimalDigits - * ii) Return the two results i and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T3.js - * @description Execute /\d{1,}/.exec("wqe456646dsff") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: + i) Let i be the MV of DecimalDigits + ii) Return the two results i and \infty +description: Execute /\d{1,}/.exec("wqe456646dsff") and check results +---*/ __executed = /\d{1,}/.exec("wqe456646dsff"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T4.js index 0d8a9ae56..d06a2ccb0 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: - * i) Let i be the MV of DecimalDigits - * ii) Return the two results i and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T4.js - * @description Execute /(123){1,}/.exec("123123") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: + i) Let i be the MV of DecimalDigits + ii) Return the two results i and \infty +description: Execute /(123){1,}/.exec("123123") and check results +---*/ __executed = /(123){1,}/.exec("123123"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T5.js index 514308943..b5b690201 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_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. -/** - * The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: - * i) Let i be the MV of DecimalDigits - * ii) Return the two results i and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T5.js - * @description Execute /(123){1,}x\1/.exec("123123x123") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: + i) Let i be the MV of DecimalDigits + ii) Return the two results i and \infty +description: Execute /(123){1,}x\1/.exec("123123x123") and check results +---*/ __executed = /(123){1,}x\1/.exec("123123x123"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T6.js index cdc5ba6cd..3019a6c02 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_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. -/** - * The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: - * i) Let i be the MV of DecimalDigits - * ii) Return the two results i and \infty - * - * @path ch15/15.10/15.10.2/15.10.2.7/S15.10.2.7_A6_T6.js - * @description Execute /x{1,2}x{1,}/.exec("xxxxxxx") and check results - */ +/*--- +info: > + The production QuantifierPrefix :: { DecimalDigits , }evaluates as follows: + i) Let i be the MV of DecimalDigits + ii) Return the two results i and \infty +description: Execute /x{1,2}x{1,}/.exec("xxxxxxx") and check results +---*/ __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T1.js index 8765743ce..19fe55c47 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_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. -/** - * The form (?= Disjunction ) specifies a zero-width positive lookahead. - * In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. - * If Disjunction can match at the current position in several ways, only the first one is tried - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T1.js - * @description Execute /(?=(a+))/.exec("baaabac") and check results - */ +/*--- +info: > + The form (?= Disjunction ) specifies a zero-width positive lookahead. + In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. + If Disjunction can match at the current position in several ways, only the first one is tried +description: Execute /(?=(a+))/.exec("baaabac") and check results +---*/ __executed = /(?=(a+))/.exec("baaabac"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T2.js index f38bd2273..15da61ed9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_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. -/** - * The form (?= Disjunction ) specifies a zero-width positive lookahead. - * In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. - * If Disjunction can match at the current position in several ways, only the first one is tried - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T2.js - * @description Execute /(?=(a+))a*b\1/.exec("baaabac") and check results - */ +/*--- +info: > + The form (?= Disjunction ) specifies a zero-width positive lookahead. + In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. + If Disjunction can match at the current position in several ways, only the first one is tried +description: Execute /(?=(a+))a*b\1/.exec("baaabac") and check results +---*/ __executed = /(?=(a+))a*b\1/.exec("baaabac"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T3.js index d37910429..84ada056a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T3.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. -/** - * The form (?= Disjunction ) specifies a zero-width positive lookahead. - * In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. - * If Disjunction can match at the current position in several ways, only the first one is tried - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T3.js - * @description Execute /[Jj]ava([Ss]cript)?(?=\:)/.exec("just Javascript: the way af jedi") and check results - */ +/*--- +info: > + The form (?= Disjunction ) specifies a zero-width positive lookahead. + In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. + If Disjunction can match at the current position in several ways, only the first one is tried +description: > + Execute /[Jj]ava([Ss]cript)?(?=\:)/.exec("just Javascript: the way + af jedi") and check results +---*/ __executed = /[Jj]ava([Ss]cript)?(?=\:)/.exec("just Javascript: the way af jedi"); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T4.js index 76f486db6..2339d6cd8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_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. -/** - * The form (?= Disjunction ) specifies a zero-width positive lookahead. - * In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. - * If Disjunction can match at the current position in several ways, only the first one is tried - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T4.js - * @description Execute /[Jj]ava([Ss]cript)?(?=\:)/.exec("taste of java: the cookbook ") and check results - */ +/*--- +info: > + The form (?= Disjunction ) specifies a zero-width positive lookahead. + In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. + If Disjunction can match at the current position in several ways, only the first one is tried +description: > + Execute /[Jj]ava([Ss]cript)?(?=\:)/.exec("taste of java: the + cookbook ") and check results +---*/ __executed = /[Jj]ava([Ss]cript)?(?=\:)/.exec("taste of java: the cookbook "); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T5.js index b4608e6e0..005233922 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T5.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. -/** - * The form (?= Disjunction ) specifies a zero-width positive lookahead. - * In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. - * If Disjunction can match at the current position in several ways, only the first one is tried - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A1_T5.js - * @description Execute /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine") and check results - */ +/*--- +info: > + The form (?= Disjunction ) specifies a zero-width positive lookahead. + In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel. + If Disjunction can match at the current position in several ways, only the first one is tried +description: > + Execute /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript + engine") and check results +---*/ __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine"); @@ -16,5 +17,3 @@ __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine"); if (__executed) { $ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T1.js index a080c0933..fc69bc0fb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T1.js - * @description Execute /(.*?)a(?!(a+)b\2c)\2(.*)/.exec("baaabaac") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: > + Execute /(.*?)a(?!(a+)b\2c)\2(.*)/.exec("baaabaac") and check + results +---*/ __executed = /(.*?)a(?!(a+)b\2c)\2(.*)/.exec("baaabaac"); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T10.js index 0929bb895..7fb5b54b4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T10.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T10.js - * @description Execute /(?!a|b)|c/.exec("bc") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: Execute /(?!a|b)|c/.exec("bc") and check results +---*/ __executed = /(?!a|b)|c/.exec("bc"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T11.js index 636355d9a..f42810d89 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T11.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T11.js - * @description Execute /(?!a|b)|c/.exec("d") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: Execute /(?!a|b)|c/.exec("d") and check results +---*/ __executed = /(?!a|b)|c/.exec("d"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T2.js index 887d7a999..55a9d6c89 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T2.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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T2.js - * @description Execute /Java(?!Script)([A-Z]\w*)/.exec("using of JavaBeans technology") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: > + Execute /Java(?!Script)([A-Z]\w*)/.exec("using of JavaBeans + technology") and check results +---*/ __executed = /Java(?!Script)([A-Z]\w*)/.exec("using of JavaBeans technology"); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T3.js index 9e0624e31..1e3965544 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T3.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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T3.js - * @description Execute /Java(?!Script)([A-Z]\w*)/.test("using of Java language") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: > + Execute /Java(?!Script)([A-Z]\w*)/.test("using of Java language") + and check results +---*/ __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language"); @@ -16,5 +17,3 @@ __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language"); if (__executed) { $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T4.js index 317169ec9..925de69fd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T4.js - * @description Execute /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter ") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: > + Execute /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter ") and + check results +---*/ __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter "); @@ -16,5 +17,3 @@ __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter "); if (__executed) { $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T5.js index 39b842b00..c00b9348e 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T5.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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T5.js - * @description Execute /Java(?!Script)([A-Z]\w*)/.exec("JavaScr oops ipt ") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: > + Execute /Java(?!Script)([A-Z]\w*)/.exec("JavaScr oops ipt ") and + check results +---*/ __executed = /Java(?!Script)([A-Z]\w*)/.exec("JavaScr oops ipt "); @@ -37,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T6.js index ab3efd17d..a5c269028 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T6.js - * @description Execute /(\.(?!com|org)|\/)/.exec("ah.info") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: Execute /(\.(?!com|org)|\/)/.exec("ah.info") and check results +---*/ __executed = /(\.(?!com|org)|\/)/.exec("ah.info"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T7.js index 0e2766238..f1e439dca 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_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. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T7.js - * @description Execute /(\.(?!com|org)|\/)/.exec("ah/info") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: Execute /(\.(?!com|org)|\/)/.exec("ah/info") and check results +---*/ __executed = /(\.(?!com|org)|\/)/.exec("ah/info"); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T8.js index 317da7d47..e315b6eef 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T8.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T8.js - * @description Execute /(\.(?!com|org)|\/)/.test("ah.com") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: Execute /(\.(?!com|org)|\/)/.test("ah.com") and check results +---*/ __executed = /(\.(?!com|org)|\/)/.test("ah.com"); @@ -16,5 +15,3 @@ __executed = /(\.(?!com|org)|\/)/.test("ah.com"); if (__executed) { $ERROR('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T9.js index 008d4ccbe..1d0e300b1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T9.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The form (?! Disjunction ) specifies a zero-width negative lookahead. - * In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. - * The current position is not advanced before matching the sequel - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A2_T9.js - * @description Execute /(?!a|b)|c/.exec("") and check results - */ +/*--- +info: > + The form (?! Disjunction ) specifies a zero-width negative lookahead. + In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. + The current position is not advanced before matching the sequel +description: Execute /(?!a|b)|c/.exec("") and check results +---*/ __executed = /(?!a|b)|c/.exec(""); @@ -37,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T1.js index 9e6e4edd2..ca780da87 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T1.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T1.js - * @description Execute /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Learning javaScript is funny, really") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Learning + javaScript is funny, really") and check results +---*/ __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Learning javaScript is funny, really"); @@ -38,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T10.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T10.js index b09dcdd4a..6b1a6f9c3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T10.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T10.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T10.js - * @description Execute /(\d{3})(\d{3})\1\2/.exec("123456123456") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(\d{3})(\d{3})\1\2/.exec("123456123456") and check results +---*/ __executed = /(\d{3})(\d{3})\1\2/.exec("123456123456"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T11.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T11.js index 7aa61c013..0fb56023c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T11.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T11.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T11.js - * @description Execute /a(..(..)..)/.exec("abcdefgh") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /a(..(..)..)/.exec("abcdefgh") and check results +---*/ __executed = /a(..(..)..)/.exec("abcdefgh"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T12.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T12.js index cf8b9fc1c..4ed17dbfe 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T12.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T12.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T12.js - * @description Execute /(a(b(c)))(d(e(f)))/.exec("xabcdefg") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(a(b(c)))(d(e(f)))/.exec("xabcdefg") and check results +---*/ __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T13.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T13.js index a2ab53fbe..69ed05d81 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T13.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T13.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T13.js - * @description Execute /(a(b(c)))(d(e(f)))\2\5/.exec("xabcdefbcefg") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /(a(b(c)))(d(e(f)))\2\5/.exec("xabcdefbcefg") and check + results +---*/ __executed = /(a(b(c)))(d(e(f)))\2\5/.exec("xabcdefbcefg"); @@ -38,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T14.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T14.js index d6d74fa6f..092da15d9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T14.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T14.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T14.js - * @description Execute /a(.?)b\1c\1d\1/.exec("abcd") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /a(.?)b\1c\1d\1/.exec("abcd") and check results +---*/ __executed = /a(.?)b\1c\1d\1/.exec("abcd"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T15.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T15.js index 93c454287..7e8bd205d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T15.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T15.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T15.js - * @description see bug http:bugzilla.mozilla.org/show_bug.cgi?id=119909 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=119909" +---*/ __strOriginal = "hello"; __openParen = '('; @@ -56,5 +55,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T16.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T16.js index 750b6d151..77afefc51 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T16.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T16.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T16.js - * @description see bug http:bugzilla.mozilla.org/show_bug.cgi?id=119909 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=119909" +---*/ __strOriginal = "hello"; __openParen = '(?:'; @@ -54,5 +53,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T17.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T17.js index be4430121..8b64a41f4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T17.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T17.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T17.js - * @description see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169497 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169497" +---*/ __body=""; __body += '<body onXXX="alert(event.type);">\n'; @@ -49,5 +48,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T18.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T18.js index 976bf0b86..9e658035a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T18.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T18.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T18.js - * @description see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169534 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169534" +---*/ __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\|)([\w\x81-\xff ]*)(\|)([\/a-z][\w:\/\.]*\.[a-z]{3,4})(\|)/ig, '<a href="$4">$2</a>'); @@ -19,5 +18,3 @@ __expected = 'To sign up click <a href="https:www.xxxx.org/subscribe.htm">here</ if (__replaced !== __expected) { $ERROR('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'<a href="$4">$2</a>\'); __replaced === ' + __expected + '. Actual: ' + __replaced); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T19.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T19.js index 99502fcd3..1d8077f00 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T19.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T19.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T19.js - * @description Execute /([\S]+([ \t]+[\S]+)*)[ \t]*=[ \t]*[\S]+/.exec("Course_Creator = Test") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /([\S]+([ \t]+[\S]+)*)[ \t]*=[ + \t]*[\S]+/.exec("Course_Creator = Test") and check results +---*/ __executed = /([\S]+([ \t]+[\S]+)*)[ \t]*=[ \t]*[\S]+/.exec("Course_Creator = Test"); @@ -38,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T2.js index 9583bbe34..9b175307d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T2.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T2.js - * @description Execute /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Developing with Java is fun, try it") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Developing + with Java is fun, try it") and check results +---*/ __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Developing with Java is fun, try it"); @@ -38,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T20.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T20.js index 3a64abf76..5c64e795d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T20.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T20.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T20.js - * @description Execute /^(A)?(A.*)$/.exec("AAA") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /^(A)?(A.*)$/.exec("AAA") and check results +---*/ __executed = /^(A)?(A.*)$/.exec("AAA"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T21.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T21.js index 08de79e15..2a3b783c7 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T21.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T21.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T21.js - * @description Execute /^(A)?(A.*)$/.exec("AA") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /^(A)?(A.*)$/.exec("AA") and check results +---*/ __executed = /^(A)?(A.*)$/.exec("AA"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T22.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T22.js index 2bfc065c0..bdb8fb431 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T22.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T22.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T22.js - * @description Execute /^(A)?(A.*)$/.exec("A") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /^(A)?(A.*)$/.exec("A") and check results +---*/ __executed = /^(A)?(A.*)$/.exec("A"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T23.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T23.js index bb8144f69..dd9875abd 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T23.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T23.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T23.js - * @description Execute /(A)?(A.*)/.exec("zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /(A)?(A.*)/.exec("zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs") and + check results +---*/ __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; @@ -40,5 +41,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T24.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T24.js index 62ff1f2a2..53e9d7e08 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T24.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T24.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T24.js - * @description Execute /(A)?(A.*)/.exec("zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /(A)?(A.*)/.exec("zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs") and + check results +---*/ __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; @@ -40,5 +41,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T25.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T25.js index f8883bc51..053a76c12 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T25.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T25.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T25.js - * @description Execute /(A)?(A.*)/.exec("zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /(A)?(A.*)/.exec("zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs") and + check results +---*/ __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; @@ -40,5 +41,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T26.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T26.js index 9f0953534..a1c0f0e4a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T26.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T26.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T26.js - * @description Execute /(a)?a/.exec("a") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(a)?a/.exec("a") and check results +---*/ __string = "a"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T27.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T27.js index 033d91721..9b5ecec18 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T27.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T27.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T27.js - * @description Execute /a|(b)/.exec("a") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /a|(b)/.exec("a") and check results +---*/ __string = "a"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T28.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T28.js index 304e053e3..f6fdaf1e1 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T28.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T28.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T28.js - * @description Execute /(a)?(a)/.exec("a") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(a)?(a)/.exec("a") and check results +---*/ __string = "a"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T29.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T29.js index a17dc6b8b..6e61b2288 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T29.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T29.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T29.js - * @description See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353" +---*/ __string = "a"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T3.js index 2ad172e72..a35887a75 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T3.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T3.js - * @description Execute /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: > + Execute /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing + with JavaScript is dangerous, do not try it without assistance") + and check results +---*/ __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance"); @@ -17,5 +19,3 @@ __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with JavaScr if (__executed) { $ERROR('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T30.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T30.js index 1b0c17a0e..81bcaeda3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T30.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T30.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T30.js - * @description See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353" +---*/ __string = "ab"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T31.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T31.js index f19455475..428c863f3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T31.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T31.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T31.js - * @description See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353" +---*/ __string = "abc"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T32.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T32.js index 76d781afb..af6f50da4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T32.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T32.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T32.js - * @description See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353" +---*/ __string = "www.netscape.com"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T33.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T33.js index bcbab6c9c..ce8ba51f4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T33.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T33.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T33.js - * @description See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353 - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: "See bug http:bugzilla.mozilla.org/show_bug.cgi?id=165353" +---*/ __string = "www.netscape.com"; @@ -40,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T4.js index 88634c5e3..f5457e4e8 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T4.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T4.js - * @description Execute /(abc)/.exec("abc") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(abc)/.exec("abc") and check results +---*/ __executed = /(abc)/.exec("abc"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(abc)/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T5.js index 4335f4287..4ea174536 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T5.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T5.js - * @description Execute /a(bc)d(ef)g/.exec("abcdefg") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /a(bc)d(ef)g/.exec("abcdefg") and check results +---*/ __executed = /a(bc)d(ef)g/.exec("abcdefg"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T6.js index 51554db84..6cc87113b 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T6.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T6.js - * @description Execute /(.{3})(.{4})/.exec("abcdefgh") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(.{3})(.{4})/.exec("abcdefgh") and check results +---*/ __executed = /(.{3})(.{4})/.exec("abcdefgh"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T7.js index 9617ff958..5e257f818 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T7.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T7.js - * @description Execute /(aa)bcd\1/.exec("aabcdaabcd") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(aa)bcd\1/.exec("aabcdaabcd") and check results +---*/ __executed = /(aa)bcd\1/.exec("aabcdaabcd"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T8.js index 5b3fa9050..0ac3c5480 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T8.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T8.js - * @description Execute /(aa).+\1/.exec("aabcdaabcd") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(aa).+\1/.exec("aabcdaabcd") and check results +---*/ __executed = /(aa).+\1/.exec("aabcdaabcd"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T9.js index d8d5dbce6..4aed45a2c 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T9.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. - * The result can be used either in a backreference (\ followed by a nonzero decimal number), - * referenced in a replace string, - * or returned as part of an array from the regular expression matching function - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A3_T9.js - * @description Execute /(.{2}).+\1/.exec("aabcdaabcd") and check results - */ +/*--- +info: > + Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together and to save the result of the match. + The result can be used either in a backreference (\ followed by a nonzero decimal number), + referenced in a replace string, + or returned as part of an array from the regular expression matching function +description: Execute /(.{2}).+\1/.exec("aabcdaabcd") and check results +---*/ __executed = /(.{2}).+\1/.exec("aabcdaabcd"); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T1.js index 7e3fd984c..9a84f786d 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T1.js - * @description Execute /ab.de/.exec("abcde") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /ab.de/.exec("abcde") and check results +---*/ __string = "abcde"; __executed = /ab.de/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T2.js index ccddfc344..29175a1cb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T2.js - * @description Execute /.+/.exec("line 1\nline 2") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.+/.exec("line 1\nline 2") and check results +---*/ __string = "line 1\nline 2"; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T3.js index cd72ad8da..aa9dc1e8f 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T3.js - * @description Execute /.*a.* /.exec("this is a test") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.*a.* /.exec("this is a test") and check results +---*/ __string = "this is a test"; __executed = /.*a.*/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T4.js index 63f02fd4a..ddfe10b63 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T4.js - * @description Execute /.+/.exec("this is a *&^%$# test") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.+/.exec("this is a *&^%$# test") and check results +---*/ __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T5.js index eafdb66f6..4cdc937c4 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T5.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T5.js - * @description Execute /.+/.exec("....") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.+/.exec("....") and check results +---*/ __string = "...."; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T6.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T6.js index fac61d3a7..98246d729 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T6.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T6.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T6.js - * @description Execute /.+/.exec("abcdefghijklmnopqrstuvwxyz") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.+/.exec("abcdefghijklmnopqrstuvwxyz") and check results +---*/ __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T7.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T7.js index 73c2343ba..af010c24a 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T7.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_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. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T7.js - * @description Execute /.+/.exec("ABCDEFGHIJKLMNOPQRSTUVWXYZ") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.+/.exec("ABCDEFGHIJKLMNOPQRSTUVWXYZ") and check results +---*/ __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T8.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T8.js index 5b1fec20d..c396ac293 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T8.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T8.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T8.js - * @description Execute /.+/.exec("`1234567890-=~!@#$%^&*()_+") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: Execute /.+/.exec("`1234567890-=~!@#$%^&*()_+") and check results +---*/ __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T9.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T9.js index f34f43ad8..7b6e765d3 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T9.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T9.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The production Atom :: . evaluates as follows: - * i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> - * ii) Call CharacterSetMatcher(A, false) and return its Matcher result - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A4_T9.js - * @description Execute /.+/.exec("|\\[{]};:\"\',<>.?/") and check results - */ +/*--- +info: > + The production Atom :: . evaluates as follows: + i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS> + ii) Call CharacterSetMatcher(A, false) and return its Matcher result +description: "Execute /.+/.exec(\"|\\\\[{]};:\\\"\\',<>.?/\") and check results" +---*/ __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); @@ -38,5 +37,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T1.js index e3ca1fdcd..a900620eb 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_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. -/** - * In case-insignificant matches all characters are implicitly converted to upper case immediately before they are compared - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T1.js - * @description Execute /[a-z]+/ig.exec("ABC def ghi") and check results - */ +/*--- +info: > + In case-insignificant matches all characters are implicitly converted to + upper case immediately before they are compared +description: Execute /[a-z]+/ig.exec("ABC def ghi") and check results +---*/ __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); @@ -36,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T2.js index 383fc8476..e752eed29 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_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. -/** - * In case-insignificant matches all characters are implicitly converted to upper case immediately before they are compared - * - * @path ch15/15.10/15.10.2/15.10.2.8/S15.10.2.8_A5_T2.js - * @description Execute /[a-z]+/.exec("ABC def ghi") and check results - */ +/*--- +info: > + In case-insignificant matches all characters are implicitly converted to + upper case immediately before they are compared +description: Execute /[a-z]+/.exec("ABC def ghi") and check results +---*/ __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); @@ -36,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T1.js b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T1.js index 688932566..0dbe91ec5 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T1.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * An escape sequence of the form \ followed by a nonzero decimal number n matches the result of the nth set of capturing parentheses (see 15.10.2.11) - * - * @path ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T1.js - * @description Execute /\b(\w+) \1\b/.exec("do you listen the the band") and check results - */ +/*--- +info: > + An escape sequence of the form \ followed by a nonzero decimal number n + matches the result of the nth set of capturing parentheses (see + 15.10.2.11) +description: > + Execute /\b(\w+) \1\b/.exec("do you listen the the band") and + check results +---*/ __executed = /\b(\w+) \1\b/.exec("do you listen the the band"); @@ -35,5 +38,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T2.js b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T2.js index 663096734..e7cc30759 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T2.js @@ -1,12 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * An escape sequence of the form \ followed by a nonzero decimal number n matches the result of the nth set of capturing parentheses (see 15.10.2.11) - * - * @path ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T2.js - * @description Execute /([xu]\d{2}([A-H]{2})?)\1/.exec("x09x12x01x01u00FFu00FFx04x04x23") and check results - */ +/*--- +info: > + An escape sequence of the form \ followed by a nonzero decimal number n + matches the result of the nth set of capturing parentheses (see + 15.10.2.11) +description: > + Execute + /([xu]\d{2}([A-H]{2})?)\1/.exec("x09x12x01x01u00FFu00FFx04x04x23") + and check results +---*/ __executed = /([xu]\d{2}([A-H]{2})?)\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); @@ -35,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T3.js b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T3.js index 83349b41d..c6971dbfe 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T3.js @@ -1,12 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * An escape sequence of the form \ followed by a nonzero decimal number n matches the result of the nth set of capturing parentheses (see 15.10.2.11) - * - * @path ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T3.js - * @description Execute /([xu]\d{2}([A-H]{2})?)\1/.exec("x09x12x01x05u00FFu00FFx04x04x23") and check results - */ +/*--- +info: > + An escape sequence of the form \ followed by a nonzero decimal number n + matches the result of the nth set of capturing parentheses (see + 15.10.2.11) +description: > + Execute + /([xu]\d{2}([A-H]{2})?)\1/.exec("x09x12x01x05u00FFu00FFx04x04x23") + and check results +---*/ __executed = /([xu]\d{2}([A-H]{2})?)\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); @@ -35,5 +39,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T4.js b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T4.js index a0d5c8855..a1893e3e6 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T4.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * An escape sequence of the form \ followed by a nonzero decimal number n matches the result of the nth set of capturing parentheses (see 15.10.2.11) - * - * @path ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T4.js - * @description Execute /\b(\w+) \2\b/.test("do you listen the the band") and check results - */ +/*--- +info: > + An escape sequence of the form \ followed by a nonzero decimal number n + matches the result of the nth set of capturing parentheses (see + 15.10.2.11) +description: > + Execute /\b(\w+) \2\b/.test("do you listen the the band") and + check results +---*/ __executed = /\b(\w+) \2\b/.test("do you listen the the band"); @@ -14,5 +17,3 @@ __executed = /\b(\w+) \2\b/.test("do you listen the the band"); if (__executed) { $ERROR('#1: /\\b(\\w+) \\2\\b/.test("do you listen the the band") === false'); } - - diff --git a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T5.js b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T5.js index 074fb95bb..a2b2c62c9 100644 --- a/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_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. -/** - * An escape sequence of the form \ followed by a nonzero decimal number n matches the result of the nth set of capturing parentheses (see 15.10.2.11) - * - * @path ch15/15.10/15.10.2/15.10.2.9/S15.10.2.9_A1_T5.js - * @description Execute /(a*)b\1+/.exec("baaac") and check results - */ +/*--- +info: > + An escape sequence of the form \ followed by a nonzero decimal number n + matches the result of the nth set of capturing parentheses (see + 15.10.2.11) +description: Execute /(a*)b\1+/.exec("baaac") and check results +---*/ __executed = /(a*)b\1+/.exec("baaac"); @@ -35,5 +36,3 @@ for(var index=0; index<__expected.length; index++) { $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } - - diff --git a/test/suite/ch15/15.10/15.10.2/S15.10.2_A1_T1.js b/test/suite/ch15/15.10/15.10.2/S15.10.2_A1_T1.js index 9ba10e4b5..9e8e9e44b 100644 --- a/test/suite/ch15/15.10/15.10.2/S15.10.2_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.2/S15.10.2_A1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * XML Shallow Parsing with Regular Expressions - * - * @path ch15/15.10/15.10.2/S15.10.2_A1_T1.js - * @description See bug http://bugzilla.mozilla.org/show_bug.cgi?id=103087 - */ +/*--- +info: XML Shallow Parsing with Regular Expressions +description: "See bug http://bugzilla.mozilla.org/show_bug.cgi?id=103087" +---*/ // REX/Javascript 1.0 // Robert D. Cameron "REX: XML Shallow Parsing with Regular Expressions", @@ -85,5 +83,3 @@ try { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T1.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T1.js index de92630d4..3909047de 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then return R unchanged - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A1_T1.js - * @description R is /x/i and instance is RegExp(R) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is undefined, then return R unchanged +description: R is /x/i and instance is RegExp(R) +---*/ __re = /x/i; __instance = RegExp(__re); @@ -16,5 +16,3 @@ __re.indicator = 1; if (__instance.indicator !== 1) { $ERROR('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T2.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T2.js index 243ba2b5b..2cd3ca4e6 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then return R unchanged - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A1_T2.js - * @description R is new RegExp and instance is RegExp(R, function(){}()) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is undefined, then return R unchanged +description: R is new RegExp and instance is RegExp(R, function(){}()) +---*/ __re = new RegExp; __instance = RegExp(__re, function(){}()); @@ -16,4 +16,3 @@ __re.indicator = 1; if (__instance.indicator !== 1) { $ERROR('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T3.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T3.js index c61b7d466..c1c86e422 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T3.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then return R unchanged - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A1_T3.js - * @description R is new RegExp() and instance is RegExp(R, x), where x is undefined variable - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is undefined, then return R unchanged +description: > + R is new RegExp() and instance is RegExp(R, x), where x is + undefined variable +---*/ __re = new RegExp(); __instance = RegExp(__re, x); @@ -18,4 +20,3 @@ if (__instance.indicator !== 1) { } var x; - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T4.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T4.js index 3e2ccd992..c55b91d86 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then return R unchanged - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A1_T4.js - * @description R is new RegExp() and instance is RegExp(R, void 0) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is undefined, then return R unchanged +description: R is new RegExp() and instance is RegExp(R, void 0) +---*/ __re = RegExp(); __instance = RegExp(__re, void 0); @@ -16,5 +16,3 @@ __re.indicator = 1; if (__instance.indicator !== 1) { $ERROR('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T5.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T5.js index c22e2831a..e18775932 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A1_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then return R unchanged - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A1_T5.js - * @description R is /\b/m and instance is RegExp(R, undefined) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is undefined, then return R unchanged +description: R is /\b/m and instance is RegExp(R, undefined) +---*/ __re = /\b/m; __instance = RegExp(__re, undefined); @@ -16,5 +16,3 @@ __re.indicator = 1; if (__instance.indicator !== 1) { $ERROR('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T1.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T1.js index 6178e6834..2928b41ca 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T1.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is defined, then - * call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A2_T1.js - * @description Checking if using "1" as flags leads to throwing the correct exception - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is defined, then + call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor +description: > + Checking if using "1" as flags leads to throwing the correct + exception +---*/ //CHECK#1 try { @@ -17,5 +18,3 @@ try { $ERROR('#1.2: RegExp(new RegExp("\\d"), "1")) throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T2.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T2.js index 6ff551124..cbd3a6a58 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A2_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is defined, then - * call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A2_T2.js - * @description Checking if using dafined variable "x = 1" as flags leads to throwing the correct exception - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is defined, then + call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor +description: > + Checking if using dafined variable "x = 1" as flags leads to + throwing the correct exception +---*/ var x = 1; @@ -19,5 +20,3 @@ try { $ERROR('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T1.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T1.js index 6c40db075..ce193b129 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_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. -/** - * If pattern and flags are defined, then - * call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A3_T1.js - * @description R is "d+" and instance is RegExp(R,"i") - */ +/*--- +info: > + If pattern and flags are defined, then + call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor +description: R is "d+" and instance is RegExp(R,"i") +---*/ __re = "d+"; __instance = RegExp(__re, "i"); @@ -21,5 +20,3 @@ if (__instance.constructor !== RegExp) { if (__instance.source !== __re) { $ERROR('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: '+ (__instance.source)); } - - diff --git a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T2.js b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T2.js index 97330e7a6..5a7ca8646 100644 --- a/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.3/S15.10.3.1_A3_T2.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern and flags are defined, then - * call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor - * - * @path ch15/15.10/15.10.3/S15.10.3.1_A3_T2.js - * @description R is {toString:function(){return "[a-c]*";}} and instance is RegExp(R,"gm") - */ +/*--- +info: > + If pattern and flags are defined, then + call the RegExp constructor (15.10.4.1), passing it the pattern and flags arguments and return the object constructed by that constructor +description: > + R is {toString:function(){return "[a-c]*";}} and instance is + RegExp(R,"gm") +---*/ __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); @@ -20,5 +21,3 @@ if (__instance.constructor !== RegExp) { if (__instance.source !== "[a-c]*") { $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-1.js b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-1.js index c032e39dd..acae7e073 100644 --- a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-1.js +++ b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-1.js @@ -1,22 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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.4/15.10.4.1/15.10.4.1-1.js
- * @description RegExp - the thrown error is TypeError instead of RegExpError when pattern is an object whose [[Class]] property is 'RegExp' and flags is not undefined
- */
-
-
-function testcase() {
- var regObj = new RegExp();
- try {
- var regExpObj = new RegExp(regObj, true);
-
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp - the thrown error is TypeError instead of RegExpError when + pattern is an object whose [[Class]] property is 'RegExp' and + flags is not undefined +includes: [runTestCase.js] +---*/ + +function testcase() { + var regObj = new RegExp(); + try { + var regExpObj = new RegExp(regObj, true); + + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-2.js b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-2.js index 679a37af1..422d82b46 100644 --- a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-2.js +++ b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-2.js
- * @description RegExp - the thrown error is SyntaxError instead of RegExpError when the characters of 'P' do not have the syntactic form Pattern
- */
-
-
-function testcase() {
- try {
- var regExpObj = new RegExp('\\');
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - the thrown error is SyntaxError instead of RegExpError + when the characters of 'P' do not have the syntactic form Pattern +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExpObj = new RegExp('\\'); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-3.js b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-3.js index f300a4c6a..ecc4ab18f 100644 --- a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-3.js +++ b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-3.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-3.js
- * @description RegExp - the thrown error is SyntaxError instead of RegExpError when 'F' contains any character other than 'g', 'i', or 'm'
- */
-
-
-function testcase() {
- try {
- var regExpObj = new RegExp('abc', 'a');
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - the thrown error is SyntaxError instead of RegExpError + when 'F' contains any character other than 'g', 'i', or 'm' +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExpObj = new RegExp('abc', 'a'); + + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-4.js b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-4.js index 3638bf46d..450027c56 100644 --- a/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-4.js +++ b/test/suite/ch15/15.10/15.10.4/15.10.4.1/15.10.4.1-4.js @@ -1,21 +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.4/15.10.4.1/15.10.4.1-4.js
- * @description RegExp - the SyntaxError is not thrown when flags is 'gim'
- */
-
-
-function testcase() {
- try {
- var regExpObj = new RegExp('abc', 'gim');
-
- return true;
- } catch (e) {
- return false;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: RegExp - the SyntaxError is not thrown when flags is 'gim' +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var regExpObj = new RegExp('abc', 'gim'); + + return true; + } catch (e) { + return false; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T1.js index 27df5176d..5457cd556 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be - * the pattern used to construct R and let F be the flags used to construct R - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A1_T1.js - * @description Pattern is /./i and RegExp is new RegExp(pattern) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be + the pattern used to construct R and let F be the flags used to construct R +description: Pattern is /./i and RegExp is new RegExp(pattern) +---*/ __pattern = /./i; __re = new RegExp(__pattern); @@ -31,4 +30,3 @@ if (__re.global !== __pattern.global) { if (__re.ignoreCase !== __pattern.ignoreCase) { $ERROR('#4: __pattern = /./i; __re = new RegExp(__pattern); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T2.js index c884417e3..25f60323b 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be - * the pattern used to construct R and let F be the flags used to construct R - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A1_T2.js - * @description Pattern is /\t/m and RegExp is new RegExp(pattern,x), where x is undefined variable - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be + the pattern used to construct R and let F be the flags used to construct R +description: > + Pattern is /\t/m and RegExp is new RegExp(pattern,x), where x is + undefined variable +---*/ __pattern = /\t/m; __re = new RegExp(__pattern, x); @@ -33,4 +34,3 @@ if (__re.ignoreCase !== __pattern.ignoreCase) { } var x; - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T3.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T3.js index 1152a2dc2..03ef13f75 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T3.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be - * the pattern used to construct R and let F be the flags used to construct R - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A1_T3.js - * @description Pattern is /[a-b]/g and RegExp is new RegExp(pattern,void 0) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be + the pattern used to construct R and let F be the flags used to construct R +description: Pattern is /[a-b]/g and RegExp is new RegExp(pattern,void 0) +---*/ __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); @@ -31,6 +30,3 @@ if (__re.global !== __pattern.global) { if (__re.ignoreCase !== __pattern.ignoreCase) { $ERROR('#4: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } - - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T4.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T4.js index d65e854a2..a9ff58c70 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T4.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be - * the pattern used to construct R and let F be the flags used to construct R - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A1_T4.js - * @description Pattern is new RegExp and RegExp is new RegExp(pattern,undefined) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be + the pattern used to construct R and let F be the flags used to construct R +description: Pattern is new RegExp and RegExp is new RegExp(pattern,undefined) +---*/ __pattern = new RegExp; __re = new RegExp(__pattern, undefined); @@ -31,5 +30,3 @@ if (__re.global !== __pattern.global) { if (__re.ignoreCase !== __pattern.ignoreCase) { $ERROR('#4: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T5.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T5.js index 22cf93f82..c8bec01ba 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_T5.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A1_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. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be - * the pattern used to construct R and let F be the flags used to construct R - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A1_T5.js - * @description Pattern is RegExp("1?","mig") and RegExp is new RegExp(pattern,(function(){})()) - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags is undefined, then let P be + the pattern used to construct R and let F be the flags used to construct R +description: > + Pattern is RegExp("1?","mig") and RegExp is new + RegExp(pattern,(function(){})()) +---*/ __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); @@ -31,6 +32,3 @@ if (__re.global !== __pattern.global) { if (__re.ignoreCase !== __pattern.ignoreCase) { $ERROR('#4: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } - - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T1.js index 8d1ccd51e..7cc67143d 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is not undefined, then throw a TypeError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A2_T1.js - * @description Checking if execution of "new RegExp(pattern, "i")", where the pattern is "/\u0042/i", fails - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is not undefined, then throw a TypeError exception +description: > + Checking if execution of "new RegExp(pattern, "i")", where the + pattern is "/\u0042/i", fails +---*/ //CHECK#1 try { @@ -16,5 +18,3 @@ try { $ERROR('#1.2: new RegExp(/\\u0042/i, "i") throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T2.js index d75b93711..a94c2f7dd 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A2_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If pattern is an object R whose [[Class]] property is "RegExp" and flags is not undefined, then throw a TypeError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A2_T2.js - * @description Checking if execution of "new RegExp(pattern, {})", where the pattern is "/1?1/mig", fails - */ +/*--- +info: > + If pattern is an object R whose [[Class]] property is "RegExp" and flags + is not undefined, then throw a TypeError exception +description: > + Checking if execution of "new RegExp(pattern, {})", where the + pattern is "/1?1/mig", fails +---*/ //CHECK#1 try { @@ -16,5 +18,3 @@ try { $ERROR('#1.2: new RegExp(/1?1/mig, {}) throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T1.js index ccdf9419a..7bed9d4e2 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be the empty string if pattern is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A3_T1.js - * @description RegExp is new RegExp - */ +/*--- +info: let P be the empty string if pattern is undefined +description: RegExp is new RegExp +---*/ __re = new RegExp; @@ -24,6 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T2.js index 2a5825ee1..318d74c96 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be the empty string if pattern is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A3_T2.js - * @description RegExp is new RegExp(void 0) - */ +/*--- +info: let P be the empty string if pattern is undefined +description: RegExp is new RegExp(void 0) +---*/ __re = new RegExp(void 0); @@ -24,5 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp(void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T3.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T3.js index 73303a77e..c39852dec 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T3.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be the empty string if pattern is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A3_T3.js - * @description RegExp is new RegExp(x), where x is undefined variable - */ +/*--- +info: let P be the empty string if pattern is undefined +description: RegExp is new RegExp(x), where x is undefined variable +---*/ __re = new RegExp(x); @@ -26,5 +24,3 @@ if (__re.ignoreCase !== false) { } var x; - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T4.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T4.js index b3fdb9569..c064ee09c 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T4.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be the empty string if pattern is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A3_T4.js - * @description RegExp is new RegExp(undefined) - */ +/*--- +info: let P be the empty string if pattern is undefined +description: RegExp is new RegExp(undefined) +---*/ __re = new RegExp(undefined); @@ -24,4 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp(undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T5.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T5.js index f8772d933..a048774a2 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T5.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A3_T5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be the empty string if pattern is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A3_T5.js - * @description RegExp is new RegExp((function(){})()) - */ +/*--- +info: let P be the empty string if pattern is undefined +description: RegExp is new RegExp((function(){})()) +---*/ __re = new RegExp((function(){})()); @@ -24,5 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp((function(){})()); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T1.js index 180f27914..f5aa597ba 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let F be the empty string if flags is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A4_T1.js - * @description RegExp is new RegExp(undefined) - */ +/*--- +info: let F be the empty string if flags is undefined +description: RegExp is new RegExp(undefined) +---*/ __re = new RegExp(null, void 0); @@ -29,6 +27,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp(null, void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T2.js index f12dd1f98..e86372d5e 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let F be the empty string if flags is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A4_T2.js - * @description RegExp is new RegExp(undefined,undefined) - */ +/*--- +info: let F be the empty string if flags is undefined +description: RegExp is new RegExp(undefined,undefined) +---*/ __re = new RegExp(undefined, undefined); @@ -24,5 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp(undefined, undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T3.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T3.js index 450b10aff..ea851d44d 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T3.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let F be the empty string if flags is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A4_T3.js - * @description Use undefined properties of object as flags of RegExp - */ +/*--- +info: let F be the empty string if flags is undefined +description: Use undefined properties of object as flags of RegExp +---*/ __re = new RegExp({}.p, {}.q); @@ -24,5 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp({}.p, {}.q); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T4.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T4.js index 708757be5..9d2fe29c5 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T4.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let F be the empty string if flags is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A4_T4.js - * @description RegExp is new RegExp(null,void 0) - */ +/*--- +info: let F be the empty string if flags is undefined +description: RegExp is new RegExp(null,void 0) +---*/ __re = new RegExp(null, void 0); @@ -29,5 +27,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp(null, void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T5.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T5.js index ef04ca60e..4028b9f13 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T5.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A4_T5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let F be the empty string if flags is undefined - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A4_T5.js - * @description RegExp is new RegExp("",(function(){})()) - */ +/*--- +info: let F be the empty string if flags is undefined +description: RegExp is new RegExp("",(function(){})()) +---*/ __re = new RegExp("", (function(){})()); @@ -24,4 +22,3 @@ if (__re.global !== false) { if (__re.ignoreCase !== false) { $ERROR('#4: __re = new RegExp("", (function(){})()); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T1.js index 83601d375..c3fa16642 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T1.js - * @description Checking if using "ii" as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: Checking if using "ii" as F leads to throwing the correct exception +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T2.js index eadec7f4d..78322d4d0 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T2.js - * @description Checking if using "migg" as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: > + Checking if using "migg" as F leads to throwing the correct + exception +---*/ //CHECK#1 try { @@ -16,5 +18,3 @@ try { $ERROR('#1.2: new RegExp(null,"migg") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T3.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T3.js index c32865440..5fc170a3f 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T3.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_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. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T3.js - * @description Checking by using eval, try to use eval("\"migg\"") as F - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: Checking by using eval, try to use eval("\"migg\"") as F +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T4.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T4.js index 01176ab3a..7ca2a6b53 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T4.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_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. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T4.js - * @description Checking if using "z" as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: Checking if using "z" as F leads to throwing the correct exception +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T6.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T6.js index 6d472996a..765ad2035 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T6.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T6.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T6.js - * @description Checking if using "null" as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: > + Checking if using "null" as F leads to throwing the correct + exception +---*/ //CHECK#1 try { @@ -16,5 +18,3 @@ try { $ERROR('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T7.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T7.js index 2e1d7c66b..23ae5ec5b 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T7.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_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. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T7.js - * @description Checking if using 1.0 as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: Checking if using 1.0 as F leads to throwing the correct exception +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T8.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T8.js index 810e16806..7cb74c2cb 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T8.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T8.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T8.js - * @description Checking if using "true" as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: > + Checking if using "true" as F leads to throwing the correct + exception +---*/ //CHECK#1 try { @@ -16,5 +18,3 @@ try { $ERROR('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T9.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T9.js index e9d9eb60d..47566c338 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T9.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A5_T9.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A5_T9.js - * @description Checking if using "{toString:function(){}}" as F leads to throwing the correct exception - */ +/*--- +info: > + If F contains any character other than 'g', 'i', or 'm', or if it + contains the same one more than once, then throw a SyntaxError exception +description: > + Checking if using "{toString:function(){}}" as F leads to throwing + the correct exception +---*/ //CHECK#1 try { @@ -16,5 +18,3 @@ try { $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A6_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A6_T1.js index be360d42f..bdbf43372 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A6_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A6_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. -/** - * The [[Class]] property of the newly constructed object is set to "RegExp" - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A6_T1.js - * @description Checking [[Class]] property of the newly constructed object - */ +/*--- +info: The [[Class]] property of the newly constructed object is set to "RegExp" +description: Checking [[Class]] property of the newly constructed object +---*/ __re = new RegExp; __re.toString = Object.prototype.toString; @@ -15,5 +13,3 @@ __re.toString = Object.prototype.toString; if (__re.toString() !== "[object "+"RegExp"+"]") { $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString())); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T1.js index efed4fdb9..275e6ef01 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T1.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object is set to the original RegExp prototype object, the one that is the initial value of RegExp.prototype - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A7_T1.js - * @description Add new property to [[Prototype]] of REgExp and check this property of the newly constructed object - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object is set to the + original RegExp prototype object, the one that is the initial value of + RegExp.prototype +description: > + Add new property to [[Prototype]] of REgExp and check this + property of the newly constructed object +---*/ __re = new RegExp; RegExp.prototype.indicator = 1; @@ -15,5 +18,3 @@ RegExp.prototype.indicator = 1; if (__re.indicator !== 1) { $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator)); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T2.js index d042a7b8e..39d3ea274 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A7_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The [[Prototype]] property of the newly constructed object is set to the original RegExp prototype object, the one that is the initial value of RegExp.prototype - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A7_T2.js - * @description Checking [[Prototype]] property of the newly constructed object - */ +/*--- +info: > + The [[Prototype]] property of the newly constructed object is set to the + original RegExp prototype object, the one that is the initial value of + RegExp.prototype +description: Checking [[Prototype]] property of the newly constructed object +---*/ __re = new RegExp(); @@ -14,5 +15,3 @@ __re = new RegExp(); if (RegExp.prototype.isPrototypeOf(__re) !== true) { $ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re))); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T1.js index f2fd70c42..3452f87e8 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T1.js - * @description Pattern is "a|b" and flags is "i" - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: Pattern is "a|b" and flags is "i" +---*/ __re = new RegExp("a|b","i"); @@ -34,5 +32,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T10.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T10.js index 62eeb2a6e..e08a71582 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T10.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T10.js - * @description Pattern is true and flags is "m" - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: Pattern is true and flags is "m" +---*/ __re = new RegExp(true,"m"); @@ -34,5 +32,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T11.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T11.js index 7301cbc1d..be12222c5 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T11.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T11.js - * @description Checking by using eval, pattern is Math and flags is eval("\"g\"") - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: Checking by using eval, pattern is Math and flags is eval("\"g\"") +---*/ __re = new RegExp(Math,eval("\"g\"")); @@ -34,5 +32,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T12.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T12.js index c07817787..90c6e6709 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T12.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T12.js - * @description Pattern is "\u0042" and flags is {toString:void 0, valueOf:function(){throw "invalof";} } - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is "\u0042" and flags is {toString:void 0, + valueOf:function(){throw "invalof";} } +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T13.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T13.js index cf901852d..c05fa212f 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T13.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T13.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T13.js - * @description Pattern is "1" and flags is {toString:function(){throw "intostr";} } - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is "1" and flags is {toString:function(){throw "intostr";} + } +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T2.js index f6db4abd1..703b06033 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T2.js - * @description Pattern is function(){return "a|b|[]";}() and flags is "ig" - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: Pattern is function(){return "a|b|[]";}() and flags is "ig" +---*/ __re = new RegExp(function(){return "a|b|[]";}(),"ig"); @@ -34,5 +32,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T3.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T3.js index 722dfe59a..398afe9b7 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T3.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T3.js - * @description Pattern is {toString:function(){return "[0-9]";}} and flags is (function(){return "m";})() - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is {toString:function(){return "[0-9]";}} and flags is + (function(){return "m";})() +---*/ __re = new RegExp({toString:function(){return "[0-9]";}}, (function(){return "m";})()); @@ -34,5 +34,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T4.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T4.js index 1b2e10891..08c1e692e 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T4.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T4.js - * @description Pattern is {toString:void 0,valueOf:function(){return "[z-z]";}} and flags is {toString:void 0,valueOf:function(){return "mig";}} - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is {toString:void 0,valueOf:function(){return "[z-z]";}} + and flags is {toString:void 0,valueOf:function(){return "mig";}} +---*/ __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]";}}, {toString:void 0,valueOf:function(){return "mig";}}); @@ -34,5 +34,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T5.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T5.js index 47e842590..607f11982 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T5.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T5.js - * @description Pattern is new Object("abc{1}") and flags is {toString:function(){return "";}} - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is new Object("abc{1}") and flags is + {toString:function(){return "";}} +---*/ __re = new RegExp(new Object("abc{1}"), {toString:function(){return "";}}); @@ -34,5 +34,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T6.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T6.js index 3cec72fbc..9a4d2c9ec 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T6.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T6.js - * @description Pattern is {toString:function(){throw "intostr";} } and flags is "i" - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is {toString:function(){throw "intostr";} } and flags is + "i" +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T7.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T7.js index f68c0d54f..142e5c1bb 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T7.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T7.js - * @description Pattern is {toString:void 0, valueOf:function(){throw "invalof";} } and flags is "i" - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is {toString:void 0, valueOf:function(){throw "invalof";} + } and flags is "i" +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T8.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T8.js index bddac87b6..8dff8645c 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T8.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T8.js - * @description Pattern is {toString:function(){throw "intostr";} } and flags is "error" - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: > + Pattern is {toString:function(){throw "intostr";} } and flags is + "error" +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T9.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T9.js index 991118a4a..aab722a09 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_T9.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A8_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. -/** - * let P be ToString(pattern) and let F be ToString(flags) - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A8_T9.js - * @description Pattern is 1 and flags is new Object("gi") - */ +/*--- +info: let P be ToString(pattern) and let F be ToString(flags) +description: Pattern is 1 and flags is new Object("gi") +---*/ __re = new RegExp(1, new Object("gi")); @@ -34,5 +32,3 @@ if (__re.lastIndex !== 0) { if (typeof __re.source === "undefined") { $ERROR('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"'); } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T1.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T1.js index 92f5f8115..2baf8bbf0 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T1.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If P's characters do not have the form Pattern, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A9_T1.js - * @description Pattern is "??" - */ +/*--- +info: > + If P's characters do not have the form Pattern, then throw a SyntaxError + exception +description: Pattern is "??" +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T2.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T2.js index 978bfba3d..6033e83f6 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T2.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_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. -/** - * If P's characters do not have the form Pattern, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A9_T2.js - * @description Pattern is "[{-z]" - */ +/*--- +info: > + If P's characters do not have the form Pattern, then throw a SyntaxError + exception +description: Pattern is "[{-z]" +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T3.js b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T3.js index 685c0639e..22520ab5a 100644 --- a/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_T3.js +++ b/test/suite/ch15/15.10/15.10.4/S15.10.4.1_A9_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. -/** - * If P's characters do not have the form Pattern, then throw a SyntaxError exception - * - * @path ch15/15.10/15.10.4/S15.10.4.1_A9_T3.js - * @description Pattern is "[a--z]" - */ +/*--- +info: > + If P's characters do not have the form Pattern, then throw a SyntaxError + exception +description: Pattern is "[a--z]" +---*/ //CHECK#1 try { @@ -16,5 +16,3 @@ try { $ERROR('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A1.js b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A1.js index f646a39c0..54f7891db 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A1.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A1.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. -/** - * The RegExp has property prototype - * - * @path ch15/15.10/15.10.5/S15.10.5.1_A1.js - * @description Checking RegExp.prototype property - */ +/*--- +info: The RegExp has property prototype +description: Checking RegExp.prototype property +---*/ //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A2.js b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A2.js index 81df59391..d4525cfcf 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A2.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp.prototype property has the attribute DontEnum - * - * @path ch15/15.10/15.10.5/S15.10.5.1_A2.js - * @description Checking if enumerating the RegExp.prototype property fails - */ +/*--- +info: The RegExp.prototype property has the attribute DontEnum +description: Checking if enumerating the RegExp.prototype property fails +---*/ //CHECK#0 if (RegExp.hasOwnProperty('prototype') !== true) { @@ -27,5 +25,3 @@ for (p in RegExp){ if (count !== 0) { $ERROR('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count)); } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A3.js b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A3.js index da1e32470..8af7af311 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A3.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A3.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 property has the attribute DontDelete - * - * @path ch15/15.10/15.10.5/S15.10.5.1_A3.js - * @description Checking if deleting the RegExp.prototype property fails - */ +/*--- +info: The RegExp.prototype property has the attribute DontDelete +description: Checking if deleting the RegExp.prototype property fails +includes: [$FAIL.js] +---*/ //CHECK#0 if (RegExp.hasOwnProperty('prototype') !== true) { @@ -22,5 +21,3 @@ if (delete RegExp.prototype !== false) { if (RegExp.hasOwnProperty('prototype') !== true) { $ERROR('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A4.js b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A4.js index a1d9df93a..bc66d066b 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A4.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5.1_A4.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 property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.5/S15.10.5.1_A4.js - * @description Checking if varying the RegExp.prototype property fails - */ +/*--- +info: The RegExp.prototype property has the attribute ReadOnly +description: Checking if varying the RegExp.prototype property fails +includes: [$FAIL.js] +---*/ //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { @@ -21,5 +20,3 @@ RegExp.prototype = function(){return "shifted";}; if (RegExp.prototype !== __obj) { $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5_A1.js b/test/suite/ch15/15.10/15.10.5/S15.10.5_A1.js index 5e1baa28d..ca01a9da9 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5_A1.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5_A1.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 constructor has length property whose value is 2 - * - * @path ch15/15.10/15.10.5/S15.10.5_A1.js - * @description Checking RegExp.length property - */ +/*--- +info: RegExp constructor has length property whose value is 2 +description: Checking RegExp.length property +---*/ - //CHECK#1 +//CHECK#1 if (RegExp.length !== 2) { $ERROR('#1: RegExp.length === 2. Actual: ' + (RegExp.length)); } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T1.js b/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T1.js index 78ffce644..0c42036ce 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_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 constructor is the Function prototype object - * - * @path ch15/15.10/15.10.5/S15.10.5_A2_T1.js - * @description Checking Function.prototype.isPrototypeOf(RegExp) - */ - - //CHECK#1 +/*--- +info: > + The value of the internal [[Prototype]] property of the RegExp + constructor is the Function prototype object +description: Checking Function.prototype.isPrototypeOf(RegExp) +---*/ + +//CHECK#1 if (Function.prototype.isPrototypeOf(RegExp) !== true) { $ERROR('#1: Function.prototype.isPrototypeOf(RegExp) === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T2.js b/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T2.js index f07b34b75..a31c29a08 100644 --- a/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.5/S15.10.5_A2_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of the internal [[Prototype]] property of the RegExp constructor is the Function prototype object - * - * @path ch15/15.10/15.10.5/S15.10.5_A2_T2.js - * @description Add new property to Function.prototype and then check this property of RegExp - */ +/*--- +info: > + The value of the internal [[Prototype]] property of the RegExp + constructor is the Function prototype object +description: > + Add new property to Function.prototype and then check this + property of RegExp +---*/ Function.prototype.indicator = 1; @@ -14,5 +16,3 @@ Function.prototype.indicator = 1; if (RegExp.indicator !== 1) { $ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator)); } - - 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)); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-1.js b/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-1.js index 6d5d532ac..c7bc914d8 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-1.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-1.js
- * @description RegExp.prototype.source is of type String
- */
-
-
-function testcase() {
- return (typeof(RegExp.prototype.source)) === 'string';
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: RegExp.prototype.source is of type String +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof(RegExp.prototype.source)) === 'string'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-2.js b/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-2.js index c3203d3b4..de58f15cf 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-2.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.1/15.10.7.1-2.js
- * @description RegExp.prototype.source is a data property with default attribute values (false)
- */
-
-
-function testcase() {
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'source');
-
- if (d.writable === false &&
- d.enumerable === false &&
- d.configurable === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp.prototype.source is a data property with default attribute + values (false) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'source'); + + if (d.writable === false && + d.enumerable === false && + d.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A10.js b/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A10.js index 346a6b7c7..fcd0035b9 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A10.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_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 instance source property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A10.js - * @description Checking if varying the source property fails - */ +/*--- +info: The RegExp instance source property has the attribute ReadOnly +description: Checking if varying the source property fails +includes: [$FAIL.js] +---*/ __re = /./; @@ -23,5 +22,3 @@ __re.source = "shifted"; if (__re.source !== __obj) { $ERROR('#2: __re = /./; __obj = __re.source; __re.source = "shifted"; __re.source === __obj. Actual: ' + (__re.source)); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A8.js b/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A8.js index 56a8b048d..5d738b682 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A8.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance source property has the attribute DontEnum - * - * @path ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A8.js - * @description Checking if enumerating the source property of RegExp instance fails - */ +/*--- +info: The RegExp instance source property has the attribute DontEnum +description: > + Checking if enumerating the source property of RegExp instance + fails +includes: [$FAIL.js] +---*/ __re = new RegExp("[1-2]","i"); @@ -28,6 +29,4 @@ for (p in __re){ if (count !== 0) { $ERROR('#2: count = 0; __re = new RegExp("[1-2]","i"); for (p in __re){ if (p==="source") count++; } count === 0. Actual: ' + (count)); -} - - +} diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A9.js b/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A9.js index 086a41336..27e303ef5 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A9.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_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 instance source property has the attribute DontDelete - * - * @path ch15/15.10/15.10.7/15.10.7.1/S15.10.7.1_A9.js - * @description Checking if deleting the source property fails - */ +/*--- +info: The RegExp instance source property has the attribute DontDelete +description: Checking if deleting the source property fails +includes: [$FAIL.js] +---*/ __re = new RegExp; @@ -24,5 +23,3 @@ if ((delete __re.source) !== false) { if (__re.hasOwnProperty('source') !== true) { $ERROR('#2: __re = new RegExp;delete __re.source === true; __re.hasOwnProperty(\'source\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-1.js b/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-1.js index 16051f71d..b37256dbc 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-1.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-1.js
- * @description RegExp.prototype.global is of type Boolean
- */
-
-
-function testcase() {
- return (typeof(RegExp.prototype.global)) === 'boolean';
- }
-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.global is of type Boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof(RegExp.prototype.global)) === 'boolean'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-2.js b/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-2.js index e0855df0d..f1b5a918b 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-2.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.2/15.10.7.2-2.js
- * @description RegExp.prototype.global is a data property with default attribute values (false)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global');
-
- if (desc.writable === false &&
- desc.enumerable === false &&
- desc.configurable === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp.prototype.global is a data property with default attribute + values (false) +includes: [runTestCase.js] +---*/ + +function testcase() { + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global'); + + if (desc.writable === false && + desc.enumerable === false && + desc.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A10.js b/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A10.js index 22ffb66ff..300e1d781 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A10.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.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 instance global property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A10.js - * @description Checking if varying the global property fails - */ +/*--- +info: The RegExp instance global property has the attribute ReadOnly +description: Checking if varying the global property fails +includes: [$FAIL.js] +---*/ __re = /^|^/; @@ -23,5 +22,3 @@ __re.global = "shifted"; if (__re.global !== __obj) { $ERROR('#2: __re = /^|^/; __obj = __re.global; __re.global = "shifted"; __re.global === __obj. Actual: ' + (__re.global)); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A8.js b/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A8.js index 0c08304aa..d3ad4cf34 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A8.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance global property has the attribute DontEnum - * - * @path ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A8.js - * @description Checking if enumerating the global property of RegExp instance fails - */ +/*--- +info: The RegExp instance global property has the attribute DontEnum +description: > + Checking if enumerating the global property of RegExp instance + fails +includes: [$FAIL.js] +---*/ __re = new RegExp("[o-o]","m"); @@ -28,6 +29,4 @@ for (p in __re){ if (count !== 0) { $ERROR('#2: count = 0; __re = new RegExp("[o-o]","m"); for (p in __re){ if (p==="global") count++; } count === 0. Actual: ' + (count)); -} - - +} diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A9.js b/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A9.js index 91ad471d6..c13b35b5c 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A9.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_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 instance global property has the attribute DontDelete - * - * @path ch15/15.10/15.10.7/15.10.7.2/S15.10.7.2_A9.js - * @description Checking if deleting the global property fails - */ +/*--- +info: The RegExp instance global property has the attribute DontDelete +description: Checking if deleting the global property fails +includes: [$FAIL.js] +---*/ __re = new RegExp; @@ -24,5 +23,3 @@ if ((delete __re.global) !== false) { if (__re.hasOwnProperty('global') !== true) { $ERROR('#2: __re = new RegExp;delete __re.global === true; __re.hasOwnProperty(\'global\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js index daf56877d..ceec1b577 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-1.js
- * @description RegExp.prototype.ignoreCase is of type Boolean
- */
-
-
-function testcase() {
- return (typeof(RegExp.prototype.ignoreCase)) === 'boolean';
- }
-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.ignoreCase is of type Boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof(RegExp.prototype.ignoreCase)) === 'boolean'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js index 7bf678bfb..58698a971 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.3/15.10.7.3-2.js
- * @description RegExp.prototype.ignoreCase is a data property with default attribute values (false)
- */
-
-
-function testcase() {
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase');
-
- if (d.writable === false &&
- d.enumerable === false &&
- d.configurable === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp.prototype.ignoreCase is a data property with default + attribute values (false) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase'); + + if (d.writable === false && + d.enumerable === false && + d.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js index da394d9ff..9938c0ac5 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.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 instance ignoreCase property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A10.js - * @description Checking if varying the ignoreCase property fails - */ +/*--- +info: The RegExp instance ignoreCase property has the attribute ReadOnly +description: Checking if varying the ignoreCase property fails +includes: [$FAIL.js] +---*/ __re = /a|b|c/; @@ -23,5 +22,3 @@ __re.ignoreCase = "shifted"; if (__re.ignoreCase !== __obj) { $ERROR('#2: __re = /a|b|c/; __obj = __re.ignoreCase; __re.ignoreCase = "shifted"; __re.ignoreCase === __obj. Actual: ' + (__re.ignoreCase)); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js index be28f3197..675cd4c4d 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance ignoreCase property has the attribute DontEnum - * - * @path ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A8.js - * @description Checking if enumerating the ignoreCase property of RegExp instance fails - */ +/*--- +info: The RegExp instance ignoreCase property has the attribute DontEnum +description: > + Checking if enumerating the ignoreCase property of RegExp instance + fails +includes: [$FAIL.js] +---*/ __re = new RegExp("[|||||||]",""); @@ -28,5 +29,4 @@ for (p in __re){ if (count !== 0) { $ERROR('#2: count = 0; __re = new RegExp("[|||||||]",""); for (p in __re){ if (p==="ignoreCase") count++; } count === 0. Actual: ' + (count)); -} - +} diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js index 28f85198d..d6a14a432 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.3/S15.10.7.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 instance ignoreCase property has the attribute DontDelete - * - * @path ch15/15.10/15.10.7/15.10.7.3/S15.10.7.3_A9.js - * @description Checking if deleting the ignoreCase property fails - */ +/*--- +info: The RegExp instance ignoreCase property has the attribute DontDelete +description: Checking if deleting the ignoreCase property fails +includes: [$FAIL.js] +---*/ __re = new RegExp; @@ -24,7 +23,3 @@ if ((delete __re.ignoreCase) !== false) { if (__re.hasOwnProperty('ignoreCase') !== true) { $ERROR('#2: __re = new RegExp;delete __re.ignoreCase === true; __re.hasOwnProperty(\'ignoreCase\') === true'); } - - - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-1.js b/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-1.js index b55fdc583..27f81b956 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-1.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-1.js
- * @description RegExp.prototype.multiline is of type Boolean
- */
-
-
-function testcase() {
- return (typeof(RegExp.prototype.multiline)) === 'boolean';
- }
-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.multiline is of type Boolean +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof(RegExp.prototype.multiline)) === 'boolean'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-2.js b/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-2.js index 7c34aa1d7..67cafe728 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-2.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.4/15.10.7.4-2.js
- * @description RegExp.prototype.multiline is a data property with default attribute values (false)
- */
-
-
-function testcase() {
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline');
-
- if (d.writable === false &&
- d.enumerable === false &&
- d.configurable === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp.prototype.multiline is a data property with default + attribute values (false) +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline'); + + if (d.writable === false && + d.enumerable === false && + d.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A10.js b/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A10.js index 51b4435da..9d026df9e 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A10.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_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 instance multiline property has the attribute ReadOnly - * - * @path ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A10.js - * @description Checking if varying the multiline property fails - */ +/*--- +info: The RegExp instance multiline property has the attribute ReadOnly +description: Checking if varying the multiline property fails +includes: [$FAIL.js] +---*/ __re = /\n/; @@ -23,5 +22,3 @@ __re.multiline = "shifted"; if (__re.multiline !== __obj) { $ERROR('#2: __re = /\\n/; __obj = __re.multiline; __re.multiline = "shifted"; __re.multiline === __obj. Actual: ' + (__re.multiline)); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A8.js b/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A8.js index f3301c89c..275fcc76f 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A8.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance multiline property has the attribute DontEnum - * - * @path ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A8.js - * @description Checking if enumerating the multiline property of RegExp instance fails - */ +/*--- +info: The RegExp instance multiline property has the attribute DontEnum +description: > + Checking if enumerating the multiline property of RegExp instance + fails +includes: [$FAIL.js] +---*/ __re = new RegExp("[\u0041-\u0049]"); @@ -28,5 +29,4 @@ for (p in __re){ if (count !== 0) { $ERROR('#2: count = 0; __re = new RegExp("[\\u0041-\\u0049]"); for (p in __re){ if (p==="multiline") count++; } count === 0. Actual: ' + (count)); -} - +} diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A9.js b/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A9.js index 13a045a06..190883c76 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A9.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_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 instance multiline property has the attribute DontDelete - * - * @path ch15/15.10/15.10.7/15.10.7.4/S15.10.7.4_A9.js - * @description Checking if deleting the multiline property fails - */ +/*--- +info: The RegExp instance multiline property has the attribute DontDelete +description: Checking if deleting the multiline property fails +includes: [$FAIL.js] +---*/ __re = new RegExp; @@ -24,5 +23,3 @@ if ((delete __re.multiline) !== false) { if (__re.hasOwnProperty('multiline') !== true) { $ERROR('#2: __re = new RegExp;delete __re.multiline === true; __re.hasOwnProperty(\'multiline\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-1.js b/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-1.js index 0d00243cc..a74dc090e 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-1.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-1.js @@ -1,15 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-1.js
- * @description RegExp.prototype.lastIndex is of type Number
- */
-
-
-function testcase() {
- return (typeof(RegExp.prototype.lastIndex)) === 'number';
- }
-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.lastIndex is of type Number +includes: [runTestCase.js] +---*/ + +function testcase() { + return (typeof(RegExp.prototype.lastIndex)) === 'number'; + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-2.js b/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-2.js index e7c88868e..6ecb66bc2 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-2.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-2.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.10/15.10.7/15.10.7.5/15.10.7.5-2.js
- * @description RegExp.prototype.lastIndex is a data property with specified attribute values
- */
-
-
-function testcase() {
- var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'lastIndex');
-
- if (d.writable === true &&
- d.enumerable === false &&
- d.configurable === false) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + RegExp.prototype.lastIndex is a data property with specified + attribute values +includes: [runTestCase.js] +---*/ + +function testcase() { + var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'lastIndex'); + + if (d.writable === true && + d.enumerable === false && + d.configurable === false) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A8.js b/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A8.js index c2213511b..69a57cde2 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A8.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The RegExp instance lastIndex property has the attribute DontEnum - * - * @path ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A8.js - * @description Checking if enumerating the lastIndex property of RegExp instance fails - */ +/*--- +info: The RegExp instance lastIndex property has the attribute DontEnum +description: > + Checking if enumerating the lastIndex property of RegExp instance + fails +includes: [$FAIL.js] +---*/ __re = new RegExp("A?B"); @@ -28,5 +29,4 @@ for (p in __re){ if (count !== 0) { $ERROR('#2: count = 0; __re = new RegExp("A?B"); for (p in __re){ if (p==="lastIndex") count++; } count === 0. Actual: ' + (count)); -} - +} diff --git a/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A9.js b/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A9.js index 0150240ce..e0337ff60 100644 --- a/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A9.js +++ b/test/suite/ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_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 instance lastIndex property has the attribute DontDelete - * - * @path ch15/15.10/15.10.7/15.10.7.5/S15.10.7.5_A9.js - * @description Checking if deleting the lastIndex property fails - */ +/*--- +info: The RegExp instance lastIndex property has the attribute DontDelete +description: Checking if deleting the lastIndex property fails +includes: [$FAIL.js] +---*/ __re = new RegExp; @@ -24,5 +23,3 @@ if ((delete __re.lastIndex) !== false) { if (__re.hasOwnProperty('lastIndex') !== true) { $ERROR('#2: __re = new RegExp;delete __re.lastIndex === true; __re.hasOwnProperty(\'lastIndex\') === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T1.js b/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T1.js index 7153f569f..e936fcc1a 100644 --- a/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T1.js +++ b/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp instance has not [[call]] property - * - * @path ch15/15.10/15.10.7/S15.10.7_A1_T1.js - * @description Checking if call of RegExp instance fails - */ +/*--- +info: RegExp instance has not [[call]] property +description: Checking if call of RegExp instance fails +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T2.js b/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T2.js index 29b687f5c..97c81d329 100644 --- a/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T2.js +++ b/test/suite/ch15/15.10/15.10.7/S15.10.7_A1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp instance has not [[call]] property - * - * @path ch15/15.10/15.10.7/S15.10.7_A1_T2.js - * @description Checking if call of RegExp("a|b","g")() fails - */ +/*--- +info: RegExp instance has not [[call]] property +description: Checking if call of RegExp("a|b","g")() fails +---*/ //CHECK#1 try { @@ -16,6 +14,3 @@ try { $ERROR('#1.2: RegExp("a|b","g")() throw TypeError. Actual: ' + (e)); } } - - - diff --git a/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T1.js b/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T1.js index 357fd953f..1144bf86e 100644 --- a/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T1.js +++ b/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp instance has not [[construct]] property - * - * @path ch15/15.10/15.10.7/S15.10.7_A2_T1.js - * @description Checking if creating new RegExp instance fails - */ +/*--- +info: RegExp instance has not [[construct]] property +description: Checking if creating new RegExp instance fails +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new /z/() throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T2.js b/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T2.js index fd7df6512..0bf9401ec 100644 --- a/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T2.js +++ b/test/suite/ch15/15.10/15.10.7/S15.10.7_A2_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegExp instance has not [[construct]] property - * - * @path ch15/15.10/15.10.7/S15.10.7_A2_T2.js - * @description Checking if creating "new RegExp" instance fails - */ +/*--- +info: RegExp instance has not [[construct]] property +description: Checking if creating "new RegExp" instance fails +---*/ //CHECK#1 try { @@ -16,5 +14,3 @@ try { $ERROR('#1.2: new new RegExp throw TypeError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_T1.js b/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_T1.js index 25ce3575f..47257c4cc 100644 --- a/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_T1.js +++ b/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_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 instance type is RegExp - * - * @path ch15/15.10/15.10.7/S15.10.7_A3_T1.js - * @description Checking type of RegExp instance with operators typeof, instanceof and check it constructor. - * RegExp instance is /[^a]* / - */ +/*--- +info: RegExp instance type is RegExp +description: > + Checking type of RegExp instance with operators typeof, instanceof + and check it constructor. RegExp instance is /[^a]* / +---*/ __re = /[^a]*/; @@ -25,5 +24,3 @@ if (__re.constructor !== RegExp) { if ((__re instanceof RegExp) !== true) { $ERROR('#3: __re = /[^a]*/; (__re instanceof RegExp) === true'); } - - diff --git a/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_T2.js b/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_T2.js index 5b1d51d09..82e3473f9 100644 --- a/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_T2.js +++ b/test/suite/ch15/15.10/15.10.7/S15.10.7_A3_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 instance type is RegExp - * - * @path ch15/15.10/15.10.7/S15.10.7_A3_T2.js - * @description Checking type of RegExp instance with operators typeof, instanceof and check it constructor. - * RegExp instance is new RegExp - */ +/*--- +info: RegExp instance type is RegExp +description: > + Checking type of RegExp instance with operators typeof, instanceof + and check it constructor. RegExp instance is new RegExp +---*/ __re = new RegExp; @@ -25,5 +24,3 @@ if (__re.constructor !== RegExp) { if ((__re instanceof RegExp) !== true) { $ERROR('#3: __re = new RegExp; (__re instanceof RegExp) === true'); } - - |