diff --git a/test/language/statements/break/S12.8_A3.js b/test/language/statements/break/S12.8_A3.js index 013f246e345..3616a368b55 100644 --- a/test/language/statements/break/S12.8_A3.js +++ b/test/language/statements/break/S12.8_A3.js @@ -13,7 +13,7 @@ LABEL_DO_LOOP : do { LABEL_IN : x=2; break ; LABEL_IN_2 : var y=2; - + function IN_DO_FUNC(){} } while(0); @@ -25,7 +25,7 @@ function OUT_FUNC(){} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((x!==2)&&(y!==0)) { +if ((x!==2)||(y!==0)) { throw new Test262Error('#1: x === 2 and y === 0. Actual: x ==='+x+' and y ==='+y); } // diff --git a/test/language/statements/break/S12.8_A4_T1.js b/test/language/statements/break/S12.8_A4_T1.js index 9a3d6104b6a..008b9e147a0 100644 --- a/test/language/statements/break/S12.8_A4_T1.js +++ b/test/language/statements/break/S12.8_A4_T1.js @@ -16,7 +16,7 @@ LABEL_DO_LOOP : do { if(x===10)return; break LABEL_DO_LOOP; LABEL_IN_2 : y++; - + function IN_DO_FUNC(){} } while(0); @@ -28,7 +28,7 @@ function OUT_FUNC(){} })(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((x!==1)&&(y!==0)) { +if ((x!==1)||(y!==0)) { throw new Test262Error('#1: x === 1 and y === 0. Actual: x === '+x+' and y ==='+ y ); } // diff --git a/test/language/statements/break/S12.8_A4_T2.js b/test/language/statements/break/S12.8_A4_T2.js index 778445eae00..2cd29168399 100644 --- a/test/language/statements/break/S12.8_A4_T2.js +++ b/test/language/statements/break/S12.8_A4_T2.js @@ -20,9 +20,9 @@ LABEL_DO_LOOP : do { break LABEL_NESTED_LOOP; LABEL_IN_NESTED_2 : yy++; } while (0); - + LABEL_IN_2 : y++; - + function IN_DO_FUNC(){} } while(0); @@ -34,7 +34,7 @@ function OUT_FUNC(){} })(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((x!==1)&&(y!==1)&&(xx!==1)&(yy!==0)) { +if ((x!==1)||(y!==1)||(xx!==1)||(yy!==0)) { throw new Test262Error('#1: x === 1 and y === 1 and xx === 1 and yy === 0. Actual: x==='+x+' and y==='+y+' and xx==='+xx+' and yy==='+yy ); } // diff --git a/test/language/statements/break/S12.8_A4_T3.js b/test/language/statements/break/S12.8_A4_T3.js index 367be3962d4..57682d5b319 100644 --- a/test/language/statements/break/S12.8_A4_T3.js +++ b/test/language/statements/break/S12.8_A4_T3.js @@ -20,9 +20,9 @@ LABEL_DO_LOOP : do { break LABEL_DO_LOOP; LABEL_IN_NESTED_2 : yy++; } while (0); - + LABEL_IN_2 : y++; - + function IN_DO_FUNC(){} } while(0); @@ -34,7 +34,7 @@ function OUT_FUNC(){} })(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((x!==1)&&(y!==0)&&(xx!==1)&(yy!==0)) { +if ((x!==1)||(y!==0)||(xx!==1)||(yy!==0)) { throw new Test262Error('#1: x === 1 and y === 0 and xx === 1 and yy === 0. Actual: x==='+x+' and y==='+y+' and xx==='+xx+' and yy==='+yy ); } //