aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch11/11.3
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch11/11.3')
-rw-r--r--test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js48
-rw-r--r--test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js33
-rw-r--r--test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js48
-rw-r--r--test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js40
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js13
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js13
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js13
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js13
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js13
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js13
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js11
-rw-r--r--test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js48
-rw-r--r--test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js48
-rw-r--r--test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js40
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js13
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js13
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js13
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js13
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js13
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js11
-rw-r--r--test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js11
45 files changed, 321 insertions, 424 deletions
diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js
index 28b299108..edd091396 100644
--- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js
+++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1-s.js
@@ -1,23 +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 ch11/11.3/11.3.1/11.3.1-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appear as a PostfixExpression(arguments++)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments++;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-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: >
+ Strict Mode - SyntaxError is thrown if the identifier 'arguments'
+ appear as a PostfixExpression(arguments++)
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ var blah = arguments;
+ try {
+ eval("arguments++;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && blah === arguments;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js
index 15456cd5c..b177e0bfc 100644
--- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.js
+++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-1gs.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 ch11/11.3/11.3.1/11.3.1-2-1gs.js
- * @description Strict Mode - SyntaxError is throw if the identifier arguments appear as a PostfixExpression(arguments++)
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-arguments++;
+// 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 - SyntaxError is throw if the identifier arguments
+ appear as a PostfixExpression(arguments++)
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+arguments++;
diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js
index f71ea4568..b1dcb70cc 100644
--- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js
+++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-2-s.js
@@ -1,23 +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 ch11/11.3/11.3.1/11.3.1-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appear as a PostfixExpression(eval++)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval++;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-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: >
+ Strict Mode - SyntaxError is thrown if the identifier 'eval'
+ appear as a PostfixExpression(eval++)
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ var blah = eval;
+ try {
+ eval("eval++;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && blah === eval;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js b/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js
index e46a70606..e7defbc6e 100644
--- a/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js
+++ b/test/suite/ch11/11.3/11.3.1/11.3.1-2-3-s.js
@@ -1,19 +1,21 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.1/11.3.1-2-3-s.js
- * @description Strict Mode - SyntaxError is not thrown if the identifier 'arguments[...]' appears as a PostfixExpression(arguments++)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- arguments[1] = 7;
- arguments[1]++;
- return arguments[1]===8;
- }
-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: >
+ Strict Mode - SyntaxError is not thrown if the identifier
+ 'arguments[...]' appears as a PostfixExpression(arguments++)
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ arguments[1] = 7;
+ arguments[1]++;
+ return arguments[1]===8;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js
index 9f8bc65a1..8541e15ee 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "++" is not allowed
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T1.js
- * @description Checking Line Feed
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "++" is not allowed
+description: Checking Line Feed
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u000A++");
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js
index 4c97a56d1..7c9467a8d 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "++" is not allowed
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T2.js
- * @description Carriage Return
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "++" is not allowed
+description: Carriage Return
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u000D++");
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js
index 16eb546f4..ddae0cefd 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "++" is not allowed
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T3.js
- * @description Checking Line Seprator
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "++" is not allowed
+description: Checking Line Seprator
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u2028++");
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js
index 8f9d56e71..53c9e905e 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "++" is not allowed
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A1.1_T4.js
- * @description Checking Paragraph separator
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "++" is not allowed
+description: Checking Paragraph separator
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u2029++");
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js
index b8df6ebd7..a378888aa 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A1.2_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.
-/**
- * White Space between LeftHandSideExpression and "++" are allowed
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A1.2_T1.js
- * @description Checking by using eval
- */
+/*---
+info: White Space between LeftHandSideExpression and "++" are allowed
+description: Checking by using eval
+---*/
//CHECK#1
if (eval("var x = 0; x\u0009++; x") !== 1) {
@@ -37,4 +35,3 @@ if (eval("var x = 0; x\u00A0++; x") !== 1) {
if (eval("var x = 0; x\u0009\u000B\u000C\u0020\u00A0++; x") !== 1) {
$ERROR('#6: var x = 0; x\\u0009\\u000B\\u000C\\u0020\\u00A0++; x === 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js
index 3f32ea5b7..ce3dc89e8 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator x++ uses GetValue and PutValue
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A2.1_T1.js
- * @description Type(x) is Reference and GetBase(x) is not null
- */
+/*---
+info: Operator x++ uses GetValue and PutValue
+description: Type(x) is Reference and GetBase(x) is not null
+---*/
//CHECK#1
var x = 1;
@@ -41,6 +39,3 @@ if (y !== 1) {
$ERROR('#3: var object = new Object(); object.prop = 1; var y = object.prop++; object.prop === 1 + 1. Actual: ' + (object.prop));
}
}
-
-
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js
index 5bc1abbad..59aae50e1 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator x++ uses GetValue and PutValue
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A2.1_T2.js
- * @description If GetBase(x) is null, throw ReferenceError
- */
+/*---
+info: Operator x++ uses GetValue and PutValue
+description: If GetBase(x) is null, throw ReferenceError
+---*/
//CHECK#1
try {
@@ -18,4 +16,3 @@ catch (e) {
$ERROR('#1.2: x++ throw ReferenceError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js
index fec236e6d..9956452d9 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js
@@ -1,13 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator x++ uses GetValue and PutValue
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js
- * @description If Type(x) is not Reference, throw ReferenceError (or SyntaxError)
- * @negative
- */
+/*---
+info: Operator x++ uses GetValue and PutValue
+description: If Type(x) is not Reference, throw ReferenceError (or SyntaxError)
+flags: [negative]
+---*/
//CHECK#1
try {
@@ -21,4 +19,3 @@ catch (e) {
1++;
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js
index dc82a92da..1d1a77902 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.1_A2.2_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.
-/**
- * Operator x++ uses [[Default Value]]
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A2.2_T1.js
- * @description If Type(value) is Object, evaluate ToPrimitive(value, Number)
- */
+/*---
+info: Operator x++ uses [[Default Value]]
+description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
+---*/
//CHECK#1
var object = {valueOf: function() {return 1}};
@@ -107,4 +105,3 @@ catch (e) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object++ throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js
index e3003d2d4..4c625e470 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T1.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns x = ToNumber(x) + 1
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A3_T1.js
- * @description Type(x) is boolean primitive or Boolean object
- */
+/*---
+info: Operator x++ returns x = ToNumber(x) + 1
+description: Type(x) is boolean primitive or Boolean object
+---*/
//CHECK#1
var x = false;
@@ -21,4 +19,3 @@ x++;
if (x !== 1 + 1) {
$ERROR('#2: var x = new Boolean(true); x++; x === 1 + 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js
index 6b5560d1a..1d11733fe 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T2.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns x = ToNumber(x) + 1
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A3_T2.js
- * @description Type(x) is number primitive or Number object
- */
+/*---
+info: Operator x++ returns x = ToNumber(x) + 1
+description: Type(x) is number primitive or Number object
+---*/
//CHECK#1
var x = 0.1;
@@ -21,4 +19,3 @@ x++;
if (x !== -1.1 + 1) {
$ERROR('#2: var x = new Number(-1.1); x++; x === -1.1 + 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js
index b43aa2c42..1196c44b9 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T3.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns x = ToNumber(x) + 1
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A3_T3.js
- * @description Type(x) is string primitive or String object
- */
+/*---
+info: Operator x++ returns x = ToNumber(x) + 1
+description: Type(x) is string primitive or String object
+---*/
//CHECK#1
var x = "1";
@@ -28,4 +26,3 @@ x++;
if (x !== -1 + 1) {
$ERROR('#3: var x = new String("-1"); x++; x === -1 + 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js
index 1a6fd79ec..1e9eb1854 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T4.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns x = ToNumber(x) + 1
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A3_T4.js
- * @description Type(x) is undefined or null
- */
+/*---
+info: Operator x++ returns x = ToNumber(x) + 1
+description: Type(x) is undefined or null
+---*/
//CHECK#1
var x;
@@ -21,4 +19,3 @@ x++;
if (x !== 1) {
$ERROR('#2: var x = null; x++; x === 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js
index c18fc2085..46e499aec 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A3_T5.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns x = ToNumber(x) + 1
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A3_T5.js
- * @description Type(x) is Object object or Function object
- */
+/*---
+info: Operator x++ returns x = ToNumber(x) + 1
+description: Type(x) is Object object or Function object
+---*/
//CHECK#1
var x = {};
@@ -21,4 +19,3 @@ x++;
if (isNaN(x) !== true) {
$ERROR('#2: var x = function(){return 1}; x++; x === Not-a-Number. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js
index 174800a77..5b4ad088f 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T1.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A4_T1.js
- * @description Type(x) is boolean primitive or Boolean object
- */
+/*---
+info: Operator x++ returns ToNumber(x)
+description: Type(x) is boolean primitive or Boolean object
+---*/
//CHECK#1
var x = false;
@@ -21,4 +19,3 @@ var y = x++;
if (y !== 1) {
$ERROR('#2: var x = new Boolean(true); var y = x++; y === 1. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js
index 36fe9aec5..785f980cd 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T2.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A4_T2.js
- * @description Type(x) is number primitive or Number object
- */
+/*---
+info: Operator x++ returns ToNumber(x)
+description: Type(x) is number primitive or Number object
+---*/
//CHECK#1
var x = -0.1;
@@ -21,4 +19,3 @@ var y = x++;
if (y !== 1.1) {
$ERROR('#2: var x = new Number(1.1); var y = x++; y === 1.1. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js
index 540ee9024..a2cfea3f2 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T3.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A4_T3.js
- * @description Type(x) is string primitive or String object
- */
+/*---
+info: Operator x++ returns ToNumber(x)
+description: Type(x) is string primitive or String object
+---*/
//CHECK#1
var x = "1";
@@ -28,4 +26,3 @@ var y = x++;
if (y !== -1) {
$ERROR('#3: var x = new String("-1"); var y = x++; y === -1. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js
index cf703689d..58c496003 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T4.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A4_T4.js
- * @description Type(x) is undefined or null
- */
+/*---
+info: Operator x++ returns ToNumber(x)
+description: Type(x) is undefined or null
+---*/
//CHECK#1
var x;
@@ -21,4 +19,3 @@ var y = x++;
if (y !== 0) {
$ERROR('#2: var x = null; var y = x++; y === 0. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js b/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js
index 09a248cf3..a1f01cb5a 100644
--- a/test/suite/ch11/11.3/11.3.1/S11.3.1_A4_T5.js
+++ b/test/suite/ch11/11.3/11.3.1/S11.3.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.
-/**
- * Operator x++ returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.1/S11.3.1_A4_T5.js
- * @description Type(x) is Object object or Function object
- */
+/*---
+info: Operator x++ returns ToNumber(x)
+description: Type(x) is Object object or Function object
+---*/
//CHECK#1
var x = {};
@@ -21,4 +19,3 @@ var y = x++;
if (isNaN(y) !== true) {
$ERROR('#2: var x = function(){return 1}; var y = x++; y === Not-a-Number. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js b/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js
index f40c73ac1..5f4448011 100644
--- a/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js
+++ b/test/suite/ch11/11.3/11.3.2/11.3.2-2-1-s.js
@@ -1,23 +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 ch11/11.3/11.3.2/11.3.2-2-1-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appear as a PostfixExpression(arguments--)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = arguments;
- try {
- eval("arguments--;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === arguments;
- }
- }
-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: >
+ Strict Mode - SyntaxError is thrown if the identifier 'arguments'
+ appear as a PostfixExpression(arguments--)
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ var blah = arguments;
+ try {
+ eval("arguments--;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && blah === arguments;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js b/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js
index 09c186fd3..bb56564bd 100644
--- a/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js
+++ b/test/suite/ch11/11.3/11.3.2/11.3.2-2-2-s.js
@@ -1,23 +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 ch11/11.3/11.3.2/11.3.2-2-2-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appear as a PostfixExpression(eval--)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var blah = eval;
- try {
- eval("eval--;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError && blah === eval;
- }
- }
-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: >
+ Strict Mode - SyntaxError is thrown if the identifier 'eval'
+ appear as a PostfixExpression(eval--)
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ var blah = eval;
+ try {
+ eval("eval--;");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError && blah === eval;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js b/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js
index 6eb43dbbd..c413323c1 100644
--- a/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js
+++ b/test/suite/ch11/11.3/11.3.2/11.3.2-2-3-s.js
@@ -1,19 +1,21 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch11/11.3/11.3.2/11.3.2-2-3-s.js
- * @description Strict Mode - SyntaxError is not thrown if the identifier 'arguments[...]' appears as a PostfixExpression(arguments--)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- arguments[1] = 7;
- arguments[1]--;
- return arguments[1]===6;
- }
-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: >
+ Strict Mode - SyntaxError is not thrown if the identifier
+ 'arguments[...]' appears as a PostfixExpression(arguments--)
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ arguments[1] = 7;
+ arguments[1]--;
+ return arguments[1]===6;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js
index 2fe2120bf..881ef8f20 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "--" is not allowed
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T1.js
- * @description Checking Line Feed
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "--" is not allowed
+description: Checking Line Feed
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u000A--");
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js
index 49654288a..2fd50c357 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "--" is not allowed
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T2.js
- * @description Checking Carriage Return
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "--" is not allowed
+description: Checking Carriage Return
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u000D--");
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js
index 5e0af0e99..9921ebc16 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "--" is not allowed
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T3.js
- * @description Checking Page separator
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "--" is not allowed
+description: Checking Page separator
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u2028--");
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js
index e7d54a741..8a99e8189 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js
@@ -1,14 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Line Terminator between LeftHandSideExpression and "--" is not allowed
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A1.1_T4.js
- * @description Checking Line separator
- * @negative
- */
+/*---
+info: Line Terminator between LeftHandSideExpression and "--" is not allowed
+description: Checking Line separator
+flags: [negative]
+---*/
//CHECK#1
eval("var x = 1; x\u2029--");
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js
index 8140d2b8e..2ca8d0521 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A1.2_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.
-/**
- * White Space between LeftHandSideExpression and "--" are allowed
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A1.2_T1.js
- * @description Checking by using eval
- */
+/*---
+info: White Space between LeftHandSideExpression and "--" are allowed
+description: Checking by using eval
+---*/
//CHECK#1
if (eval("var x = 0; x\u0009--; x") !== -1) {
@@ -37,4 +35,3 @@ if (eval("var x = 0; x\u00A0--; x") !== -1) {
if (eval("var x = 0; x\u0009\u000B\u000C\u0020\u00A0--; x") !== -1) {
$ERROR('#6: var x = 0; x\\u0009\\u000B\\u000C\\u0020\\u00A0--; x === -1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js
index b665af599..67ca58971 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator x-- uses GetValue and PutValue
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A2.1_T1.js
- * @description Type(x) is Reference and GetBase(x) is not null
- */
+/*---
+info: Operator x-- uses GetValue and PutValue
+description: Type(x) is Reference and GetBase(x) is not null
+---*/
//CHECK#1
var x = 1;
@@ -38,4 +36,3 @@ if (object.prop-- !== 1) {
$ERROR('#3: var object = new Object(); object.prop = 1; object.prop--; object.prop === 1 - 1. Actual: ' + (object.prop));
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js
index cae6d80b5..9e243d54f 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator x-- uses GetValue and PutValue
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A2.1_T2.js
- * @description If GetBase(x) is null, throw ReferenceError
- */
+/*---
+info: Operator x-- uses GetValue and PutValue
+description: If GetBase(x) is null, throw ReferenceError
+---*/
//CHECK#1
try {
@@ -18,4 +16,3 @@ catch (e) {
$ERROR('#1.2: x-- throw ReferenceError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js
index adcf758c3..49b6543fe 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js
@@ -1,13 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Operator x-- uses GetValue and PutValue
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js
- * @description If Type(x) is not Reference, throw ReferenceError (or SyntaxError)
- * @negative
- */
+/*---
+info: Operator x-- uses GetValue and PutValue
+description: If Type(x) is not Reference, throw ReferenceError (or SyntaxError)
+flags: [negative]
+---*/
//CHECK#1
try {
@@ -21,4 +19,3 @@ catch (e) {
1--;
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js
index 22f31a1fa..7051544c4 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_A2.2_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.
-/**
- * Operator x-- uses [[Default Value]]
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A2.2_T1.js
- * @description If Type(value) is Object, evaluate ToPrimitive(value, Number)
- */
+/*---
+info: Operator x-- uses [[Default Value]]
+description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
+---*/
//CHECK#1
var object = {valueOf: function() {return 1}};
@@ -107,4 +105,3 @@ catch (e) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object-- throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js
index d35aeffc5..60a846512 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T1.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns x = ToNumber(x) - 1
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A3_T1.js
- * @description Type(x) is boolean primitive or Boolean object
- */
+/*---
+info: Operator x-- returns x = ToNumber(x) - 1
+description: Type(x) is boolean primitive or Boolean object
+---*/
//CHECK#1
var x = true;
@@ -21,4 +19,3 @@ x--;
if (x !== 0 - 1) {
$ERROR('#2: var x = new Boolean(false); x--; x === 0 - 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js
index cf1435a4c..16b38c982 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T2.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns x = ToNumber(x) - 1
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A3_T2.js
- * @description Type(x) is number primitive or Number object
- */
+/*---
+info: Operator x-- returns x = ToNumber(x) - 1
+description: Type(x) is number primitive or Number object
+---*/
//CHECK#1
var x = 1.1;
@@ -21,4 +19,3 @@ x--;
if (x !== -0.1 - 1) {
$ERROR('#2: var x = new Number(-0.1); x--; x === -0.1 - 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js
index 63108752b..19dcfafe9 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T3.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns x = ToNumber(x) - 1
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A3_T3.js
- * @description Type(x) is string primitive or String object
- */
+/*---
+info: Operator x-- returns x = ToNumber(x) - 1
+description: Type(x) is string primitive or String object
+---*/
//CHECK#1
var x = "1";
@@ -28,4 +26,3 @@ x--;
if (x !== -1 - 1) {
$ERROR('#3: var x = new String("-1"); x--; x === -1 - 1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js
index ea248bfb0..a3ea54a5b 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T4.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns x = ToNumber(x) - 1
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A3_T4.js
- * @description Type(x) is undefined or null
- */
+/*---
+info: Operator x-- returns x = ToNumber(x) - 1
+description: Type(x) is undefined or null
+---*/
//CHECK#1
var x;
@@ -21,4 +19,3 @@ x--;
if (x !== -1) {
$ERROR('#2: var x = null; x--; x === -1. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js
index b571f0654..da9c4e6f5 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A3_T5.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns x = ToNumber(x) - 1
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A3_T5.js
- * @description Type(x) is Object object or Function object
- */
+/*---
+info: Operator x-- returns x = ToNumber(x) - 1
+description: Type(x) is Object object or Function object
+---*/
//CHECK#1
var x = {};
@@ -21,4 +19,3 @@ x--;
if (isNaN(x) !== true) {
$ERROR('#2: var x = function(){return 1}; x--; x === Not-a-Number. Actual: ' + (x));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js
index 4d07e77e4..5ed893bd1 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T1.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A4_T1.js
- * @description Type(x) is boolean primitive or Boolean object
- */
+/*---
+info: Operator x-- returns ToNumber(x)
+description: Type(x) is boolean primitive or Boolean object
+---*/
//CHECK#1
var x = true;
@@ -21,4 +19,3 @@ var y = x--;
if (y !== 0) {
$ERROR('#2: var x = new Boolean(false); var y = x--; y === 0. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js
index eb5c3bcde..7af12bd6e 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T2.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A4_T2.js
- * @description Type(x) is number primitive or Number object
- */
+/*---
+info: Operator x-- returns ToNumber(x)
+description: Type(x) is number primitive or Number object
+---*/
//CHECK#1
var x = 1.1;
@@ -21,4 +19,3 @@ var y = x--;
if (y !== -0.1) {
$ERROR('#2: var x = new Number(-0.1); var y = x--; y === -0.1. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js
index 8a4edfca8..8cd6c9140 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T3.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A4_T3.js
- * @description Type(x) is string primitive or String object
- */
+/*---
+info: Operator x-- returns ToNumber(x)
+description: Type(x) is string primitive or String object
+---*/
//CHECK#1
var x = "1";
@@ -28,4 +26,3 @@ var y = x--;
if (y !== -1) {
$ERROR('#3: var x = new String("-1"); var y = x--; y === -1. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js
index add21d32a..4256ee0a1 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T4.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A4_T4.js
- * @description If Type(x) is undefined or null
- */
+/*---
+info: Operator x-- returns ToNumber(x)
+description: If Type(x) is undefined or null
+---*/
//CHECK#1
var x;
@@ -21,4 +19,3 @@ var y = x--;
if (y !== 0) {
$ERROR('#2: var x = null; var y = x--; y === 0. Actual: ' + (y));
}
-
diff --git a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js b/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js
index aa6856568..1c80151da 100644
--- a/test/suite/ch11/11.3/11.3.2/S11.3.2_A4_T5.js
+++ b/test/suite/ch11/11.3/11.3.2/S11.3.2_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.
-/**
- * Operator x-- returns ToNumber(x)
- *
- * @path ch11/11.3/11.3.2/S11.3.2_A4_T5.js
- * @description Type(x) is Object object or Function object
- */
+/*---
+info: Operator x-- returns ToNumber(x)
+description: Type(x) is Object object or Function object
+---*/
//CHECK#1
var x = {};
@@ -21,4 +19,3 @@ var y = x--;
if (isNaN(y) !== true) {
$ERROR('#2: var x = function(){return 1}; var y = x--; y === Not-a-Number. Actual: ' + (y));
}
-