aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch07/7.9/7.9.2
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch07/7.9/7.9.2')
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T1.js13
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T2.js13
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T3.js13
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T4.js14
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T5.js14
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T6.js15
-rw-r--r--test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T7.js14
7 files changed, 41 insertions, 55 deletions
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T1.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T1.js
index 566fbbf47..a2af18a4e 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T1.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_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.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T1.js
- * @description { 1 2 } 3 is not a valid sentence in the ECMAScript grammar
- * @negative
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: "{ 1 2 } 3 is not a valid sentence in the ECMAScript grammar"
+flags: [negative]
+---*/
//CHECK#1
{ 1 2 } 3
-
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T2.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T2.js
index 565d860a2..26969b2a9 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T2.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T2.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T2.js
- * @description { 1 \n 2 } 3 is a valid sentence in the ECMAScript grammar with automatic semicolon insertion
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: >
+ { 1 \n 2 } 3 is a valid sentence in the ECMAScript grammar with
+ automatic semicolon insertion
+---*/
//CHECK#1
{ 1
2 } 3
-
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T3.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T3.js
index ab0d03265..0a5c58d01 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T3.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T3.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T3.js
- * @description for( a ; b \n ) is not a valid sentence in the ECMAScript grammar
- * @negative
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: for( a ; b \n ) is not a valid sentence in the ECMAScript grammar
+flags: [negative]
+---*/
//CHECK#1
for( a ; b
)
-
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T4.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T4.js
index e4c39798a..b2685d08a 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T4.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T4.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T4.js
- * @description return \n a+b is a valid sentence in the ECMAScript grammar
- * with automatic semicolon insertion, but returned undefined
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: >
+ return \n a+b is a valid sentence in the ECMAScript grammar with
+ automatic semicolon insertion, but returned undefined
+---*/
//CHECK#1
var a=1,b=2;
@@ -17,4 +16,3 @@ function test(){
}
var x=test();
if (x!==undefined) $ERROR('#1: Automatic semicolon insertion not work with return');
-
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T5.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T5.js
index 3ca074a17..c6dea2aee 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T5.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T5.js
- * @description a=b \n ++c is a valid sentence in the ECMAScript grammar
- * with automatic semicolon insertion, but a!==b++c
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: >
+ a=b \n ++c is a valid sentence in the ECMAScript grammar with
+ automatic semicolon insertion, but a!==b++c
+---*/
//CHECK#1
var a=1,b=2,c=3;
@@ -15,4 +14,3 @@ a=b
++c
if (a!==b) $ERROR('#1: Automatic semicolon insertion not work with ++');
-
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T6.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T6.js
index 8284f932a..b51fc76f1 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T6.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T6.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T6.js
- * @description if(a>b) \n else c=d is not a valid sentence in the ECMAScript grammar
- * @negative
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: >
+ if(a>b) \n else c=d is not a valid sentence in the ECMAScript
+ grammar
+flags: [negative]
+---*/
//CHECK#1
var a=1,b=2,c=3,d;
if(a>b)
else c=d
-
diff --git a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T7.js b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T7.js
index b2e1697bb..6203c7ceb 100644
--- a/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T7.js
+++ b/test/suite/ch07/7.9/7.9.2/S7.9.2_A1_T7.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Check examples for automatic semicolon insertion from the Standart
- *
- * @path ch07/7.9/7.9.2/S7.9.2_A1_T7.js
- * @description a=b+c \n (d+e).print() is a valid sentence in the ECMAScript grammar,
- * and automatic semicolon insertion not run
- */
+/*---
+info: Check examples for automatic semicolon insertion from the Standart
+description: >
+ a=b+c \n (d+e).print() is a valid sentence in the ECMAScript
+ grammar, and automatic semicolon insertion not run
+---*/
//CHECK#1
function c (a){
@@ -20,4 +19,3 @@ a=b+c
(d+e)
if (a !== 20) $ERROR('#1: Automatic semicolon insertion work wrong');
-