diff options
Diffstat (limited to 'test/suite/ch12/12.6/12.6.1')
24 files changed, 135 insertions, 186 deletions
diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A1.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A1.js index b4cf09ab9..af965bd2b 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A1.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_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. -/** - * When the production "do Statement while ( Expression )" is evaluated, Statement is evaluated first - * - * @path ch12/12.6/12.6.1/S12.6.1_A1.js - * @description Evaluating various Expressions - */ +/*--- +info: > + When the production "do Statement while ( Expression )" is evaluated, + Statement is evaluated first +description: Evaluating various Expressions +---*/ var __in__do; @@ -39,4 +39,3 @@ if (__in__do!==3) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A10.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A10.js index 0c01a5e2e..335b86261 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A10.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A10.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. -/** - * FunctionExpression within a "do-while" statement is allowed, but no function with the given name will appear in the global context - * - * @path ch12/12.6/12.6.1/S12.6.1_A10.js - * @description Also this a test on FunctionExpression - */ +/*--- +info: > + FunctionExpression within a "do-while" statement is allowed, but no + function with the given name will appear in the global context +description: Also this a test on FunctionExpression +---*/ var check = 0; do { @@ -26,4 +26,3 @@ if (check !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A11.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A11.js index 60071bd6b..942ee91f4 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A11.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A11.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. -/** - * Block "{}" in a "do-while" Expression is evaluated to true - * - * @path ch12/12.6/12.6.1/S12.6.1_A11.js - * @description Checking if execution of "do {} while({})" passes - */ +/*--- +info: Block "{}" in a "do-while" Expression is evaluated to true +description: Checking if execution of "do {} while({})" passes +---*/ do { var __in__do=1; @@ -20,4 +18,3 @@ if (__in__do !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A12.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A12.js index 1e623bc43..203054a67 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A12.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A12.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. -/** - * Any statement within "do-while" construction must be a compound - * - * @path ch12/12.6/12.6.1/S12.6.1_A12.js - * @description Checking if execution of "do var x=1; var y =2; while (0)" fails - * @negative - */ +/*--- +info: Any statement within "do-while" construction must be a compound +description: Checking if execution of "do var x=1; var y =2; while (0)" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do var x=1; var y =2; while (0); // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_T1.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_T1.js index 38bc21491..d521ddf7c 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_T1.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_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. -/** - * FunctionExpression within a "do-while" Expression is allowed - * - * @path ch12/12.6/12.6.1/S12.6.1_A14_T1.js - * @description Using FunctionExpression "function __func(){return 0;}" as an Expression - */ +/*--- +info: FunctionExpression within a "do-while" Expression is allowed +description: > + Using FunctionExpression "function __func(){return 0;}" as an + Expression +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -24,4 +24,3 @@ if (__reached !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_T2.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_T2.js index 9ae3ad763..2507e55b9 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_T2.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A14_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. -/** - * FunctionExpression within a "do-while" Expression is allowed - * - * @path ch12/12.6/12.6.1/S12.6.1_A14_T2.js - * @description Using FunctionExpression "function __func(){return 0;}()" as an Expression - */ +/*--- +info: FunctionExpression within a "do-while" Expression is allowed +description: > + Using FunctionExpression "function __func(){return 0;}()" as an + Expression +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -24,4 +24,3 @@ if (__reached !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A15.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A15.js index 65588750c..9e8783a88 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A15.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A15.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. -/** - * Block within a "do-while" Expression is not allowed - * - * @path ch12/12.6/12.6.1/S12.6.1_A15.js - * @description Using "{0}" Block as an Expression - * @negative - */ +/*--- +info: Block within a "do-while" Expression is not allowed +description: Using "{0}" Block as an Expression +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK# @@ -16,4 +14,3 @@ do{ }while({0}); // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js index 023c7d4a2..b54e2fe8c 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A2.js @@ -1,17 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * While evaluating "do Statement while ( Expression )", Statement is evaluated first and only after it is done Expression is checked - * - * @path ch12/12.6/12.6.1/S12.6.1_A2.js - * @description Evaluating Statement with error Expression - */ +/*--- +info: > + While evaluating "do Statement while ( Expression )", Statement is + evaluated first and only after it is done Expression is checked +description: Evaluating Statement with error Expression +includes: [Test262Error.js] +---*/ try { do __in__do = "reached"; while (abbracadabra); - $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception');
-} catch (e) {
+ $ERROR('#1: \'do __in__do = "reached"; while (abbracadabra)\' lead to throwing exception'); +} catch (e) { if (e instanceof Test262Error) throw e; } @@ -22,6 +23,3 @@ if (__in__do !== "reached") { } // ////////////////////////////////////////////////////////////////////////////// - - - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A3.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A3.js index 5f5f0ed69..3a27a2d6a 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A3.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_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 "do Statement while ( Expression )" is evaluated, then (normal, V, empty) is returned - * - * @path ch12/12.6/12.6.1/S12.6.1_A3.js - * @description Using eval "eval("do __in__do=1; while (false)")" - */ +/*--- +info: > + When the production "do Statement while ( Expression )" is evaluated, + then (normal, V, empty) is returned +description: Using eval "eval("do __in__do=1; while (false)")" +---*/ __evaluated = eval("do __in__do=1; while (false)"); @@ -25,4 +25,3 @@ if (__evaluated !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T1.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T1.js index 917afe329..5a9903ff4 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T1.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_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. -/** - * "break" within a "do-while" Statement is allowed and performed as described in 12.8 - * - * @path ch12/12.6/12.6.1/S12.6.1_A4_T1.js - * @description Using "break" within a "do-while" loop - */ +/*--- +info: > + "break" within a "do-while" Statement is allowed and performed as + described in 12.8 +description: Using "break" within a "do-while" loop +---*/ do { __in__do__before__break="reached"; @@ -29,4 +29,3 @@ if (typeof __in__do__after__break !== "undefined") { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T2.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T2.js index 72e01a07d..c703903e0 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T2.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_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. -/** - * "break" within a "do-while" Statement is allowed and performed as described in 12.8 - * - * @path ch12/12.6/12.6.1/S12.6.1_A4_T2.js - * @description "break" and VariableDeclaration within a "do-while" statement - */ +/*--- +info: > + "break" within a "do-while" Statement is allowed and performed as + described in 12.8 +description: "\"break\" and VariableDeclaration within a \"do-while\" statement" +---*/ do_out : do { var __in__do__before__break="black"; @@ -25,4 +25,3 @@ if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T3.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T3.js index a6adc0836..fc7381faf 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T3.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_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. -/** - * "break" within a "do-while" Statement is allowed and performed as described in 12.8 - * - * @path ch12/12.6/12.6.1/S12.6.1_A4_T3.js - * @description "break" and VariableDeclaration within a "do-while" statement - */ +/*--- +info: > + "break" within a "do-while" Statement is allowed and performed as + described in 12.8 +description: "\"break\" and VariableDeclaration within a \"do-while\" statement" +---*/ do_out : do { var __in__do__before__break="once"; @@ -25,4 +25,3 @@ if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T4.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T4.js index 52cb23cc9..1cf35fd09 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T4.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_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. -/** - * "break" within a "do-while" Statement is allowed and performed as described in 12.8 - * - * @path ch12/12.6/12.6.1/S12.6.1_A4_T4.js - * @description "break" and VariableDeclaration within a "do-while" statement - */ +/*--- +info: > + "break" within a "do-while" Statement is allowed and performed as + described in 12.8 +description: "\"break\" and VariableDeclaration within a \"do-while\" statement" +---*/ do_out : do { var __in__do__before__break="reached"; @@ -25,5 +25,3 @@ if (!(__in__do__before__break&&__in__do__IN__before__break&&!__in__do__IN__after } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T5.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T5.js index 97f65bf59..a80e09223 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T5.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A4_T5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * "break" within a "do-while" Statement is allowed and performed as described in 12.8 - * - * @path ch12/12.6/12.6.1/S12.6.1_A4_T5.js - * @description Using labeled "break" in order to continue a loop - */ +/*--- +info: > + "break" within a "do-while" Statement is allowed and performed as + described in 12.8 +description: Using labeled "break" in order to continue a loop +---*/ //CHECK#1 var i=0; @@ -20,4 +20,3 @@ woohoo:{ } while ( true ); if (i!==10) $ERROR('#1.2: i===10. Actual: i==='+ i ); } - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A5.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A5.js index 67bc20de2..a3ae2adda 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A5.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A5.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. -/** - * After "do-while" is broken, (normal, V, empty) is returned - * - * @path ch12/12.6/12.6.1/S12.6.1_A5.js - * @description Using eval - */ +/*--- +info: After "do-while" is broken, (normal, V, empty) is returned +description: Using eval +---*/ __evaluated = eval("do {__in__do__before__break=1; break; __in__do__after__break=2;} while(0)"); @@ -33,4 +31,3 @@ if (__evaluated !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T1.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T1.js index 40af77c63..719e11fb7 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T1.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_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. -/** - * Expression in "do-while" IterationStatement is bracketed with braces - * - * @path ch12/12.6/12.6.1/S12.6.1_A6_T1.js - * @description Checking if execution of "do{} while 1" fails - * @negative - */ +/*--- +info: Expression in "do-while" IterationStatement is bracketed with braces +description: Checking if execution of "do{} while 1" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do break; while 1; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T2.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T2.js index 06fb063ca..14c81612a 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T2.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T2.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. -/** - * Expression in "do-while" IterationStatement is bracketed with braces - * - * @path ch12/12.6/12.6.1/S12.6.1_A6_T2.js - * @description Checking if execution of "do{} while 0" fails - * @negative - */ +/*--- +info: Expression in "do-while" IterationStatement is bracketed with braces +description: Checking if execution of "do{} while 0" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do break; while 0; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T3.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T3.js index b29c7c83f..fb782aced 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T3.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T3.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. -/** - * Expression in "do-while" IterationStatement is bracketed with braces - * - * @path ch12/12.6/12.6.1/S12.6.1_A6_T3.js - * @description Checking if execution of "do{}while true" fails - * @negative - */ +/*--- +info: Expression in "do-while" IterationStatement is bracketed with braces +description: Checking if execution of "do{}while true" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do break; while true; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T4.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T4.js index 55b670506..620291efb 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T4.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T4.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. -/** - * Expression in "do-while" IterationStatement is bracketed with braces - * - * @path ch12/12.6/12.6.1/S12.6.1_A6_T4.js - * @description Checking if execution of "do{}while false" fails - * @negative - */ +/*--- +info: Expression in "do-while" IterationStatement is bracketed with braces +description: Checking if execution of "do{}while false" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do break; while false; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T5.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T5.js index 4b0b06202..342bd5ac1 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T5.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T5.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. -/** - * Expression in "do-while" IterationStatement is bracketed with braces - * - * @path ch12/12.6/12.6.1/S12.6.1_A6_T5.js - * @description Checking if execution of "do{}while ''" fails - * @negative - */ +/*--- +info: Expression in "do-while" IterationStatement is bracketed with braces +description: Checking if execution of "do{}while ''" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do break; while ''; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T6.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T6.js index 35e96f41e..fcb23fa93 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T6.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A6_T6.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. -/** - * Expression in "do-while" IterationStatement is bracketed with braces - * - * @path ch12/12.6/12.6.1/S12.6.1_A6_T6.js - * @description Checking if execution of "do{}while 'hood'" fails - * @negative - */ +/*--- +info: Expression in "do-while" IterationStatement is bracketed with braces +description: Checking if execution of "do{}while 'hood'" fails +flags: [negative] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 do break; while 'hood'; // ////////////////////////////////////////////////////////////////////////////// - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A7.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A7.js index 78ca8c4ec..7f89e9340 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A7.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_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. -/** - * The "do-while" Statement is evaluted according to 12.6.1 and returns (normal, V, empty) - * - * @path ch12/12.6/12.6.1/S12.6.1_A7.js - * @description Using eval - */ +/*--- +info: > + The "do-while" Statement is evaluted according to 12.6.1 and returns + (normal, V, empty) +description: Using eval +---*/ var __condition=0 @@ -27,5 +27,3 @@ if (__evaluated !== 4) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A8.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A8.js index 2f7c7e742..8261c98c3 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A8.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A8.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. -/** - * "continue" statement within a "do-while" Statement is allowed - * - * @path ch12/12.6/12.6.1/S12.6.1_A8.js - * @description Using eval - */ +/*--- +info: "\"continue\" statement within a \"do-while\" Statement is allowed" +description: Using eval +---*/ var __condition = 0, __odds=0; @@ -27,5 +25,3 @@ if (__evaluated !== 4) { } // ////////////////////////////////////////////////////////////////////////////// - - diff --git a/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js b/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js index e9e831b07..78de25003 100644 --- a/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js +++ b/test/suite/ch12/12.6/12.6.1/S12.6.1_A9.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * "do-while" Statement is evaluated without syntax checks - * - * @path ch12/12.6/12.6.1/S12.6.1_A9.js - * @description Throwing system exception whithin a "do-while" loop - */ +/*--- +info: "\"do-while\" Statement is evaluated without syntax checks" +description: Throwing system exception whithin a "do-while" loop +includes: [Test262Error.js] +---*/ ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -15,9 +14,9 @@ try { var x = 1; abaracadabara; } while(0); - $ERROR('#1: "abbracadabra" lead to throwing exception');
-
-} catch (e) {
+ $ERROR('#1: "abbracadabra" lead to throwing exception'); + +} catch (e) { if (e instanceof Test262Error) throw e; } @@ -26,4 +25,3 @@ if (x !== 1) { } // ////////////////////////////////////////////////////////////////////////////// - |