diff options
Diffstat (limited to 'test/suite/ch15/15.10/15.10.4')
48 files changed, 344 insertions, 442 deletions
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)); } } - - |