aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch12/12.5
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch12/12.5')
-rw-r--r--test/suite/ch12/12.5/S12.5_A1.1_T1.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A1.1_T2.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A1.2_T1.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A1.2_T2.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A10_T1.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A10_T2.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A11.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A12_T1.js11
-rw-r--r--test/suite/ch12/12.5/S12.5_A12_T2.js11
-rw-r--r--test/suite/ch12/12.5/S12.5_A12_T3.js11
-rw-r--r--test/suite/ch12/12.5/S12.5_A12_T4.js11
-rw-r--r--test/suite/ch12/12.5/S12.5_A1_T1.js12
-rw-r--r--test/suite/ch12/12.5/S12.5_A1_T2.js12
-rw-r--r--test/suite/ch12/12.5/S12.5_A2.js14
-rw-r--r--test/suite/ch12/12.5/S12.5_A3.js14
-rw-r--r--test/suite/ch12/12.5/S12.5_A4.js15
-rw-r--r--test/suite/ch12/12.5/S12.5_A5.js18
-rw-r--r--test/suite/ch12/12.5/S12.5_A6_T1.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A6_T2.js14
-rw-r--r--test/suite/ch12/12.5/S12.5_A7.js13
-rw-r--r--test/suite/ch12/12.5/S12.5_A8.js13
21 files changed, 113 insertions, 160 deletions
diff --git a/test/suite/ch12/12.5/S12.5_A1.1_T1.js b/test/suite/ch12/12.5/S12.5_A1.1_T1.js
index ae2038c98..db23e2fd0 100644
--- a/test/suite/ch12/12.5/S12.5_A1.1_T1.js
+++ b/test/suite/ch12/12.5/S12.5_A1.1_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.
-/**
- * 0, null, undefined, false, empty string, NaN in expression is evaluated to false
- *
- * @path ch12/12.5/S12.5_A1.1_T1.js
- * @description Using "if" without "else" construction
- */
+/*---
+info: >
+ 0, null, undefined, false, empty string, NaN in expression is evaluated
+ to false
+description: Using "if" without "else" construction
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -50,4 +50,3 @@ if(NaN)
$ERROR('#5: NaN in expression is evaluated to false ');
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A1.1_T2.js b/test/suite/ch12/12.5/S12.5_A1.1_T2.js
index ba5d8e3cb..fc30b6300 100644
--- a/test/suite/ch12/12.5/S12.5_A1.1_T2.js
+++ b/test/suite/ch12/12.5/S12.5_A1.1_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.
-/**
- * 0, null, undefined, false, empty string, NaN in expression is evaluated to false
- *
- * @path ch12/12.5/S12.5_A1.1_T2.js
- * @description Using "if/else" construction
- */
+/*---
+info: >
+ 0, null, undefined, false, empty string, NaN in expression is evaluated
+ to false
+description: Using "if/else" construction
+---*/
var c=0;
//////////////////////////////////////////////////////////////////////////////
@@ -68,4 +68,3 @@ else
if (c!=6) $ERROR('#6.2: else branch don`t execute');
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A1.2_T1.js b/test/suite/ch12/12.5/S12.5_A1.2_T1.js
index 19ba4cdd1..9c41a9b45 100644
--- a/test/suite/ch12/12.5/S12.5_A1.2_T1.js
+++ b/test/suite/ch12/12.5/S12.5_A1.2_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.
-/**
- * 1, true, non-empty string and others in expression is evaluated to true when using operator "new"
- *
- * @path ch12/12.5/S12.5_A1.2_T1.js
- * @description Using "if" without "else" construction
- */
+/*---
+info: >
+ 1, true, non-empty string and others in expression is evaluated to true
+ when using operator "new"
+description: Using "if" without "else" construction
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -70,4 +70,3 @@ if(!(new String("")))
$ERROR('#9: new empty string in expression is evaluated to true ');
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A1.2_T2.js b/test/suite/ch12/12.5/S12.5_A1.2_T2.js
index b384311f1..2bbd15ea7 100644
--- a/test/suite/ch12/12.5/S12.5_A1.2_T2.js
+++ b/test/suite/ch12/12.5/S12.5_A1.2_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.
-/**
- * 1, true, non-empty string and others in expression is evaluated to true when using operator "new"
- *
- * @path ch12/12.5/S12.5_A1.2_T2.js
- * @description Using "if/else" construction
- */
+/*---
+info: >
+ 1, true, non-empty string and others in expression is evaluated to true
+ when using operator "new"
+description: Using "if/else" construction
+---*/
var c=0;
//////////////////////////////////////////////////////////////////////////////
@@ -98,4 +98,3 @@ else
if (c!=9) $ERROR('#9.2: else branch don`t execute');
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A10_T1.js b/test/suite/ch12/12.5/S12.5_A10_T1.js
index 4995fe1c2..b1c04d2bb 100644
--- a/test/suite/ch12/12.5/S12.5_A10_T1.js
+++ b/test/suite/ch12/12.5/S12.5_A10_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 expession inside the "if" expression is allowed
- *
- * @path ch12/12.5/S12.5_A10_T1.js
- * @description Using function expession(function __func(){return 0;}) inside the "if" expression
- */
+/*---
+info: Function expession inside the "if" expression is allowed
+description: >
+ Using function expession(function __func(){return 0;}) inside the
+ "if" expression
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#
@@ -17,4 +17,3 @@ if(function __func(){return 0;}){
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A10_T2.js b/test/suite/ch12/12.5/S12.5_A10_T2.js
index bcb187b08..1c77d81c9 100644
--- a/test/suite/ch12/12.5/S12.5_A10_T2.js
+++ b/test/suite/ch12/12.5/S12.5_A10_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 expession inside the "if" expression is allowed
- *
- * @path ch12/12.5/S12.5_A10_T2.js
- * @description Using function expession "function __func(){return 0;}()" within "if" expression
- */
+/*---
+info: Function expession inside the "if" expression is allowed
+description: >
+ Using function expession "function __func(){return 0;}()" within
+ "if" expression
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#
@@ -17,4 +17,3 @@ if(function __func(){return 0;}()){
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A11.js b/test/suite/ch12/12.5/S12.5_A11.js
index 250b29f50..7f7c1dc78 100644
--- a/test/suite/ch12/12.5/S12.5_A11.js
+++ b/test/suite/ch12/12.5/S12.5_A11.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.
-/**
- * {} within the "if" expression is not allowed
- *
- * @path ch12/12.5/S12.5_A11.js
- * @description Checking if execution of "if({1})" fails
- * @negative
- */
+/*---
+info: "{} within the \"if\" expression is not allowed"
+description: Checking if execution of "if({1})" fails
+flags: [negative]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#
@@ -20,4 +18,3 @@ if({1})
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A12_T1.js b/test/suite/ch12/12.5/S12.5_A12_T1.js
index 43f858b09..86587572d 100644
--- a/test/suite/ch12/12.5/S12.5_A12_T1.js
+++ b/test/suite/ch12/12.5/S12.5_A12_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.
-/**
- * Embedded "if/else" constructions are allowed
- *
- * @path ch12/12.5/S12.5_A12_T1.js
- * @description Using embedded "if/else" into "if/else" constructions
- */
+/*---
+info: Embedded "if/else" constructions are allowed
+description: Using embedded "if/else" into "if/else" constructions
+---*/
//CHECK# 1
if(true)
@@ -55,4 +53,3 @@ else
$ERROR('#4.3: At embedded "if/else" constructions engine must select right branches');
else
;
-
diff --git a/test/suite/ch12/12.5/S12.5_A12_T2.js b/test/suite/ch12/12.5/S12.5_A12_T2.js
index c9115994b..ad8918d34 100644
--- a/test/suite/ch12/12.5/S12.5_A12_T2.js
+++ b/test/suite/ch12/12.5/S12.5_A12_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.
-/**
- * Embedded "if/else" constructions are allowed
- *
- * @path ch12/12.5/S12.5_A12_T2.js
- * @description Using embedded "if" into "if/else" constructions
- */
+/*---
+info: Embedded "if/else" constructions are allowed
+description: Using embedded "if" into "if/else" constructions
+---*/
//CHECK# 1
if(true){
@@ -47,4 +45,3 @@ else{
if (false)
$ERROR('#4.3: At embedded "if/else" constructions engine must select right branches');
}
-
diff --git a/test/suite/ch12/12.5/S12.5_A12_T3.js b/test/suite/ch12/12.5/S12.5_A12_T3.js
index a17cff21f..7331b998c 100644
--- a/test/suite/ch12/12.5/S12.5_A12_T3.js
+++ b/test/suite/ch12/12.5/S12.5_A12_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.
-/**
- * Embedded "if/else" constructions are allowed
- *
- * @path ch12/12.5/S12.5_A12_T3.js
- * @description Using embedded "if/else" into "if" without "else" constructions
- */
+/*---
+info: Embedded "if/else" constructions are allowed
+description: Using embedded "if/else" into "if" without "else" constructions
+---*/
//CHECK# 1
if(true)
@@ -35,4 +33,3 @@ if(false)
$ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');
else
$ERROR('#4.2: At embedded "if/else" constructions engine must select right branches');
-
diff --git a/test/suite/ch12/12.5/S12.5_A12_T4.js b/test/suite/ch12/12.5/S12.5_A12_T4.js
index 03f643d62..0900bbe7d 100644
--- a/test/suite/ch12/12.5/S12.5_A12_T4.js
+++ b/test/suite/ch12/12.5/S12.5_A12_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.
-/**
- * Embedded "if/else" constructions are allowed
- *
- * @path ch12/12.5/S12.5_A12_T4.js
- * @description Using embedded "if" into "if" constructions
- */
+/*---
+info: Embedded "if/else" constructions are allowed
+description: Using embedded "if" into "if" constructions
+---*/
//CHECK# 1
if(true)
@@ -30,4 +28,3 @@ if(false)
if(false)
if (true)
$ERROR('#4.1: At embedded "if/else" constructions engine must select right branches');
-
diff --git a/test/suite/ch12/12.5/S12.5_A1_T1.js b/test/suite/ch12/12.5/S12.5_A1_T1.js
index df6f327d4..780a48aed 100644
--- a/test/suite/ch12/12.5/S12.5_A1_T1.js
+++ b/test/suite/ch12/12.5/S12.5_A1_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.
-/**
- * 1, true, non-empty string in expression is evaluated to true
- *
- * @path ch12/12.5/S12.5_A1_T1.js
- * @description Using "if" without "else" construction
- */
+/*---
+info: 1, true, non-empty string in expression is evaluated to true
+description: Using "if" without "else" construction
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -35,5 +33,3 @@ if(!("A"))
$ERROR('#4: "A" in expression is evaluated to true');
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch12/12.5/S12.5_A1_T2.js b/test/suite/ch12/12.5/S12.5_A1_T2.js
index ea952a930..f90521132 100644
--- a/test/suite/ch12/12.5/S12.5_A1_T2.js
+++ b/test/suite/ch12/12.5/S12.5_A1_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.
-/**
- * 1, true, non-empty string in expression is evaluated to true
- *
- * @path ch12/12.5/S12.5_A1_T2.js
- * @description Using "if/else" construction
- */
+/*---
+info: 1, true, non-empty string in expression is evaluated to true
+description: Using "if/else" construction
+---*/
var c=0;
//////////////////////////////////////////////////////////////////////////////
@@ -48,5 +46,3 @@ else
if (c!=4) $ERROR('#4.2: else branch don`t execute');
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch12/12.5/S12.5_A2.js b/test/suite/ch12/12.5/S12.5_A2.js
index c953c29cd..c2d9b8577 100644
--- a/test/suite/ch12/12.5/S12.5_A2.js
+++ b/test/suite/ch12/12.5/S12.5_A2.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.
-/**
- * In the "if" Statement eval in Expression is admitted
- *
- * @path ch12/12.5/S12.5_A2.js
- * @description Checking by using eval "eval("true")"
- * @negative
- */
+/*---
+info: In the "if" Statement eval in Expression is admitted
+description: Checking by using eval "eval("true")"
+flags: [negative]
+includes: [$FAIL.js]
+---*/
if (eval("true")) $FAIL('#1: In the "if" Statement eval as Expression is admitted');
-
diff --git a/test/suite/ch12/12.5/S12.5_A3.js b/test/suite/ch12/12.5/S12.5_A3.js
index 3eb41d59b..a8a354bbf 100644
--- a/test/suite/ch12/12.5/S12.5_A3.js
+++ b/test/suite/ch12/12.5/S12.5_A3.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.
-/**
- * When the production "IfStatement: if ( Expression ) Statement else Statement" is evaluated, Expression is evaluated first
- *
- * @path ch12/12.5/S12.5_A3.js
- * @description The Expression is "(function(){throw 1})()"
- */
+/*---
+info: >
+ When the production "IfStatement: if ( Expression ) Statement else
+ Statement" is evaluated, Expression is evaluated first
+description: The Expression is "(function(){throw 1})()"
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -31,5 +31,3 @@ try {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch12/12.5/S12.5_A4.js b/test/suite/ch12/12.5/S12.5_A4.js
index 73babcfea..69ddb92ea 100644
--- a/test/suite/ch12/12.5/S12.5_A4.js
+++ b/test/suite/ch12/12.5/S12.5_A4.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.
-/**
- * When the production "IfStatement: if ( Expression ) Statement else Statement" is evaluated, Statement(s) is(are) evaluated second
- *
- * @path ch12/12.5/S12.5_A4.js
- * @description The first statement is "(function(){throw "instatement"})()"
- */
+/*---
+info: >
+ When the production "IfStatement: if ( Expression ) Statement else
+ Statement" is evaluated, Statement(s) is(are) evaluated second
+description: The first statement is "(function(){throw "instatement"})()"
+includes: [$FAIL.js]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -33,5 +34,3 @@ try {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch12/12.5/S12.5_A5.js b/test/suite/ch12/12.5/S12.5_A5.js
index 72c334a67..09c9ba1b6 100644
--- a/test/suite/ch12/12.5/S12.5_A5.js
+++ b/test/suite/ch12/12.5/S12.5_A5.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.
-/**
- * FunctionDeclaration inside the "if" Expression is evaluated as true and function will not be declarated
- *
- * @path ch12/12.5/S12.5_A5.js
- * @description The "if" Expression is "function __func(){throw "FunctionExpression";}"
- */
+/*---
+info: >
+ FunctionDeclaration inside the "if" Expression is evaluated as true and
+ function will not be declarated
+description: >
+ The "if" Expression is "function __func(){throw
+ "FunctionExpression";}"
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -42,7 +44,3 @@ try {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
diff --git a/test/suite/ch12/12.5/S12.5_A6_T1.js b/test/suite/ch12/12.5/S12.5_A6_T1.js
index 76aabe63c..8d822d677 100644
--- a/test/suite/ch12/12.5/S12.5_A6_T1.js
+++ b/test/suite/ch12/12.5/S12.5_A6_T1.js
@@ -1,17 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * In the If statement expression must be enclosed in braces
- *
- * @path ch12/12.5/S12.5_A6_T1.js
- * @description Checking if execution of "if true" fails
- * @negative
- */
+/*---
+info: In the If statement expression must be enclosed in braces
+description: Checking if execution of "if true" fails
+flags: [negative]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if true;
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A6_T2.js b/test/suite/ch12/12.5/S12.5_A6_T2.js
index 1b6f383ab..8c1b46784 100644
--- a/test/suite/ch12/12.5/S12.5_A6_T2.js
+++ b/test/suite/ch12/12.5/S12.5_A6_T2.js
@@ -1,18 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * In the If statement expression must be enclosed in braces
- *
- * @path ch12/12.5/S12.5_A6_T2.js
- * @description Checking if execution of "if false" fails
- * @negative
- */
+/*---
+info: In the If statement expression must be enclosed in braces
+description: Checking if execution of "if false" fails
+flags: [negative]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if false;
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch12/12.5/S12.5_A7.js b/test/suite/ch12/12.5/S12.5_A7.js
index f450d6aea..d8eed0468 100644
--- a/test/suite/ch12/12.5/S12.5_A7.js
+++ b/test/suite/ch12/12.5/S12.5_A7.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.
-/**
- * In the "if" statement empty statement is allowed and is evaluated to "undefined"
- *
- * @path ch12/12.5/S12.5_A7.js
- * @description Checking by using eval "eval("if(1);"))"
- */
+/*---
+info: >
+ In the "if" statement empty statement is allowed and is evaluated to
+ "undefined"
+description: Checking by using eval "eval("if(1);"))"
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -22,4 +22,3 @@ try {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch12/12.5/S12.5_A8.js b/test/suite/ch12/12.5/S12.5_A8.js
index 7a2d4b9c6..5bbc1ad15 100644
--- a/test/suite/ch12/12.5/S12.5_A8.js
+++ b/test/suite/ch12/12.5/S12.5_A8.js
@@ -1,17 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * In the "if" Statement empty expression is not allowed
- *
- * @path ch12/12.5/S12.5_A8.js
- * @description Checking if execution of "if()" fails
- * @negative
- */
+/*---
+info: In the "if" Statement empty expression is not allowed
+description: Checking if execution of "if()" fails
+flags: [negative]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if();
//
//////////////////////////////////////////////////////////////////////////////
-