aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch13/13.0
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch13/13.0')
-rw-r--r--test/suite/ch13/13.0/13.0-1.js42
-rw-r--r--test/suite/ch13/13.0/13.0-10-s.js67
-rw-r--r--test/suite/ch13/13.0/13.0-11-s.js67
-rw-r--r--test/suite/ch13/13.0/13.0-12-s.js51
-rw-r--r--test/suite/ch13/13.0/13.0-13-s.js53
-rw-r--r--test/suite/ch13/13.0/13.0-14-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-15-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-16-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-17-s.js45
-rw-r--r--test/suite/ch13/13.0/13.0-2.js42
-rw-r--r--test/suite/ch13/13.0/13.0-3.js44
-rw-r--r--test/suite/ch13/13.0/13.0-4.js46
-rw-r--r--test/suite/ch13/13.0/13.0-7-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-8-s.js57
-rw-r--r--test/suite/ch13/13.0/13.0-9-s.js63
-rw-r--r--test/suite/ch13/13.0/13.0_4-17gs.js33
-rw-r--r--test/suite/ch13/13.0/13.0_4-5gs.js33
-rw-r--r--test/suite/ch13/13.0/S13_A1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A10.js11
-rw-r--r--test/suite/ch13/13.0/S13_A11_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A11_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A11_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A11_T4.js13
-rw-r--r--test/suite/ch13/13.0/S13_A12_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A12_T2.js13
-rw-r--r--test/suite/ch13/13.0/S13_A13_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A13_T2.js11
-rw-r--r--test/suite/ch13/13.0/S13_A13_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A14.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T2.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T3.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T4.js13
-rw-r--r--test/suite/ch13/13.0/S13_A15_T5.js11
-rw-r--r--test/suite/ch13/13.0/S13_A16.js11
-rw-r--r--test/suite/ch13/13.0/S13_A17_T1.js14
-rw-r--r--test/suite/ch13/13.0/S13_A17_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A18.js11
-rw-r--r--test/suite/ch13/13.0/S13_A19_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A19_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A2_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A2_T2.js11
-rw-r--r--test/suite/ch13/13.0/S13_A2_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A3_T1.js17
-rw-r--r--test/suite/ch13/13.0/S13_A3_T2.js17
-rw-r--r--test/suite/ch13/13.0/S13_A3_T3.js14
-rw-r--r--test/suite/ch13/13.0/S13_A4_T1.js14
-rw-r--r--test/suite/ch13/13.0/S13_A4_T2.js16
-rw-r--r--test/suite/ch13/13.0/S13_A4_T3.js16
-rw-r--r--test/suite/ch13/13.0/S13_A4_T4.js16
-rw-r--r--test/suite/ch13/13.0/S13_A6_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A6_T2.js14
-rw-r--r--test/suite/ch13/13.0/S13_A7_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A7_T2.js13
-rw-r--r--test/suite/ch13/13.0/S13_A7_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A8_T1.js19
-rw-r--r--test/suite/ch13/13.0/S13_A8_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A9.js12
58 files changed, 697 insertions, 707 deletions
diff --git a/test/suite/ch13/13.0/13.0-1.js b/test/suite/ch13/13.0/13.0-1.js
index 0873465b5..2a3de57cc 100644
--- a/test/suite/ch13/13.0/13.0-1.js
+++ b/test/suite/ch13/13.0/13.0-1.js
@@ -1,20 +1,22 @@
-/// 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 ch13/13.0/13.0-1.js
- * @description 13.0 - multiple names in one function declaration is not allowed, two function names
- */
-
-
-function testcase() {
- try {
- eval("function x, y() {}");
- 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: >
+ 13.0 - multiple names in one function declaration is not allowed,
+ two function names
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ eval("function x, y() {}");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-10-s.js b/test/suite/ch13/13.0/13.0-10-s.js
index 71af1f4e4..208a0adad 100644
--- a/test/suite/ch13/13.0/13.0-10-s.js
+++ b/test/suite/ch13/13.0/13.0-10-s.js
@@ -1,32 +1,35 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-10-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionBody with an inner function contains a Use Strict Directive
- * @onlyStrict
- */
-
-
-function testcase() {
-
- function _13_0_10_fun() {
- function _13_0_10_inner() {
- "use strict";
- eval("eval = 42;");
- }
- _13_0_10_inner();
- };
- try {
- _13_0_10_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionBody with an inner function contains a
+ Use Strict Directive
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function _13_0_10_fun() {
+ function _13_0_10_inner() {
+ "use strict";
+ eval("eval = 42;");
+ }
+ _13_0_10_inner();
+ };
+ try {
+ _13_0_10_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-11-s.js b/test/suite/ch13/13.0/13.0-11-s.js
index 5c623c054..26d23e51f 100644
--- a/test/suite/ch13/13.0/13.0-11-s.js
+++ b/test/suite/ch13/13.0/13.0-11-s.js
@@ -1,32 +1,35 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-11-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionBody with an inner function which is in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- function _13_0_11_fun() {
- "use strict";
- function _13_0_11_inner() {
- eval("eval = 42;");
- }
- _13_0_11_inner();
- };
- try {
- _13_0_11_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionBody with an inner function which is in
+ strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function _13_0_11_fun() {
+ "use strict";
+ function _13_0_11_inner() {
+ eval("eval = 42;");
+ }
+ _13_0_11_inner();
+ };
+ try {
+ _13_0_11_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-12-s.js b/test/suite/ch13/13.0/13.0-12-s.js
index 17d593f1e..a28801421 100644
--- a/test/suite/ch13/13.0/13.0-12-s.js
+++ b/test/suite/ch13/13.0/13.0-12-s.js
@@ -1,24 +1,27 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-12-s.js
- * @description Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code and the function constructor body is not strict
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var _13_0_12_fun = new Function(" ","eval = 42;");
- _13_0_12_fun();
- return true;
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code and
+ the function constructor body is not strict
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ var _13_0_12_fun = new Function(" ","eval = 42;");
+ _13_0_12_fun();
+ return true;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-13-s.js b/test/suite/ch13/13.0/13.0-13-s.js
index 1e231e4aa..7ad6f2b63 100644
--- a/test/suite/ch13/13.0/13.0-13-s.js
+++ b/test/suite/ch13/13.0/13.0-13-s.js
@@ -1,25 +1,28 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-13-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the function body of a Function constructor begins with a Strict Directive
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_0_13_fun = new Function(\" \", \"'use strict'; eval = 42;\"); _13_0_13_fun();");
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the function body of a Function constructor begins with a Strict
+ Directive
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_0_13_fun = new Function(\" \", \"'use strict'; eval = 42;\"); _13_0_13_fun();");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-14-s.js b/test/suite/ch13/13.0/13.0-14-s.js
index 86ec4534d..a9838dca5 100644
--- a/test/suite/ch13/13.0/13.0-14-s.js
+++ b/test/suite/ch13/13.0/13.0-14-s.js
@@ -1,26 +1,29 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-14-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the function body of a Function constructor contains a Strict Directive
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; ");
- _13_0_14_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the function body of a Function constructor contains a Strict
+ Directive
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; ");
+ _13_0_14_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-15-s.js b/test/suite/ch13/13.0/13.0-15-s.js
index 7f86492f7..d4095ea13 100644
--- a/test/suite/ch13/13.0/13.0-15-s.js
+++ b/test/suite/ch13/13.0/13.0-15-s.js
@@ -1,26 +1,29 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-15-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration is contained in strict mode code within eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_0_15_fun() {eval = 42;};");
- _13_0_15_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionDeclaration is contained in strict mode code within eval
+ code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_0_15_fun() {eval = 42;};");
+ _13_0_15_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-16-s.js b/test/suite/ch13/13.0/13.0-16-s.js
index 93c01c323..1a2e010e5 100644
--- a/test/suite/ch13/13.0/13.0-16-s.js
+++ b/test/suite/ch13/13.0/13.0-16-s.js
@@ -1,26 +1,29 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-16-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionExpression is contained in strict mode code within eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_0_16_fun = function () {eval = 42;};");
- _13_0_16_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionExpression is contained in strict mode code within eval
+ code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_0_16_fun = function () {eval = 42;};");
+ _13_0_16_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-17-s.js b/test/suite/ch13/13.0/13.0-17-s.js
index 283b3f7c3..a8b1f47c2 100644
--- a/test/suite/ch13/13.0/13.0-17-s.js
+++ b/test/suite/ch13/13.0/13.0-17-s.js
@@ -1,21 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-17-s.js
- * @description Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code within eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- eval("'use strict'; var _13_0_17_fun = new Function('eval = 42;'); _13_0_17_fun();");
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code
+ within eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ eval("'use strict'; var _13_0_17_fun = new Function('eval = 42;'); _13_0_17_fun();");
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-2.js b/test/suite/ch13/13.0/13.0-2.js
index d30becfbf..8c1c20a09 100644
--- a/test/suite/ch13/13.0/13.0-2.js
+++ b/test/suite/ch13/13.0/13.0-2.js
@@ -1,20 +1,22 @@
-/// 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 ch13/13.0/13.0-2.js
- * @description 13.0 - multiple names in one function declaration is not allowed, three function names
- */
-
-
-function testcase() {
- try {
- eval("function x,y,z(){}");
- 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: >
+ 13.0 - multiple names in one function declaration is not allowed,
+ three function names
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ eval("function x,y,z(){}");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-3.js b/test/suite/ch13/13.0/13.0-3.js
index 780c2d2b9..f88e2239d 100644
--- a/test/suite/ch13/13.0/13.0-3.js
+++ b/test/suite/ch13/13.0/13.0-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 ch13/13.0/13.0-3.js
- * @description 13.0 - property names in function definition is not allowed, add a new property into object
- */
-
-
-function testcase() {
- var obj = {};
- try {
- eval("function obj.tt() {};");
- 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: >
+ 13.0 - property names in function definition is not allowed, add a
+ new property into object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var obj = {};
+ try {
+ eval("function obj.tt() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-4.js b/test/suite/ch13/13.0/13.0-4.js
index ce881f319..09e55d0a4 100644
--- a/test/suite/ch13/13.0/13.0-4.js
+++ b/test/suite/ch13/13.0/13.0-4.js
@@ -1,22 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.0/13.0-4.js
- * @description 13.0 - multiple names in one function declaration is not allowed, add a new property into a property which is a object
- */
-
-
-function testcase() {
- var obj = {};
- obj.tt = { len: 10 };
- try {
- eval("function obj.tt.ss() {};");
- 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: >
+ 13.0 - multiple names in one function declaration is not allowed,
+ add a new property into a property which is a object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var obj = {};
+ obj.tt = { len: 10 };
+ try {
+ eval("function obj.tt.ss() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-7-s.js b/test/suite/ch13/13.0/13.0-7-s.js
index e73ed6548..2ebef3058 100644
--- a/test/suite/ch13/13.0/13.0-7-s.js
+++ b/test/suite/ch13/13.0/13.0-7-s.js
@@ -1,26 +1,29 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-7-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionDeclaration is contained in non-strict mode but the call to eval is a direct call in strict mode code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_0_7_fun() {eval = 42;};");
- _13_0_7_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionDeclaration is contained in non-strict
+ mode but the call to eval is a direct call in strict mode code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_0_7_fun() {eval = 42;};");
+ _13_0_7_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-8-s.js b/test/suite/ch13/13.0/13.0-8-s.js
index a1b6e22a3..ad06ced9c 100644
--- a/test/suite/ch13/13.0/13.0-8-s.js
+++ b/test/suite/ch13/13.0/13.0-8-s.js
@@ -1,27 +1,30 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-8-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionExpression is contained in non-strict mode but the call to eval is a direct call in strict mode code
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_0_8_fun = function () {eval = 42;};");
- _13_0_8_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionExpression is contained in non-strict
+ mode but the call to eval is a direct call in strict mode code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_0_8_fun = function () {eval = 42;};");
+ _13_0_8_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-9-s.js b/test/suite/ch13/13.0/13.0-9-s.js
index a7f12ca4f..a7e68b554 100644
--- a/test/suite/ch13/13.0/13.0-9-s.js
+++ b/test/suite/ch13/13.0/13.0-9-s.js
@@ -1,30 +1,33 @@
-/// 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.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-9-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration that is contained in strict mode code has an inner function
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var _13_0_9_fun = function () {
- function _13_0_9_inner() { eval("eval = 42;"); }
- _13_0_9_inner();
- };
- try {
- _13_0_9_fun();
- 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.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionDeclaration that is contained in strict mode code has an
+ inner function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ var _13_0_9_fun = function () {
+ function _13_0_9_inner() { eval("eval = 42;"); }
+ _13_0_9_inner();
+ };
+ try {
+ _13_0_9_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0_4-17gs.js b/test/suite/ch13/13.0/13.0_4-17gs.js
index c5eb74302..7575dabf5 100644
--- a/test/suite/ch13/13.0/13.0_4-17gs.js
+++ b/test/suite/ch13/13.0/13.0_4-17gs.js
@@ -1,16 +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 ch13/13.0/13.0_4-17gs.js
- * @description Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code
- * @onlyStrict
- * @negative NotEarlyError
- */
-
-"use strict";
-var _13_0_4_17_fun = new Function('eval = 42;');
-throw 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: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code
+negative: NotEarlyError
+flags: [onlyStrict]
+---*/
+
+"use strict";
+var _13_0_4_17_fun = new Function('eval = 42;');
+throw NotEarlyError;
diff --git a/test/suite/ch13/13.0/13.0_4-5gs.js b/test/suite/ch13/13.0/13.0_4-5gs.js
index 4f9c01325..6d2ab4fdf 100644
--- a/test/suite/ch13/13.0/13.0_4-5gs.js
+++ b/test/suite/ch13/13.0/13.0_4-5gs.js
@@ -1,16 +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 ch13/13.0/13.0_4-5gs.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration is contained in strict mode code
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-function _13_0_4_5_fun() { eval = 42; };
+// 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: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionDeclaration is contained in strict mode code
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+function _13_0_4_5_fun() { eval = 42; };
diff --git a/test/suite/ch13/13.0/S13_A1.js b/test/suite/ch13/13.0/S13_A1.js
index 8d0a905af..73bf7fe20 100644
--- a/test/suite/ch13/13.0/S13_A1.js
+++ b/test/suite/ch13/13.0/S13_A1.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.
-/**
- * "x=function y(){}" statement does not store a reference to the new function in the varaible y(Identifier)
- *
- * @path ch13/13.0/S13_A1.js
- * @description Checking the type of y
- */
+/*---
+info: >
+ "x=function y(){}" statement does not store a reference to the new
+ function in the varaible y(Identifier)
+description: Checking the type of y
+---*/
var __func = function __exp__func(){return 0;};
@@ -28,4 +28,3 @@ if (typeof __exp__func !== "undefined"){
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A10.js b/test/suite/ch13/13.0/S13_A10.js
index dd85f242b..350a370a3 100644
--- a/test/suite/ch13/13.0/S13_A10.js
+++ b/test/suite/ch13/13.0/S13_A10.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.
-/**
- * Function is a data
- *
- * @path ch13/13.0/S13_A10.js
- * @description Using function as a property of an object
- */
+/*---
+info: Function is a data
+description: Using function as a property of an object
+---*/
function __ziggy__func(){return "ziggy stardust"}
@@ -29,4 +27,3 @@ if (__music_box.ziggy() !== "ziggy stardust") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T1.js b/test/suite/ch13/13.0/S13_A11_T1.js
index e9dc0e39a..18c0091c2 100644
--- a/test/suite/ch13/13.0/S13_A11_T1.js
+++ b/test/suite/ch13/13.0/S13_A11_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T1.js
- * @description Returning result of "delete arguments"
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: Returning result of "delete arguments"
+---*/
function __func(){ return delete arguments;}
@@ -17,4 +17,3 @@ if (__func("A","B",1,2)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T2.js b/test/suite/ch13/13.0/S13_A11_T2.js
index 18886a307..be2845441 100644
--- a/test/suite/ch13/13.0/S13_A11_T2.js
+++ b/test/suite/ch13/13.0/S13_A11_T2.js
@@ -1,12 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T2.js
- * @description Checking if deleting the arguments property fails and then returning it
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: >
+ Checking if deleting the arguments property fails and then
+ returning it
+---*/
function __func(){
delete arguments;
@@ -20,4 +22,3 @@ if (typeof __func("A","B",1,2) !== "object") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T3.js b/test/suite/ch13/13.0/S13_A11_T3.js
index 94345da8f..03cb0ab3e 100644
--- a/test/suite/ch13/13.0/S13_A11_T3.js
+++ b/test/suite/ch13/13.0/S13_A11_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.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T3.js
- * @description Deleting arguments[i] and returning result of the operation
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: Deleting arguments[i] and returning result of the operation
+---*/
function __func(){
was_del=false;
@@ -22,4 +22,3 @@ if (!__func("A","B",1,2)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T4.js b/test/suite/ch13/13.0/S13_A11_T4.js
index c107879cd..63535c193 100644
--- a/test/suite/ch13/13.0/S13_A11_T4.js
+++ b/test/suite/ch13/13.0/S13_A11_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.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T4.js
- * @description Deleting arguments[i] and checking the type of arguments[i]
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: Deleting arguments[i] and checking the type of arguments[i]
+---*/
function __func(){
is_undef=true;
@@ -25,4 +25,3 @@ if (!__func("A","B",1,2)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A12_T1.js b/test/suite/ch13/13.0/S13_A12_T1.js
index 278a46ac6..ab805b0e0 100644
--- a/test/suite/ch13/13.0/S13_A12_T1.js
+++ b/test/suite/ch13/13.0/S13_A12_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.
-/**
- * Function declarations in global or function scope are {DontDelete}
- *
- * @path ch13/13.0/S13_A12_T1.js
- * @description Checking if deleting a function that is declared in global scope fails
- */
+/*---
+info: Function declarations in global or function scope are {DontDelete}
+description: >
+ Checking if deleting a function that is declared in global scope
+ fails
+---*/
ALIVE="Letov is alive"
@@ -29,4 +29,3 @@ if (__func() !== ALIVE) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A12_T2.js b/test/suite/ch13/13.0/S13_A12_T2.js
index 08ea18247..ced684e3f 100644
--- a/test/suite/ch13/13.0/S13_A12_T2.js
+++ b/test/suite/ch13/13.0/S13_A12_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.
-/**
- * Function declarations in global or function scope are {DontDelete}
- *
- * @path ch13/13.0/S13_A12_T2.js
- * @description Checking if deleting a function that is declared in function scope fails
- */
+/*---
+info: Function declarations in global or function scope are {DontDelete}
+description: >
+ Checking if deleting a function that is declared in function scope
+ fails
+---*/
ALIVE="Letov is alive"
@@ -34,4 +34,3 @@ function __cont(){
};
__cont();
-
diff --git a/test/suite/ch13/13.0/S13_A13_T1.js b/test/suite/ch13/13.0/S13_A13_T1.js
index 072966196..05e76c1a1 100644
--- a/test/suite/ch13/13.0/S13_A13_T1.js
+++ b/test/suite/ch13/13.0/S13_A13_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.
-/**
- * Deleting arguments[i] leads to breaking the connection to local reference
- *
- * @path ch13/13.0/S13_A13_T1.js
- * @description Deleting arguments[i]
- */
+/*---
+info: Deleting arguments[i] leads to breaking the connection to local reference
+description: Deleting arguments[i]
+---*/
function __func(__arg){
delete arguments[0];
@@ -23,4 +21,3 @@ if (__func(1) !== 1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A13_T2.js b/test/suite/ch13/13.0/S13_A13_T2.js
index 49ba62ada..3c183a21e 100644
--- a/test/suite/ch13/13.0/S13_A13_T2.js
+++ b/test/suite/ch13/13.0/S13_A13_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.
-/**
- * Deleting arguments[i] leads to breaking the connection to local reference
- *
- * @path ch13/13.0/S13_A13_T2.js
- * @description Changing arguments value and then deleting the argument
- */
+/*---
+info: Deleting arguments[i] leads to breaking the connection to local reference
+description: Changing arguments value and then deleting the argument
+---*/
function __func(__arg){
__arg = 2;
@@ -24,4 +22,3 @@ if (__func(1) !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A13_T3.js b/test/suite/ch13/13.0/S13_A13_T3.js
index 715150018..dbbb6ca00 100644
--- a/test/suite/ch13/13.0/S13_A13_T3.js
+++ b/test/suite/ch13/13.0/S13_A13_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.
-/**
- * Deleting arguments[i] leads to breaking the connection to local reference
- *
- * @path ch13/13.0/S13_A13_T3.js
- * @description Changing argument value, deleting the argument and then defining a new value for arguments[i]
- */
+/*---
+info: Deleting arguments[i] leads to breaking the connection to local reference
+description: >
+ Changing argument value, deleting the argument and then defining a
+ new value for arguments[i]
+---*/
function __func(__arg){
__arg = 2;
@@ -28,4 +28,3 @@ if (__func(1) !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A14.js b/test/suite/ch13/13.0/S13_A14.js
index 7d5bc732f..67c16cfb4 100644
--- a/test/suite/ch13/13.0/S13_A14.js
+++ b/test/suite/ch13/13.0/S13_A14.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.
-/**
- * Unicode symbols in function name are allowed
- *
- * @path ch13/13.0/S13_A14.js
- * @description Defining function name with unicode symbols
- */
+/*---
+info: Unicode symbols in function name are allowed
+description: Defining function name with unicode symbols
+---*/
eval("function __func\u0041(__arg){return __arg;};");
@@ -17,4 +15,3 @@ if (typeof __funcA !== "function") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T1.js b/test/suite/ch13/13.0/S13_A15_T1.js
index 74531f8c5..70251b57e 100644
--- a/test/suite/ch13/13.0/S13_A15_T1.js
+++ b/test/suite/ch13/13.0/S13_A15_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.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T1.js
- * @description Declaring a function with "__func(arguments)"
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Declaring a function with "__func(arguments)"
+---*/
function __func(arguments){
return arguments;
@@ -19,4 +17,3 @@ if (__func(42) !== 42) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T2.js b/test/suite/ch13/13.0/S13_A15_T2.js
index 77e7c847b..3eacde6f2 100644
--- a/test/suite/ch13/13.0/S13_A15_T2.js
+++ b/test/suite/ch13/13.0/S13_A15_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.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T2.js
- * @description Overriding arguments within functions body
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Overriding arguments within functions body
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -22,4 +20,3 @@ if (__func(42,42,42) !== THE_ANSWER) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T3.js b/test/suite/ch13/13.0/S13_A15_T3.js
index 4ba50e717..d8f941e69 100644
--- a/test/suite/ch13/13.0/S13_A15_T3.js
+++ b/test/suite/ch13/13.0/S13_A15_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.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T3.js
- * @description Declaring a variable named with "arguments" without a function
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Declaring a variable named with "arguments" without a function
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -32,4 +30,3 @@ if (__func("The Ultimate Question") !== "The Ultimate Question") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T4.js b/test/suite/ch13/13.0/S13_A15_T4.js
index a71b34833..ef95469cc 100644
--- a/test/suite/ch13/13.0/S13_A15_T4.js
+++ b/test/suite/ch13/13.0/S13_A15_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.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T4.js
- * @description Declaring a variable named with "arguments" and following a "return" statement within a function body
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: >
+ Declaring a variable named with "arguments" and following a
+ "return" statement within a function body
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -22,4 +22,3 @@ if (__func(42,42,42) !== "object") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T5.js b/test/suite/ch13/13.0/S13_A15_T5.js
index 4896a19c2..b9d07e883 100644
--- a/test/suite/ch13/13.0/S13_A15_T5.js
+++ b/test/suite/ch13/13.0/S13_A15_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.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T5.js
- * @description Creating a variable named with "arguments" without a function
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Creating a variable named with "arguments" without a function
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -31,4 +29,3 @@ if (__func("The Ultimate Question") === "The Ultimate Question") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A16.js b/test/suite/ch13/13.0/S13_A16.js
index 8b8ee7080..00bca7e59 100644
--- a/test/suite/ch13/13.0/S13_A16.js
+++ b/test/suite/ch13/13.0/S13_A16.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.
-/**
- * Any separators are admitted between declaration chunks
- *
- * @path ch13/13.0/S13_A16.js
- * @description Inserting separators between declaration chunks
- */
+/*---
+info: Any separators are admitted between declaration chunks
+description: Inserting separators between declaration chunks
+---*/
function
x
@@ -41,4 +39,3 @@ z();
eval("function\u0009\u2029w(\u000C)\u00A0{\u000D};");
w();
-
diff --git a/test/suite/ch13/13.0/S13_A17_T1.js b/test/suite/ch13/13.0/S13_A17_T1.js
index 1ea6c287a..ae9165247 100644
--- a/test/suite/ch13/13.0/S13_A17_T1.js
+++ b/test/suite/ch13/13.0/S13_A17_T1.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function call cannot appear in the program before the FunctionExpression appears
- *
- * @path ch13/13.0/S13_A17_T1.js
- * @description Trying to call a function before the FunctionExpression appears
- */
+/*---
+info: >
+ Function call cannot appear in the program before the FunctionExpression
+ appears
+description: Trying to call a function before the FunctionExpression appears
+includes: [$FAIL.js]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -42,4 +43,3 @@ if (__result !== "TWO") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A17_T2.js b/test/suite/ch13/13.0/S13_A17_T2.js
index d502d3b46..094e50812 100644
--- a/test/suite/ch13/13.0/S13_A17_T2.js
+++ b/test/suite/ch13/13.0/S13_A17_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.
-/**
- * Function call cannot appear in the program before the FunctionExpression appears
- *
- * @path ch13/13.0/S13_A17_T2.js
- * @description Trying to call a function before the FunctionExpression appears and then using the FunctionExpression one more time
- */
+/*---
+info: >
+ Function call cannot appear in the program before the FunctionExpression
+ appears
+description: >
+ Trying to call a function before the FunctionExpression appears
+ and then using the FunctionExpression one more time
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -43,4 +45,3 @@ if (__result !== "TWO") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A18.js b/test/suite/ch13/13.0/S13_A18.js
index 827db7547..7319efc56 100644
--- a/test/suite/ch13/13.0/S13_A18.js
+++ b/test/suite/ch13/13.0/S13_A18.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.
-/**
- * Closures are admitted
- *
- * @path ch13/13.0/S13_A18.js
- * @description Using a function declaration as a function parameter
- */
+/*---
+info: Closures are admitted
+description: Using a function declaration as a function parameter
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -29,4 +27,3 @@ if (typeof sinx !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A19_T1.js b/test/suite/ch13/13.0/S13_A19_T1.js
index 9bcf1921f..9d5677444 100644
--- a/test/suite/ch13/13.0/S13_A19_T1.js
+++ b/test/suite/ch13/13.0/S13_A19_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.
-/**
- * "var" does not override function declaration
- *
- * @path ch13/13.0/S13_A19_T1.js
- * @description Creating a function and a variable with identical Identifiers in global scope
- */
+/*---
+info: "\"var\" does not override function declaration"
+description: >
+ Creating a function and a variable with identical Identifiers in
+ global scope
+---*/
// since "var" does not override function declaration __decl is set to function
//////////////////////////////////////////////////////////////////////////////
@@ -29,4 +29,3 @@ if (__decl !== 1) {
//////////////////////////////////////////////////////////////////////////////
function __decl(){return 1;}
-
diff --git a/test/suite/ch13/13.0/S13_A19_T2.js b/test/suite/ch13/13.0/S13_A19_T2.js
index 7757d8be6..06bac189b 100644
--- a/test/suite/ch13/13.0/S13_A19_T2.js
+++ b/test/suite/ch13/13.0/S13_A19_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.
-/**
- * "var" does not override function declaration
- *
- * @path ch13/13.0/S13_A19_T2.js
- * @description Creating a function and a variable with identical Identifiers within function scope
- */
+/*---
+info: "\"var\" does not override function declaration"
+description: >
+ Creating a function and a variable with identical Identifiers
+ within function scope
+---*/
(function (){
@@ -31,5 +31,4 @@
//////////////////////////////////////////////////////////////////////////////
function __decl(){return 1;}
-})();
-
+})();
diff --git a/test/suite/ch13/13.0/S13_A2_T1.js b/test/suite/ch13/13.0/S13_A2_T1.js
index b9307ac70..09b830e5a 100644
--- a/test/suite/ch13/13.0/S13_A2_T1.js
+++ b/test/suite/ch13/13.0/S13_A2_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * function must be evaluated inside the expression
- *
- * @path ch13/13.0/S13_A2_T1.js
- * @description Defining function body with "return arg"
- */
+/*---
+info: function must be evaluated inside the expression
+description: Defining function body with "return arg"
+---*/
var x = (function __func(arg){return arg})(1);
@@ -26,4 +24,3 @@ if (typeof __func !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A2_T2.js b/test/suite/ch13/13.0/S13_A2_T2.js
index c43c58e79..62bfd6686 100644
--- a/test/suite/ch13/13.0/S13_A2_T2.js
+++ b/test/suite/ch13/13.0/S13_A2_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * function must be evaluated inside the expression
- *
- * @path ch13/13.0/S13_A2_T2.js
- * @description Defining function body with "return arg + arguments[1]"
- */
+/*---
+info: function must be evaluated inside the expression
+description: Defining function body with "return arg + arguments[1]"
+---*/
var x = (function __func(arg){return arg + arguments[1]})(1,"1");
@@ -26,4 +24,3 @@ if (typeof __func !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A2_T3.js b/test/suite/ch13/13.0/S13_A2_T3.js
index 83d3f2463..7443d09af 100644
--- a/test/suite/ch13/13.0/S13_A2_T3.js
+++ b/test/suite/ch13/13.0/S13_A2_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * function must be evaluated inside the expression
- *
- * @path ch13/13.0/S13_A2_T3.js
- * @description Defining function body with "return arguments[0] +"-"+ arguments[1]"
- */
+/*---
+info: function must be evaluated inside the expression
+description: >
+ Defining function body with "return arguments[0] +"-"+
+ arguments[1]"
+---*/
var x = (function __func(){return arguments[0] +"-"+ arguments[1]})("Obi","Wan");
@@ -26,4 +26,3 @@ if (typeof __func !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A3_T1.js b/test/suite/ch13/13.0/S13_A3_T1.js
index cac7e243d..03f19889d 100644
--- a/test/suite/ch13/13.0/S13_A3_T1.js
+++ b/test/suite/ch13/13.0/S13_A3_T1.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively
- *
- * @path ch13/13.0/S13_A3_T1.js
- * @description Creating a recursive function that calculates factorial, as a variable.
- * Function call itself by it`s name
- */
+/*---
+info: >
+ The Identifier in a FunctionExpression can be referenced from inside the
+ FunctionExpression's FunctionBody to allow the function calling itself
+ recursively
+description: >
+ Creating a recursive function that calculates factorial, as a
+ variable. Function call itself by it`s name
+---*/
var __func = function __exp__func(arg){
if (arg === 1) {
@@ -26,4 +28,3 @@ if (fact_of_3 !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A3_T2.js b/test/suite/ch13/13.0/S13_A3_T2.js
index 2137666a7..cd3466f74 100644
--- a/test/suite/ch13/13.0/S13_A3_T2.js
+++ b/test/suite/ch13/13.0/S13_A3_T2.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively
- *
- * @path ch13/13.0/S13_A3_T2.js
- * @description Creating a recursive function that calculates factorial, as a variable.
- * Function calls itself by the name of the variable
- */
+/*---
+info: >
+ The Identifier in a FunctionExpression can be referenced from inside the
+ FunctionExpression's FunctionBody to allow the function calling itself
+ recursively
+description: >
+ Creating a recursive function that calculates factorial, as a
+ variable. Function calls itself by the name of the variable
+---*/
var __func = function (arg){
if (arg === 1) {
@@ -26,4 +28,3 @@ if (fact_of_3 !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A3_T3.js b/test/suite/ch13/13.0/S13_A3_T3.js
index 467f3fea5..a05da537c 100644
--- a/test/suite/ch13/13.0/S13_A3_T3.js
+++ b/test/suite/ch13/13.0/S13_A3_T3.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively
- *
- * @path ch13/13.0/S13_A3_T3.js
- * @description Creating simple recursive function that calculates factorial
- */
+/*---
+info: >
+ The Identifier in a FunctionExpression can be referenced from inside the
+ FunctionExpression's FunctionBody to allow the function calling itself
+ recursively
+description: Creating simple recursive function that calculates factorial
+---*/
function __func(arg){
if (arg === 1) {
@@ -25,4 +26,3 @@ if (fact_of_3 !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T1.js b/test/suite/ch13/13.0/S13_A4_T1.js
index 453207158..74f651395 100644
--- a/test/suite/ch13/13.0/S13_A4_T1.js
+++ b/test/suite/ch13/13.0/S13_A4_T1.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T1.js
- * @description Declaring a function that returns string
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: Declaring a function that returns string
+---*/
function __func(){return "zig-zig-sputnik";};
@@ -25,4 +26,3 @@ if (__func() !== "zig-zig-sputnik") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T2.js b/test/suite/ch13/13.0/S13_A4_T2.js
index d7b4a2788..c044b4f06 100644
--- a/test/suite/ch13/13.0/S13_A4_T2.js
+++ b/test/suite/ch13/13.0/S13_A4_T2.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T2.js
- * @description Declaring a function that uses prefix increment operator within its "return" Expression
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: >
+ Declaring a function that uses prefix increment operator within
+ its "return" Expression
+---*/
function __func(arg){return ++arg;};
@@ -25,4 +28,3 @@ if (__func(1) !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T3.js b/test/suite/ch13/13.0/S13_A4_T3.js
index 6595f4f77..1119079bf 100644
--- a/test/suite/ch13/13.0/S13_A4_T3.js
+++ b/test/suite/ch13/13.0/S13_A4_T3.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T3.js
- * @description Declaring a function that uses arithmetical operators within its "return" Expression
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: >
+ Declaring a function that uses arithmetical operators within its
+ "return" Expression
+---*/
function __func(arg1, arg2, arg3){return arg1+=(arg2+=arg3);};
@@ -25,4 +28,3 @@ if (__func(10, 20, 30) !== 60) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T4.js b/test/suite/ch13/13.0/S13_A4_T4.js
index 7330bd80f..a7a7f8328 100644
--- a/test/suite/ch13/13.0/S13_A4_T4.js
+++ b/test/suite/ch13/13.0/S13_A4_T4.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T4.js
- * @description Declaring a function that uses strings concatenaion opeator within its "return" Expression
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: >
+ Declaring a function that uses strings concatenaion opeator within
+ its "return" Expression
+---*/
function __func(){return arguments[0].name + " " + arguments[0].surname;};
@@ -43,4 +46,3 @@ if (func__({name:'john', surname:'lennon'}) !== "john lennon") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A6_T1.js b/test/suite/ch13/13.0/S13_A6_T1.js
index 2cdd53709..b36c6747f 100644
--- a/test/suite/ch13/13.0/S13_A6_T1.js
+++ b/test/suite/ch13/13.0/S13_A6_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier
- *
- * @path ch13/13.0/S13_A6_T1.js
- * @description Duplicating function declaration
- */
+/*---
+info: >
+ FunctionDeclaration can be overrided by other FunctionDeclaration with
+ the same Identifier
+description: Duplicating function declaration
+---*/
function __func(){return 1};
@@ -33,4 +33,3 @@ if (__1 !== __A) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A6_T2.js b/test/suite/ch13/13.0/S13_A6_T2.js
index 6268e06e2..a702da31c 100644
--- a/test/suite/ch13/13.0/S13_A6_T2.js
+++ b/test/suite/ch13/13.0/S13_A6_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.
-/**
- * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier
- *
- * @path ch13/13.0/S13_A6_T2.js
- * @description Calling a function before it is declared one more time
- */
+/*---
+info: >
+ FunctionDeclaration can be overrided by other FunctionDeclaration with
+ the same Identifier
+description: Calling a function before it is declared one more time
+includes: [$FAIL.js]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -33,4 +34,3 @@ if (__result !== "SECOND") {
//////////////////////////////////////////////////////////////////////////////
function __func(){return "SECOND";};
-
diff --git a/test/suite/ch13/13.0/S13_A7_T1.js b/test/suite/ch13/13.0/S13_A7_T1.js
index b83e6e140..6e755cbef 100644
--- a/test/suite/ch13/13.0/S13_A7_T1.js
+++ b/test/suite/ch13/13.0/S13_A7_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 FunctionBody must be SourceElements
- *
- * @path ch13/13.0/S13_A7_T1.js
- * @description Using only SourceElements within the FunctionBody
- */
+/*---
+info: The FunctionBody must be SourceElements
+description: Using only SourceElements within the FunctionBody
+---*/
function __func(){'ground control to major tom'};
//////////////////////////////////////////////////////////////////////////////
@@ -70,4 +68,3 @@ if (typeof __func__6 !== "function") {
//}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A7_T2.js b/test/suite/ch13/13.0/S13_A7_T2.js
index 6b381b794..0cf815087 100644
--- a/test/suite/ch13/13.0/S13_A7_T2.js
+++ b/test/suite/ch13/13.0/S13_A7_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The FunctionBody must be SourceElements
- *
- * @path ch13/13.0/S13_A7_T2.js
- * @description Inserting elements that is different from SourceElements into the FunctionBody
- */
+/*---
+info: The FunctionBody must be SourceElements
+description: >
+ Inserting elements that is different from SourceElements into the
+ FunctionBody
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -46,4 +46,3 @@ try{
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A7_T3.js b/test/suite/ch13/13.0/S13_A7_T3.js
index e2b893b65..dfce83382 100644
--- a/test/suite/ch13/13.0/S13_A7_T3.js
+++ b/test/suite/ch13/13.0/S13_A7_T3.js
@@ -1,13 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The FunctionBody must be SourceElements
- *
- * @path ch13/13.0/S13_A7_T3.js
- * @description Checking if execution of "function __func(){\A\B\C}" fails
- * @negative
- */
+/*---
+info: The FunctionBody must be SourceElements
+description: Checking if execution of "function __func(){\A\B\C}" fails
+flags: [negative]
+---*/
function __func(){\A\B\C};
-
diff --git a/test/suite/ch13/13.0/S13_A8_T1.js b/test/suite/ch13/13.0/S13_A8_T1.js
index d147259ce..74dd9948a 100644
--- a/test/suite/ch13/13.0/S13_A8_T1.js
+++ b/test/suite/ch13/13.0/S13_A8_T1.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Arguments property of activation object contains real params to be passed
- *
- * @path ch13/13.0/S13_A8_T1.js
- * @description Creating a function declared with "function __func(param1, param2, param3)" and using arguments.length property in order to perform the test
- */
+/*---
+info: Arguments property of activation object contains real params to be passed
+description: >
+ Creating a function declared with "function __func(param1, param2,
+ param3)" and using arguments.length property in order to perform
+ the test
+---*/
- function __func(param1, param2, param3) {
+function __func(param1, param2, param3) {
return arguments.length;
}
@@ -27,7 +28,3 @@ if (__func('A', 'B', 1, 2,__func) !== 5) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
diff --git a/test/suite/ch13/13.0/S13_A8_T2.js b/test/suite/ch13/13.0/S13_A8_T2.js
index 6e4b3f05c..54dc2ecf4 100644
--- a/test/suite/ch13/13.0/S13_A8_T2.js
+++ b/test/suite/ch13/13.0/S13_A8_T2.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Arguments property of activation object contains real params to be passed
- *
- * @path ch13/13.0/S13_A8_T2.js
- * @description Creating a function with no parameters and using arguments.length property in order to perform the test
- */
+/*---
+info: Arguments property of activation object contains real params to be passed
+description: >
+ Creating a function with no parameters and using arguments.length
+ property in order to perform the test
+---*/
- function __func() {
+function __func() {
return arguments.length;
}
@@ -35,4 +35,3 @@ if (__func() !== 0) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A9.js b/test/suite/ch13/13.0/S13_A9.js
index c13119af9..18b575dd8 100644
--- a/test/suite/ch13/13.0/S13_A9.js
+++ b/test/suite/ch13/13.0/S13_A9.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.
-/**
- * Function can be passed as argument
- *
- * @path ch13/13.0/S13_A9.js
- * @description Using function as argument of another function
- */
+/*---
+info: Function can be passed as argument
+description: Using function as argument of another function
+---*/
function __func__INC(arg){return arg + 1;};
function __func__MULT(incrementator, arg, mult){ return incrementator(arg)*mult; };
@@ -18,5 +16,3 @@ if (__func__MULT(__func__INC, 2, 2) !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-