diff options
Diffstat (limited to 'test/suite/ch07/7.8/7.8.5')
52 files changed, 312 insertions, 440 deletions
diff --git a/test/suite/ch07/7.8/7.8.5/7.8.5-1.js b/test/suite/ch07/7.8/7.8.5/7.8.5-1.js index a8fe6e29f..3df19ac0c 100644 --- a/test/suite/ch07/7.8/7.8.5/7.8.5-1.js +++ b/test/suite/ch07/7.8/7.8.5/7.8.5-1.js @@ -1,14 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved. -/// Ecma International makes this code available under the terms and conditions set -/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the -/// "Use Terms"). Any redistribution of this code must retain the above -/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch07/7.8/7.8.5/7.8.5-1.js
- * @description Literal RegExp Objects - SyntaxError exception is thrown if the RegularExpressionNonTerminator position of a RegularExpressionBackslashSequence is a LineTerminator.
- */
-
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: > + Literal RegExp Objects - SyntaxError exception is thrown if the + RegularExpressionNonTerminator position of a + RegularExpressionBackslashSequence is a LineTerminator. +includes: [runTestCase.js] +---*/ + function testcase() {
try {
eval("var regExp = /\\\rn/;");
@@ -17,4 +20,4 @@ function testcase() { return e instanceof SyntaxError;
}
}
-runTestCase(testcase);
+runTestCase(testcase); diff --git a/test/suite/ch07/7.8/7.8.5/7.8.5-1gs.js b/test/suite/ch07/7.8/7.8.5/7.8.5-1gs.js index 4b22a6193..b16359ea1 100644 --- a/test/suite/ch07/7.8/7.8.5/7.8.5-1gs.js +++ b/test/suite/ch07/7.8/7.8.5/7.8.5-1gs.js @@ -1,15 +1,13 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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 ch07/7.8/7.8.5/7.8.5-1gs.js
- * @description Empty literal RegExp should result in a SyntaxError
- * @negative ^((?!NotEarlyError).)*$
- */
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: Empty literal RegExp should result in a SyntaxError +negative: ^((?!NotEarlyError).)*$ +---*/ + throw NotEarlyError;
-var re = //;
-
+var re = //; diff --git a/test/suite/ch07/7.8/7.8.5/7.8.5-2gs.js b/test/suite/ch07/7.8/7.8.5/7.8.5-2gs.js index b67638b03..2e3c50b9e 100644 --- a/test/suite/ch07/7.8/7.8.5/7.8.5-2gs.js +++ b/test/suite/ch07/7.8/7.8.5/7.8.5-2gs.js @@ -1,13 +1,11 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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 ch07/7.8/7.8.5/7.8.5-2gs.js
- * @description Empty dynamic RegExp should not result in a SyntaxError
- */
-
-var re = new RegExp("");
-
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/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: Empty dynamic RegExp should not result in a SyntaxError +---*/ + +var re = new RegExp(""); diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js index 638177170..ae66a53bf 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_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. -/** - * RegularExpressionFirstChar :: NonTerminator but not * or \ or /, - * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.1_T1.js - * @description Without eval - */ +/*--- +info: > + RegularExpressionFirstChar :: NonTerminator but not * or \ or /, + RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] +description: Without eval +---*/ //CHECK#1 if (/1/.source !== "1") { @@ -32,5 +31,4 @@ if (/ /.source !== " ") { //CHECK#5 if (/\u0041/.source !== "\\u0041") { $ERROR('#5: /\\u0041/'); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js index e46d2e24d..a4f8776fc 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.1_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. -/** - * RegularExpressionFirstChar :: NonTerminator but not * or \ or /, - * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.1_T2.js - * @description Complex test with eval, using syntax pattern - */ +/*--- +info: > + RegularExpressionFirstChar :: NonTerminator but not * or \ or /, + RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] +description: Complex test with eval, using syntax pattern +---*/ //CHECK var errorCount = 0; @@ -52,4 +51,3 @@ for (var i1 = 0; i1 < 16; i1++) { if (errorCount > 0) { $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); } - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js index d7013d049..9505c36e3 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T1.js - * @description * - * @negative - */ +/*--- +info: "RegularExpressionFirstChar :: * or \\ or / or [empty] is incorrect" +description: "*" +flags: [negative] +---*/ //CHECK#1 /*/ - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js index b050d8c53..2fe0f7be2 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js - * @description \ - * @negative - */ +/*--- +info: "RegularExpressionFirstChar :: * or \\ or / or [empty] is incorrect" +description: \ +flags: [negative] +---*/ //CHECK#1 /\/ - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js index abd943bac..be4343bb7 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T3.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. -/** - * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T3.js - * @description / - * @negative - */ +/*--- +info: "RegularExpressionFirstChar :: * or \\ or / or [empty] is incorrect" +description: / +flags: [negative] +---*/ //CHECK#1 /// .source; - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js index 6d341f991..311736dba 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T4.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. -/** - * RegularExpressionFirstChar :: * or \ or / or [empty] is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.2_T4.js - * @description [empty] - * @negative - */ +/*--- +info: "RegularExpressionFirstChar :: * or \\ or / or [empty] is incorrect" +description: "[empty]" +flags: [negative] +---*/ //CHECK#1 // .source; - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js index 4fdba3e4c..2a051648d 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.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. -/** - * RegularExpressionFirstChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js - * @description Line Feed, without eval - * @negative - */ +/*--- +info: "RegularExpressionFirstChar :: LineTerminator is incorrect" +description: Line Feed, without eval +flags: [negative] +---*/ //CHECK#1 / / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js index a2ac51235..3590f5153 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_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. -/** - * RegularExpressionFirstChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T2.js - * @description Line Feed, with eval - */ +/*--- +info: "RegularExpressionFirstChar :: LineTerminator is incorrect" +description: Line Feed, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: Line Feed is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js index 95d7ebcd6..e4ae042a1 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.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. -/** - * RegularExpressionFirstChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js - * @description Carriage Return, without eval - * @negative - */ +/*--- +info: "RegularExpressionFirstChar :: LineTerminator is incorrect" +description: Carriage Return, without eval +flags: [negative] +---*/ //CHECK#1 / / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js index 638eecf69..98f3779f9 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_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. -/** - * RegularExpressionFirstChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T4.js - * @description Carriage Return, with eval - */ +/*--- +info: "RegularExpressionFirstChar :: LineTerminator is incorrect" +description: Carriage Return, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: Carriage Return is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js index c621df543..9ca16eccd 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_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. -/** - * RegularExpressionFirstChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T5.js - * @description Line separator, with eval - */ +/*--- +info: "RegularExpressionFirstChar :: LineTerminator is incorrect" +description: Line separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: Line separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js index 1ad88db22..2abcf2a17 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_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. -/** - * RegularExpressionFirstChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.3_T6.js - * @description Paragraph separator, with eval - */ +/*--- +info: "RegularExpressionFirstChar :: LineTerminator is incorrect" +description: Paragraph separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: Paragraph separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js index 0c87e0b3d..024da52bd 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_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. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \NonTerminator, - * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js - * @description Check similar to (/\1/.source === "\\1") - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \NonTerminator, + RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] +description: Check similar to (/\1/.source === "\\1") +---*/ //CHECK#1 if (/\1/.source !== "\\1") { @@ -27,5 +26,4 @@ if (/\;/.source !== "\\;") { //CHECK#4 if (/\ /.source !== "\\ ") { $ERROR('#4: /\\ /'); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js index f17d8332a..3f9950cbb 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.4_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. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \NonTerminator, - * RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js - * @description Complex test with eval, using syntax pattern - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \NonTerminator, + RegularExpressionChars :: [empty], RegularExpressionFlags :: [empty] +description: Complex test with eval, using syntax pattern +---*/ //CHECK var errorCount = 0; @@ -52,4 +51,3 @@ for (var i1 = 0; i1 < 16; i1++) { if (errorCount > 0) { $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); } - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js index 94a9734d0..a91e1ac83 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js - * @description Line Feed, without eval - * @negative - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is + incorrect +description: Line Feed, without eval +flags: [negative] +---*/ //CHECK#1 /\ / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js index 923e3f737..fdd446580 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_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. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T2.js - * @description Line Feed, with eval - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is + incorrect +description: Line Feed, with eval +---*/ //CHECK#1 try { @@ -17,5 +17,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js index 3c349c10b..edaee4833 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js - * @description Carriage Return, without eval - * @negative - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is + incorrect +description: Carriage Return, without eval +flags: [negative] +---*/ //CHECK#1 /\ / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js index e5b89920a..d660e5569 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_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. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T4.js - * @description Carriage Return, with eval - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is + incorrect +description: Carriage Return, with eval +---*/ //CHECK#1 try { @@ -17,5 +17,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Carriage Return is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js index a9b6d9696..ac2c01a36 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_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. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T5.js - * @description Line separator, with eval - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is + incorrect +description: Line separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +17,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Line separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js index 73345ed41..b040fede4 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_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. -/** - * RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A1.5_T6.js - * @description Paragraph separator, with eval - */ +/*--- +info: > + RegularExpressionFirstChar :: BackslashSequence :: \LineTerminator is + incorrect +description: Paragraph separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +17,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Paragraph separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js index 5b69da20d..41e6f4443 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.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. -/** - * RegularExpressionChar :: NonTerminator but not \ or /, - * RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.1_T1.js - * @description Without eval - */ +/*--- +info: > + RegularExpressionChar :: NonTerminator but not \ or /, + RegularExpressionFlags :: [empty] +description: Without eval +---*/ //CHECK#1 if (/1a/.source !== "1a") { @@ -32,5 +31,4 @@ if (/ /.source !== " ") { //CHECK#5 if (/a\u0041/.source !== "a\\u0041") { $ERROR('#5: /a\\u0041/'); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js index b8e66b23e..df80355b3 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.1_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. -/** - * RegularExpressionChar :: NonTerminator but not \ or /, - * RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.1_T2.js - * @description Complex test with eval, using syntax pattern - */ +/*--- +info: > + RegularExpressionChar :: NonTerminator but not \ or /, + RegularExpressionFlags :: [empty] +description: Complex test with eval, using syntax pattern +---*/ //CHECK var errorCount = 0; @@ -53,4 +52,3 @@ for (var i1 = 0; i1 < 16; i1++) { if (errorCount > 0) { $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); } - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js index 8231c0407..25de1eb9e 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegularExpressionChar :: \ or / is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js - * @description \ - * @negative - */ +/*--- +info: "RegularExpressionChar :: \\ or / is incorrect" +description: \ +flags: [negative] +---*/ //CHECK#1 /a\/ - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js index b80f21691..32786590e 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * RegularExpressionChar :: \ or / is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.2_T2.js - * @description / - * @negative - */ +/*--- +info: "RegularExpressionChar :: \\ or / is incorrect" +description: / +flags: [negative] +---*/ //CHECK#1 /a//.source; - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js index fd42341e0..397807e54 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.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. -/** - * RegularExpressionChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js - * @description Line Feed, without eval - * @negative - */ +/*--- +info: "RegularExpressionChar :: LineTerminator is incorrect" +description: Line Feed, without eval +flags: [negative] +---*/ //CHECK#1 /a / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js index 8f3523088..fa5c5fb46 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_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. -/** - * RegularExpressionChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T2.js - * @description Line Feed, with eval - */ +/*--- +info: "RegularExpressionChar :: LineTerminator is incorrect" +description: Line Feed, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: Line Feed is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js index c9debb5c5..ecea8defe 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.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. -/** - * RegularExpressionChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js - * @description Carriage Return, without eval - * @negative - */ +/*--- +info: "RegularExpressionChar :: LineTerminator is incorrect" +description: Carriage Return, without eval +flags: [negative] +---*/ //CHECK#1 /a / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js index 4c2dda384..198c0ecb6 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_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. -/** - * RegularExpressionChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T4.js - * @description Carriage Return, with eval - */ +/*--- +info: "RegularExpressionChar :: LineTerminator is incorrect" +description: Carriage Return, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: Carriage Retur is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js index 85d43801f..8092ec0c1 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_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. -/** - * RegularExpressionChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T5.js - * @description Line separator, with eval - */ +/*--- +info: "RegularExpressionChar :: LineTerminator is incorrect" +description: Line separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: Line separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js index abf9833c5..c0e5b90ab 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_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. -/** - * RegularExpressionChar :: LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.3_T6.js - * @description Paragraph separator, with eval - */ +/*--- +info: "RegularExpressionChar :: LineTerminator is incorrect" +description: Paragraph separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: Paragraph separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js index 8a67dc42a..f253c89ff 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.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. -/** - * RegularExpressionChar :: BackslashSequence :: \NonTerminator, - * RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js - * @description Check similar to (/a\1/.source === "a\\1") - */ +/*--- +info: > + RegularExpressionChar :: BackslashSequence :: \NonTerminator, + RegularExpressionFlags :: [empty] +description: Check similar to (/a\1/.source === "a\\1") +---*/ //CHECK#1 if (/a\1/.source !== "a\\1") { @@ -27,5 +26,4 @@ if (/,\;/.source !== ",\\;") { //CHECK#4 if (/ \ /.source !== " \\ ") { $ERROR('#4: / \\ /'); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js index fa26a976b..8991d25fb 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.4_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. -/** - * RegularExpressionChar :: BackslashSequence :: \NonTerminator, - * RegularExpressionFlags :: [empty] - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js - * @description Complex test with eval, using syntax pattern - */ +/*--- +info: > + RegularExpressionChar :: BackslashSequence :: \NonTerminator, + RegularExpressionFlags :: [empty] +description: Complex test with eval, using syntax pattern +---*/ //CHECK var errorCount = 0; @@ -52,4 +51,3 @@ for (var i1 = 0; i1 < 16; i1++) { if (errorCount > 0) { $ERROR('Total error: ' + errorCount + ' bad Regular Expression First Char in ' + count); } - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js index a3d5e5b4e..c039a3644 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.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. -/** - * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js - * @description Line Feed, without eval - * @negative - */ +/*--- +info: "RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect" +description: Line Feed, without eval +flags: [negative] +---*/ //CHECK#1 /a\ / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js index 685ada093..9d315b4c4 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_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. -/** - * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T2.js - * @description Line Feed, with eval - */ +/*--- +info: "RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect" +description: Line Feed, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js index e85821870..bb25b8d66 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.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. -/** - * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js - * @description Carriage Return, without eval - * @negative - */ +/*--- +info: "RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect" +description: Carriage Return, without eval +flags: [negative] +---*/ //CHECK#1 /a\ / - diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js index 5cdea0817..ddda14f2e 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_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. -/** - * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T4.js - * @description Carriage Return, with eval - */ +/*--- +info: "RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect" +description: Carriage Return, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Carriage Return is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js index acc1f3080..3d3db241b 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_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. -/** - * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T5.js - * @description Line separator, with eval - */ +/*--- +info: "RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect" +description: Line separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Line separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js index d33041021..4cde7f93a 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_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. -/** - * RegularExpressionChar :: BackslashSequence :: \LineTerminator is incorrect - * - * @path ch07/7.8/7.8.5/S7.8.5_A2.5_T6.js - * @description Paragraph separator, with eval - */ +/*--- +info: "RegularExpressionChar :: BackslashSequence :: \\LineTerminator is incorrect" +description: Paragraph separator, with eval +---*/ //CHECK#1 try { @@ -17,5 +15,4 @@ catch (e) { if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: RegularExpressionChar :: BackslashSequence :: \\Paragraph separator is incorrect. Actual: ' + (e)); } -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js index 14ea4d7ea..e5dcfad31 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T1.js - * @description IdentifierPart :: g - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: g" +---*/ //CHECK#1 var regexp = /(?:)/g; @@ -22,5 +20,4 @@ if (regexp.ignoreCase !== false) { //CHECK#3 if (regexp.multiline !== false) { $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js index f247140d2..fd0229e7c 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T2.js - * @description IdentifierPart :: i - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: i" +---*/ //CHECK#1 var regexp = /(?:)/i; @@ -22,5 +20,4 @@ if (regexp.ignoreCase !== true) { //CHECK#3 if (regexp.multiline !== false) { $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js index 4f0e6f14d..afc1e93e6 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js - * @description IdentifierPart :: m - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: m" +---*/ //CHECK#1 var regexp = /(?:)/m; @@ -22,5 +20,4 @@ if (regexp.ignoreCase !== false) { //CHECK#3 if (regexp.multiline !== true) { $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js index fd56ca01c..66b212213 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T4.js - * @description IdentifierPart :: gi - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: gi" +---*/ //CHECK#1 var regexp = /(?:)/gi; @@ -22,5 +20,4 @@ if (regexp.ignoreCase !== true) { //CHECK#3 if (regexp.multiline !== false) { $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js index 3b45a94ca..494c39042 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T5.js - * @description IdentifierPart :: mg - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: mg" +---*/ //CHECK#1 var regexp = /(?:)/mg; @@ -22,5 +20,4 @@ if (regexp.ignoreCase !== false) { //CHECK#3 if (regexp.multiline !== true) { $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js index fb188ed6c..667fa1e79 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T6.js - * @description IdentifierPart :: mig - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: mig" +---*/ //CHECK#1 var regexp = /(?:)/mig; @@ -22,5 +20,4 @@ if (regexp.ignoreCase !== true) { //CHECK#3 if (regexp.multiline !== true) { $ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js index 299241d4c..5305b6be7 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T7.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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T7.js - * @description IdentifierPart :: \u0067 (g) - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: \\u0067 (g)" +---*/ //CHECK#1 var regexp; eval("regexp = /(?:)/\u0067"); if (regexp.global !== true) { $ERROR('#1: var regexp = /(?:)/\\u0067; regexp.global === true. Actual: ' + (regexp.global)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js index de78b6f23..b81c9d2d1 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T8.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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T8.js - * @description IdentifierPart :: \u0069 (i) - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: \\u0069 (i)" +---*/ //CHECK#1 var regexp; eval("regexp = /(?:)/\u0069"); if (regexp.ignoreCase !== true) { $ERROR('#1: var regexp = /(?:)/\\u0069; regexp.ignoreCase === true. Actual: ' + (regexp.ignoreCase)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js index 132586af4..721a1b07b 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A3.1_T9.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. -/** - * RegularExpressionFlags :: IdentifierPart - * - * @path ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js - * @description IdentifierPart :: \u006D (m) - */ +/*--- +info: "RegularExpressionFlags :: IdentifierPart" +description: "IdentifierPart :: \\u006D (m)" +---*/ //CHECK#1 var regexp; eval("regexp = /(?:)/\u006D"); if (regexp.multiline !== true) { $ERROR('#1: var regexp = /(?:)/\\u006D; regexp.multiline === true. Actual: ' + (regexp.multiline)); -} - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.1.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.1.js index d8f33d67d..b199708d5 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.1.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.1.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. -/** - * A regular expression literal is an input element that is converted to - * a RegExp object when it is scanned - * - * @path ch07/7.8/7.8.5/S7.8.5_A4.1.js - * @description Check ((/(?:)/ instanceof RegExp) === true) - */ +/*--- +info: > + A regular expression literal is an input element that is converted to + a RegExp object when it is scanned +description: "Check ((/(?:)/ instanceof RegExp) === true)" +---*/ //CHECK#1 if ((/(?:)/ instanceof RegExp) !== true) { $ERROR('#1: (/(?:)/ instanceof RegExp) === true. Actual: ' + ((/(?:)/ instanceof RegExp))); -} - - +} diff --git a/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.2.js b/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.2.js index 569e4cbd2..660dad8fa 100644 --- a/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.2.js +++ b/test/suite/ch07/7.8/7.8.5/S7.8.5_A4.2.js @@ -1,20 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Two regular expression literals in a program evaluate to - * regular expression objects that never compare as === to each other even - * if the two literals' contents are identical - * - * @path ch07/7.8/7.8.5/S7.8.5_A4.2.js - * @description Check equality two regular expression literals - */ +/*--- +info: > + Two regular expression literals in a program evaluate to + regular expression objects that never compare as === to each other even + if the two literals' contents are identical +description: Check equality two regular expression literals +---*/ //CHECK#1 var regexp1 = /(?:)/; var regexp2 = /(?:)/; if (regexp1 === regexp2) { $ERROR('#1: var regexp1 = /(?:)/; var regexp2 = /(?:)/; regexp1 !== regexp2'); -} - - +} |