Bug 1346234 - Part 10: Negative tests don't need to set global EXPECTED variable. r=sfink
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 31 Oct 2017 08:02:55 -0700
changeset 689715 83932c556491206af4ba23eecc9e45e35ebe6272
parent 689714 987d09cdb807a4e7138a8604564f394fc9fdc69c
child 689716 db3761c2d772be77d5e0e25d0d5df6ca38698dcb
push id87097
push userdholbert@mozilla.com
push dateTue, 31 Oct 2017 22:39:07 +0000
reviewerssfink
bugs1346234
milestone58.0a1
Bug 1346234 - Part 10: Negative tests don't need to set global EXPECTED variable. r=sfink
js/src/tests/ecma/Boolean/15.6.4.2-4-n.js
js/src/tests/ecma/Boolean/15.6.4.3-4-n.js
js/src/tests/ecma/Date/15.9.5.23-3-n.js
js/src/tests/ecma/Date/15.9.5.3-1-n.js
js/src/tests/ecma/Date/15.9.5.4-2-n.js
js/src/tests/ecma/Expressions/11.12-2-n.js
js/src/tests/ecma/Expressions/11.2.1-3-n.js
js/src/tests/ecma/Expressions/11.2.1-4-n.js
js/src/tests/ecma/Expressions/11.2.2-1-n.js
js/src/tests/ecma/Expressions/11.2.2-10-n.js
js/src/tests/ecma/Expressions/11.2.2-2-n.js
js/src/tests/ecma/Expressions/11.2.2-3-n.js
js/src/tests/ecma/Expressions/11.2.2-4-n.js
js/src/tests/ecma/Expressions/11.2.2-5-n.js
js/src/tests/ecma/Expressions/11.2.2-6-n.js
js/src/tests/ecma/Expressions/11.2.2-7-n.js
js/src/tests/ecma/Expressions/11.2.2-8-n.js
js/src/tests/ecma/Expressions/11.2.2-9-n.js
js/src/tests/ecma/Expressions/11.2.3-3-n.js
js/src/tests/ecma/Expressions/11.2.3-4-n.js
js/src/tests/ecma/GlobalObject/15.1-1-n.js
js/src/tests/ecma/GlobalObject/15.1-2-n.js
js/src/tests/ecma/LexicalConventions/7.2-2-n.js
js/src/tests/ecma/LexicalConventions/7.2-3-n.js
js/src/tests/ecma/LexicalConventions/7.2-4-n.js
js/src/tests/ecma/LexicalConventions/7.2-5-n.js
js/src/tests/ecma/LexicalConventions/7.3-13-n.js
js/src/tests/ecma/LexicalConventions/7.4.1-1-n.js
js/src/tests/ecma/LexicalConventions/7.4.1-2-n.js
js/src/tests/ecma/LexicalConventions/7.4.1-3-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-1-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-10-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-11-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-12-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-13-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-14-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-15-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-16-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-2-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-3-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-4-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-5-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-6-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-7-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-8-n.js
js/src/tests/ecma/LexicalConventions/7.4.2-9-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-1-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-10-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-11-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-12-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-13-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-14-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-15-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-16-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-2-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-4-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-5-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-6-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-7-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-8-n.js
js/src/tests/ecma/LexicalConventions/7.4.3-9-n.js
js/src/tests/ecma/LexicalConventions/7.5-10-n.js
js/src/tests/ecma/LexicalConventions/7.5-2-n.js
js/src/tests/ecma/LexicalConventions/7.5-3-n.js
js/src/tests/ecma/LexicalConventions/7.5-4-n.js
js/src/tests/ecma/LexicalConventions/7.5-5-n.js
js/src/tests/ecma/LexicalConventions/7.5-8-n.js
js/src/tests/ecma/LexicalConventions/7.5-9-n.js
js/src/tests/ecma/LexicalConventions/7.8.2-n.js
js/src/tests/ecma/Math/15.8-2-n.js
js/src/tests/ecma/Math/15.8-3-n.js
js/src/tests/ecma/Number/15.7.4.2-2-n.js
js/src/tests/ecma/Number/15.7.4.2-3-n.js
js/src/tests/ecma/Number/15.7.4.3-3-n.js
js/src/tests/ecma/Statements/12.6.2-9-n.js
js/src/tests/ecma/Statements/12.6.3-5-n.js
js/src/tests/ecma/Statements/12.6.3-6-n.js
js/src/tests/ecma/Statements/12.6.3-7-n.js
js/src/tests/ecma/Statements/12.6.3-8-n.js
js/src/tests/ecma/Statements/12.6.3-9-n.js
js/src/tests/ecma/Statements/12.7-1-n.js
js/src/tests/ecma/Statements/12.8-1-n.js
js/src/tests/ecma/Statements/12.9-1-n.js
js/src/tests/ecma/String/15.5.4.2-2-n.js
js/src/tests/ecma/String/15.5.4.3-3-n.js
js/src/tests/ecma_2/Exceptions/exception-010-n.js
js/src/tests/ecma_2/Exceptions/exception-011-n.js
js/src/tests/ecma_2/FunctionObjects/apply-001-n.js
js/src/tests/ecma_2/extensions/instanceof-003-n.js
js/src/tests/ecma_2/extensions/instanceof-004-n.js
js/src/tests/ecma_2/extensions/instanceof-005-n.js
js/src/tests/ecma_3/FunExpr/fe-001-n.js
js/src/tests/ecma_3/Unicode/uc-002-n.js
js/src/tests/js1_4/Regress/function-004-n.js
js/src/tests/js1_4/Regress/toString-001-n.js
js/src/tests/js1_5/Exceptions/catchguard-002-n.js
js/src/tests/js1_5/Exceptions/catchguard-003-n.js
js/src/tests/js1_5/Regress/regress-3649-n.js
js/src/tests/js1_5/extensions/catchguard-001-n.js
--- a/js/src/tests/ecma/Boolean/15.6.4.2-4-n.js
+++ b/js/src/tests/ecma/Boolean/15.6.4.2-4-n.js
@@ -20,16 +20,15 @@
 
 var SECTION = "15.6.4.2-4-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Boolean.prototype.toString()";
 writeHeaderToLog( SECTION +" "+ TITLE );
 
 DESCRIPTION = "tostr=Boolean.prototype.toString; x=new String( 'hello' ); x.toString=tostr; x.toString()";
-EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"tostr=Boolean.prototype.toString; x=new String( 'hello' ); x.toString=tostr; x.toString()",
 		"error",
 		eval("tostr=Boolean.prototype.toString; x=new String( 'hello' ); x.toString=tostr; x.toString()") );
 
 test();
--- a/js/src/tests/ecma/Boolean/15.6.4.3-4-n.js
+++ b/js/src/tests/ecma/Boolean/15.6.4.3-4-n.js
@@ -20,16 +20,15 @@
 var SECTION = "15.6.4.3-4-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Boolean.prototype.valueOf()";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "valof=Boolean.prototype.valueOf; x=new String( 'hello' ); x.valueOf=valof;x.valueOf()"
-  EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"valof=Boolean.prototype.valueOf; x=new String( 'hello' ); x.valueOf=valof;x.valueOf()",
 		"error",
 		eval("valof=Boolean.prototype.valueOf; x=new String( 'hello' ); x.valueOf=valof;x.valueOf()") );
 
 test();
--- a/js/src/tests/ecma/Date/15.9.5.23-3-n.js
+++ b/js/src/tests/ecma/Date/15.9.5.23-3-n.js
@@ -24,17 +24,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Date.prototype.setTime()";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var MYDATE = new MyDate(TIME_1970);
 
 DESCRIPTION = "MYDATE.setTime(TIME_2000)";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "MYDATE.setTime(TIME_2000)",
 	      "error",
 	      eval("MYDATE.setTime(TIME_2000)") );
 
 test();
 
--- a/js/src/tests/ecma/Date/15.9.5.3-1-n.js
+++ b/js/src/tests/ecma/Date/15.9.5.3-1-n.js
@@ -24,17 +24,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Date.prototype.valueOf";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var OBJ = new MyObject( new Date(0) );
 
 DESCRIPTION = "var OBJ = new MyObject( new Date(0) ); OBJ.valueOf()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "var OBJ = new MyObject( new Date(0) ); OBJ.valueOf()",
 	      "error",
 	      eval("OBJ.valueOf()") );
 test();
 
 function MyObject( value ) {
--- a/js/src/tests/ecma/Date/15.9.5.4-2-n.js
+++ b/js/src/tests/ecma/Date/15.9.5.4-2-n.js
@@ -22,17 +22,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Date.prototype.getTime";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var MYDATE = new MyDate( TIME_2000 );
 
 DESCRIPTION = "MYDATE.getTime()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "MYDATE.getTime()",
 	      "error",
 	      eval("MYDATE.getTime()") );
 
 test();
 
--- a/js/src/tests/ecma/Expressions/11.12-2-n.js
+++ b/js/src/tests/ecma/Expressions/11.12-2-n.js
@@ -24,17 +24,16 @@
 var SECTION = "11.12-2-n";
 var VERSION = "ECMA_1";
 startTest();
 writeHeaderToLog( SECTION + " Conditional operator ( ? : )");
 
 // the following expression should be an error in JS.
 
 DESCRIPTION = "var MYVAR =  true ? 'EXPR1', 'EXPR2' : 'EXPR3'; MYVAR";
-EXPECTED = "error";
 
 new TestCase( SECTION,
               "var MYVAR =  true ? 'EXPR1', 'EXPR2' : 'EXPR3'; MYVAR",
               "error",
               eval("var MYVAR =  true ? 'EXPR1', 'EXPR2' : 'EXPR3'; MYVAR") );
 
 test();
 
--- a/js/src/tests/ecma/Expressions/11.2.1-3-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.1-3-n.js
@@ -59,17 +59,16 @@ var p = 0;
 
 // try to access properties of primitive types
 
 PROPERTY[p++] = new Property(  "undefined",    void 0,   "undefined",   NaN );
 
 for ( var i = 0, RESULT; i < PROPERTY.length; i++ ) {
 
   DESCRIPTION = PROPERTY[i].object + ".valueOf()";
-  EXPECTED = "error";
 
   new TestCase( SECTION,
 		PROPERTY[i].object + ".valueOf()",
 		PROPERTY[i].value,
 		eval( PROPERTY[i].object+ ".valueOf()" ) );
 
   new TestCase( SECTION,
 		PROPERTY[i].object + ".toString()",
--- a/js/src/tests/ecma/Expressions/11.2.1-4-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.1-4-n.js
@@ -59,17 +59,16 @@ var p = 0;
 
 // try to access properties of primitive types
 
 PROPERTY[p++] = new Property(  "null",    null,   "null",   0 );
 
 for ( var i = 0, RESULT; i < PROPERTY.length; i++ ) {
 
   DESCRIPTION = PROPERTY[i].object + ".valueOf()";
-  EXPECTED = "error";
 
   new TestCase( SECTION,
                 PROPERTY[i].object + ".valueOf()",
                 PROPERTY[i].value,
                 eval( PROPERTY[i].object+ ".valueOf()" ) );
 
   new TestCase( SECTION,
                 PROPERTY[i].object + ".toString()",
--- a/js/src/tests/ecma/Expressions/11.2.2-1-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-1-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var OBJECT = new Object();
 
 DESCRIPTION = "OBJECT = new Object; var o = new OBJECT()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "OBJECT = new Object; var o = new OBJECT()",
 	      "error",
 	      eval("o = new OBJECT()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-10-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-10-n.js
@@ -50,17 +50,16 @@
 var SECTION = "11.2.2-9-n.js";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var m = new Math()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
               "var m = new Math()",
               "error",
               eval("m = new Math()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-2-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-2-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var UNDEFINED = void 0;
 
 DESCRIPTION = "UNDEFINED = void 0; var o = new UNDEFINED()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "UNDEFINED = void 0; var o = new UNDEFINED()",
 	      "error",
 	      eval("o = new UNDEFINED()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-3-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-3-n.js
@@ -50,17 +50,16 @@
 var SECTION = "11.2.2-3-n.js";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var DESCRIPTION = "NULL = null; var o = new NULL()";
-var EXPECTED = "error";
 var NULL = null;
 
 new TestCase( SECTION,
 	      "NULL = null; var o = new NULL()",
 	      "error",
 	      eval("o = new NULL()") );
 test();
 
--- a/js/src/tests/ecma/Expressions/11.2.2-4-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-4-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var STRING = "";
 
 DESCRIPTION = "STRING = '', var s = new STRING()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "STRING = '', var s = new STRING()",
 	      "error",
 	      eval("s = new STRING()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-5-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-5-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var NUMBER = 0;
 
 DESCRIPTION = "NUMBER=0, var n = new NUMBER()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "NUMBER=0, var n = new NUMBER()",
 	      "error",
 	      eval("n = new NUMBER()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-6-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-6-n.js
@@ -50,17 +50,16 @@ var SECTION = "11.2.2-6-n.js";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var BOOLEAN  = true;
 DESCRIPTION = "BOOLEAN = true; var b = new BOOLEAN()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "BOOLEAN = true; var b = new BOOLEAN()",
 	      "error",
 	      eval("b = new BOOLEAN()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-7-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-7-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var STRING = new String("hi");
 
 DESCRIPTION = "var STRING = new String('hi'); var s = new STRING()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "var STRING = new String('hi'); var s = new STRING()",
 	      "error",
 	      eval("s = new STRING()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-8-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-8-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var NUMBER = new Number(1);
 
 DESCRIPTION = "var NUMBER = new Number(1); var n = new NUMBER()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "var NUMBER = new Number(1); var n = new NUMBER()",
 	      "error",
 	      eval("n = new NUMBER()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.2-9-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.2-9-n.js
@@ -52,17 +52,16 @@ var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The new operator";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var BOOLEAN = new Boolean();
 
 DESCRIPTION = "var BOOLEAN = new Boolean(); var b = new BOOLEAN()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "var BOOLEAN = new Boolean(); var b = new BOOLEAN()",
 	      "error",
 	      eval("b = new BOOLEAN()") );
 test();
 
 function TestFunction() {
--- a/js/src/tests/ecma/Expressions/11.2.3-3-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.3-3-n.js
@@ -42,16 +42,15 @@
 var SECTION = "11.2.3-3-n.js";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Function Calls";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "(void 0).valueOf()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
               "(void 0).valueOf()",
               "error",
               eval("(void 0).valueOf()") );
 test();
 
--- a/js/src/tests/ecma/Expressions/11.2.3-4-n.js
+++ b/js/src/tests/ecma/Expressions/11.2.3-4-n.js
@@ -42,16 +42,15 @@
 var SECTION = "11.2.3-4-n.js";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Function Calls";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "null.valueOf()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
               "null.valueOf()",
               "error",
               eval("null.valueOf()") );
 test();
 
--- a/js/src/tests/ecma/GlobalObject/15.1-1-n.js
+++ b/js/src/tests/ecma/GlobalObject/15.1-1-n.js
@@ -20,17 +20,16 @@
 var SECTION = "15.1-1-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The Global Object";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var MY_GLOBAL = new this()";
-EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"var MY_GLOBAL = new this()",
 		"error",
 		eval("var MY_GLOBAL = new this()") );
 
 test();
 
--- a/js/src/tests/ecma/GlobalObject/15.1-2-n.js
+++ b/js/src/tests/ecma/GlobalObject/15.1-2-n.js
@@ -19,15 +19,14 @@
 var SECTION = "15.1-2-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The Global Object";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var MY_GLOBAL = this()";
-EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"var MY_GLOBAL = this()",
 		"error",
 		eval("var MY_GLOBAL = this()") );
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.2-2-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.2-2-n.js
@@ -27,14 +27,13 @@
 var SECTION = "7.2-2";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Line Terminators";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "\r\r\r\nb";
-EXPECTED = "error"
 
   new TestCase( SECTION,   DESCRIPTION,     "error",     eval("\r\r\r\nb"));
 
 test();
 
--- a/js/src/tests/ecma/LexicalConventions/7.2-3-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.2-3-n.js
@@ -28,13 +28,12 @@ var SECTION = "7.2-3";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Line Terminators";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 
 DESCRIPTION = "\r\nb";
-EXPECTED = "error"
 
   new TestCase( SECTION,    "<cr>a",     "error",     eval("\r\nb"));
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.2-4-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.2-4-n.js
@@ -27,13 +27,12 @@
 var SECTION = "7.2-6";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Line Terminators";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "\nb";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "\nb",     "error",     eval("\nb"));
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.2-5-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.2-5-n.js
@@ -26,13 +26,12 @@
 */
 var SECTION = "7.2-5";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Line Terminators";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
-DESCRIPTION =
-  EXPECTED = "error";
+DESCRIPTION = "error";
 
 new TestCase( SECTION,    "\rb",     "error",    eval("\rb"));
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.3-13-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.3-13-n.js
@@ -17,16 +17,15 @@
 var SECTION = "7.3-13-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Comments";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "nested comment";
-EXPECTED = "error";
 
 var testcase = new TestCase( SECTION,
 			     "nested comment",
 			     "error",
 			     eval("/*/*\"fail\";*/*/"));
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.1-1-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.1-1-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.1-1-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var null = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var null = true",     "error",    eval("var null = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.1-2-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.1-2-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.1-2-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var true = false";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var true = false",     "error",    eval("var true = false") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.1-3-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.1-3-n.js
@@ -23,13 +23,12 @@
 
 */
 var SECTION = "7.4.1-3-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 DESCRIPTION = "var false = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var false = true",     "error",    eval("var false = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-1-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-1-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.2-1-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var break = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var break = true",     "error",    eval("var break = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-10-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-10-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-10-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var if = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var if = true",     "error",    eval("var if = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-11-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-11-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-11-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var this = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var this = true",     "error",    eval("var this = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-12-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-12-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-12-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var while = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var while = true",     "error",    eval("var while = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-13-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-13-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-13-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var else = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var else = true",     "error",    eval("var else = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-14-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-14-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-14-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var in = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var in = true",     "error",    eval("var in = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-15-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-15-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-15-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var typeof = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var typeof = true",     "error",    eval("var typeof = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-16-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-16-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-16-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var with = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var with = true",     "error",    eval("var with = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-2-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-2-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-2-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var for = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var for = true",     "error",    eval("var for = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-3-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-3-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.2-3-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var new = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var new = true",     "error",    eval("var new = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-4-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-4-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.2-4-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var var = true";
-EXPECTED = "error";
 
 TestCase( SECTION,  "var var = true",     "error",    eval("var var = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-5-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-5-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.2-5-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var continue = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var continue = true",     "error",    eval("var continue = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-6-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-6-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.2-6-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var function = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var function = true",     "error",    eval("var function = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-7-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-7-n.js
@@ -29,13 +29,12 @@
 
 */
 var SECTION = "7.4.2-7";
 var VERSION = "ECMA_1";
 startTest();
 writeHeaderToLog( SECTION + " Keywords");
 
 DESCRIPTION = "var return = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var return = true",     "error",    eval("var return = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-8-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-8-n.js
@@ -30,13 +30,12 @@
 */
 var SECTION = "7.4.2-8";
 var VERSION = "ECMA_1";
 startTest();
 
 writeHeaderToLog( SECTION + " Keywords");
 
 DESCRIPTION = "var void = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var void = true",     "error",    eval("var void = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.2-9-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.2-9-n.js
@@ -31,13 +31,12 @@
 var SECTION = "7.4.1-9-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Keywords";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var delete = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var delete = true",     "error",    eval("var delete = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-1-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-1-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-1-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var case = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var case = true",     "error",    eval("var case = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-10-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-10-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-10-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var do = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var do = true",     "error",    eval("var do = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-11-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-11-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-11-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var finally = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var finally = true",     "error",    eval("var finally = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-12-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-12-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-12-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var throw = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var throw = true",     "error",    eval("var throw = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-13-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-13-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-13-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var const = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var const = true",     "error",    eval("var const = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-14-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-14-n.js
@@ -48,17 +48,16 @@ try
   eval("var enum = true");
 }
 catch(e)
 {
   actual = 'error';
 }
 
 DESCRIPTION = "var enum = true";
-EXPECTED = "error";
 
 // force exception since this is a negative test
 if (actual == 'error')
 {
   throw actual;
 }
 
 new TestCase( SECTION, 
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-15-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-15-n.js
@@ -42,17 +42,16 @@ try
   eval("var import = true");
 }
 catch(e)
 {
   actual = 'error';
 }
 
 DESCRIPTION = "var import = true";
-EXPECTED = "error";
 
 // force exception since this is a negative test
 if (actual == 'error')
 {
   throw actual;
 }
 
 new TestCase( SECTION, 
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-16-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-16-n.js
@@ -37,17 +37,16 @@ var expect = "Passed";
   try = true;
   } catch ( e ) {
   result = expect;
   exception = e.toString();
   }
 */
 
 DESCRIPTION = "try = true";
-EXPECTED = "error";
 
 new TestCase(
   SECTION,
   "try = true" +
   " (threw " + exception +")",
   "error",
   eval("try = true") );
 
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-2-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-2-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-2-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var debugger = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var debugger = true",     "error",    eval("var debugger = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-4-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-4-n.js
@@ -48,17 +48,16 @@ try
   eval("var super = true");
 }
 catch(e)
 {
   actual = 'error';
 }
 
 DESCRIPTION = "var super = true"
-  EXPECTED = "error";
 
 // force exception since this is a negative test
 if (actual == 'error')
 {
   throw actual;
 }
 
 new TestCase( SECTION, 
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-5-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-5-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-5-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
    
 DESCRIPTION = "var catch = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var catch = true",     "error",    eval("var catch = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-6-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-6-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-6-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var default = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var default = true",     "error",    eval("var default = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-7-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-7-n.js
@@ -48,17 +48,16 @@ try
   eval("var extends = true");
 }
 catch(e)
 {
   actual = 'error';
 }
 
 DESCRIPTION = "var extends = true";
-EXPECTED = "error";
 
 // force exception since this is a negative test
 if (actual == 'error')
 {
   throw actual;
 }
 
 new TestCase( SECTION, 
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-8-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-8-n.js
@@ -25,13 +25,12 @@
 var SECTION = "7.4.3-9-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var switch = true";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "var switch = true",     "error",    eval("var switch = true") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-9-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.4.3-9-n.js
@@ -28,17 +28,16 @@ startTest();
 var TITLE   = "Future Reserved Words";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var actual = 'no error';
 var prefValue;
 
 DESCRIPTION = "var class = true";
-EXPECTED = "error";
 
 
 print("This test requires option javascript.options.strict enabled");
 
 if (!options().match(/strict/))
 {
   options('strict');
 }
--- a/js/src/tests/ecma/LexicalConventions/7.5-10-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-10-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-9-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var 123=\"hi\"";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var 123=\"hi\"",   "error",    eval("123 = \"hi\"; array[item] = 123;") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.5-2-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-2-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-2-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var 0abc";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var 0abc",   "error",    eval("var 0abc") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.5-3-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-3-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-3-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var 1abc";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var 1abc",   "error",    eval("var 1abc") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.5-4-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-4-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-4-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var 2abc";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var 2abc",   "error",    eval("var 2abc") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.5-5-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-5-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-5-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var 3abc";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var 3abc",   "error",    eval("var 3abc") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.5-8-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-8-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-8-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var @0abc = 5; @0abc";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var @0abc = 5; @0abc",   "error",    eval("var @0abc = 5; @0abc") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.5-9-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.5-9-n.js
@@ -18,13 +18,12 @@
 var SECTION = "7.5-9-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "Identifiers";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var 123=\"hi\"";
-EXPECTED = "error";
 
 new TestCase( SECTION,    "var 123=\"hi\"",   "error",    eval("var 123 = \"hi\";array[item] = 123;") );
 
 test();
--- a/js/src/tests/ecma/LexicalConventions/7.8.2-n.js
+++ b/js/src/tests/ecma/LexicalConventions/7.8.2-n.js
@@ -17,13 +17,12 @@ var SECTION="7.8.2";
 var VERSION="ECMA_1"
   startTest();
 writeHeaderToLog(SECTION+" "+"Examples of Semicolon Insertion");
 
 
 //    new TestCase( "7.8.2",  "{ 1 \n 2 } 3",      3,         eval("{ 1 \n 2 } 3") );
 
 DESCRIPTION = "{ 1 2 } 3";
-EXPECTED = "error";
 
 new TestCase( "7.8.2",  "{ 1 2 } 3",         "error",   eval("{1 2 } 3")     );
 
 test();
--- a/js/src/tests/ecma/Math/15.8-2-n.js
+++ b/js/src/tests/ecma/Math/15.8-2-n.js
@@ -33,16 +33,15 @@
 var SECTION = "15.8-2-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The Math Object";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "MYMATH = new Math()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "MYMATH = new Math()",
 	      "error",
 	      eval("MYMATH = new Math()") );
 
 test();
--- a/js/src/tests/ecma/Math/15.8-3-n.js
+++ b/js/src/tests/ecma/Math/15.8-3-n.js
@@ -32,16 +32,15 @@
 var SECTION = "15.8-3-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The Math Object";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "MYMATH = Math()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "MYMATH = Math()",
 	      "error",
 	      eval("MYMATH = Math()") );
 
 test();
--- a/js/src/tests/ecma/Number/15.7.4.2-2-n.js
+++ b/js/src/tests/ecma/Number/15.7.4.2-2-n.js
@@ -24,17 +24,16 @@
 */
 var SECTION = "15.7.4.2-2-n";
 var VERSION = "ECMA_1";
 startTest();
 
 writeHeaderToLog( SECTION + " Number.prototype.toString()");
 
 DESCRIPTION = "o = new Object(); o.toString = Number.prototype.toString; o.toString()";
-EXPECTED = "error";
 
 new TestCase(SECTION, 
 	     "o = new Object(); o.toString = Number.prototype.toString; o.toString()", 
 	     "error",   
 	     eval("o = new Object(); o.toString = Number.prototype.toString; o.toString()") );
 
 //    new TestCase(SECTION,  "o = new String(); o.toString = Number.prototype.toString; o.toString()",  "error",    eval("o = new String(); o.toString = Number.prototype.toString; o.toString()") );
 //    new TestCase(SECTION,  "o = 3; o.toString = Number.prototype.toString; o.toString()",             "error",    eval("o = 3; o.toString = Number.prototype.toString; o.toString()") );
--- a/js/src/tests/ecma/Number/15.7.4.2-3-n.js
+++ b/js/src/tests/ecma/Number/15.7.4.2-3-n.js
@@ -24,16 +24,15 @@
 */
 var SECTION = "15.7.4.2-3-n";
 var VERSION = "ECMA_1";
 startTest();
 
 writeHeaderToLog( SECTION + " Number.prototype.toString()");
 
 DESCRIPTION = "o = new String(); o.toString = Number.prototype.toString; o.toString()";
-EXPECTED = "error";
 
 new TestCase(SECTION, 
 	     "o = new String(); o.toString = Number.prototype.toString; o.toString()", 
 	     "error",   
 	     eval("o = new String(); o.toString = Number.prototype.toString; o.toString()") );
 
 test();
--- a/js/src/tests/ecma/Number/15.7.4.3-3-n.js
+++ b/js/src/tests/ecma/Number/15.7.4.3-3-n.js
@@ -21,17 +21,16 @@ var SECTION = "15.7.4.3-3-n";
 var VERSION = "ECMA_1";
 startTest();
 
 writeHeaderToLog( SECTION + " Number.prototype.valueOf()");
 
 //    new TestCase("15.7.4.1", "v = Number.prototype.valueOf; num = 3; num.valueOf = v; num.valueOf()", "error",  eval("v = Number.prototype.valueOf; num = 3; num.valueOf = v; num.valueOf()") );
 
 DESCRIPTION = "v = Number.prototype.valueOf; o = new String('Infinity'); o.valueOf = v; o.valueOf()";
-EXPECTED = "error";
 
 new TestCase("15.7.4.1",
 	     "v = Number.prototype.valueOf; o = new String('Infinity'); o.valueOf = v; o.valueOf()",
 	     "error", 
 	     eval("v = Number.prototype.valueOf; o = new String('Infinity'); o.valueOf = v; o.valueOf()") );
 
 //    new TestCase("15.7.4.1", "v = Number.prototype.valueOf; o = new Object(); o.valueOf = v; o.valueOf()", "error",  eval("v = Number.prototype.valueOf; o = new Object(); o.valueOf = v; o.valueOf()") );
 
--- a/js/src/tests/ecma/Statements/12.6.2-9-n.js
+++ b/js/src/tests/ecma/Statements/12.6.2-9-n.js
@@ -21,17 +21,16 @@
 var SECTION = "12.6.2-9-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The for statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "for (i)";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "for (i)",
 	      "error",
 	      eval("for (i) { }") );
 
 /*
   for (i) {
--- a/js/src/tests/ecma/Statements/12.6.3-5-n.js
+++ b/js/src/tests/ecma/Statements/12.6.3-5-n.js
@@ -46,17 +46,16 @@ startTest();
 var TITLE   = "The for..in statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 //  for ( LeftHandSideExpression in Expression )
 //  LeftHandSideExpression:NewExpression:MemberExpression
 
 DESCRIPTION = "more than one member expression";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "more than one member expression",
 	      "error",
 	      eval("var o = new MyObject(); var result = 0; for ( var i, p in this) { result += this[p]; }") );
 
 /*
   var o = new MyObject();
--- a/js/src/tests/ecma/Statements/12.6.3-6-n.js
+++ b/js/src/tests/ecma/Statements/12.6.3-6-n.js
@@ -46,17 +46,16 @@ startTest();
 var TITLE   = "The for..in statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 //  for ( LeftHandSideExpression in Expression )
 //  LeftHandSideExpression:NewExpression:MemberExpression
 
 DESCRIPTION = "bad left-hand side expression";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "bad left-hand side expression",
 	      "error",
 	      eval("var o = new MyObject(); var result = 0; for ( this in o) { result += this[p]; }") );
 /*
   var o = new MyObject();
   var result = 0;
--- a/js/src/tests/ecma/Statements/12.6.3-7-n.js
+++ b/js/src/tests/ecma/Statements/12.6.3-7-n.js
@@ -46,17 +46,16 @@ startTest();
 var TITLE   = "The for..in statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 //  for ( LeftHandSideExpression in Expression )
 //  LeftHandSideExpression:NewExpression:MemberExpression
 
 DESCRIPTION = "bad left-hand side expression";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "bad left-hand side expression",
 	      "error",
 	      eval("var o = new MyObject(); var result = 0; for ( \"a\" in o) { result += this[p]; } ") );
 
 /*
   var o = new MyObject();
--- a/js/src/tests/ecma/Statements/12.6.3-8-n.js
+++ b/js/src/tests/ecma/Statements/12.6.3-8-n.js
@@ -46,17 +46,16 @@ startTest();
 var TITLE   = "The for..in statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 //  for ( LeftHandSideExpression in Expression )
 //  LeftHandSideExpression:NewExpression:MemberExpression
 
 DESCRIPTION = "bad left-hand side expression";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "bad left-hand side expression",
 	      "error",
 	      eval("var o = new MyObject(); var result = 0; for ( 1 in o) { result += this[p]; } ") );
 
 /*
   var o = new MyObject();
--- a/js/src/tests/ecma/Statements/12.6.3-9-n.js
+++ b/js/src/tests/ecma/Statements/12.6.3-9-n.js
@@ -46,17 +46,16 @@ startTest();
 var TITLE   = "The for..in statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 //  for ( LeftHandSideExpression in Expression )
 //  LeftHandSideExpression:NewExpression:MemberExpression
 
 DESCRIPTION = "object is not defined";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "object is not defined",
 	      "error",
 	      eval("var o = new MyObject(); var result = 0; for ( var o in foo) { result += this[o]; } ") );
 /*
   var o = new MyObject();
   var result = 0;
--- a/js/src/tests/ecma/Statements/12.7-1-n.js
+++ b/js/src/tests/ecma/Statements/12.7-1-n.js
@@ -15,16 +15,15 @@
 var SECTION = "12.7.1-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The continue statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "continue";
-EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"continue",
 		"error",
 		eval("continue") );
 
 test();
--- a/js/src/tests/ecma/Statements/12.8-1-n.js
+++ b/js/src/tests/ecma/Statements/12.8-1-n.js
@@ -16,17 +16,16 @@
 var SECTION = "12.8-1-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "The break in statement";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "break";
-EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"break",
 		"error",
 		eval("break") );
 
 
 test();
--- a/js/src/tests/ecma/Statements/12.9-1-n.js
+++ b/js/src/tests/ecma/Statements/12.9-1-n.js
@@ -14,16 +14,15 @@
 */
 var SECTION = "12.9-1-n";
 var VERSION = "ECMA_1";
 startTest();
 
 writeHeaderToLog( SECTION + " The return statement");
 
 DESCRIPTION = "return";
-EXPECTED = "error";
 
 new TestCase(   SECTION,
 		"return",
 		"error",
 		eval("return") );
 
 test();
--- a/js/src/tests/ecma/String/15.5.4.2-2-n.js
+++ b/js/src/tests/ecma/String/15.5.4.2-2-n.js
@@ -24,16 +24,15 @@
 var SECTION = "15.5.4.2-3-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "String.prototype.toString";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var tostr=String.prototype.toString; astring=new Number(); astring.toString = tostr; astring.toString()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "var tostr=String.prototype.toString; astring=new Number(); astring.toString = tostr; astring.toString()",
 	      "error",
 	      eval("var tostr=String.prototype.toString; astring=new Number(); astring.toString = tostr; astring.toString()") );
 
 test();
--- a/js/src/tests/ecma/String/15.5.4.3-3-n.js
+++ b/js/src/tests/ecma/String/15.5.4.3-3-n.js
@@ -23,16 +23,15 @@
 var SECTION = "15.5.4.3-3-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "String.prototype.valueOf";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "var valof=String.prototype.valueOf; astring=new Number(); astring.valueOf = valof; astring.valof()";
-EXPECTED = "error";
 
 new TestCase( SECTION,
 	      "var valof=String.prototype.valueOf; astring=new Number(); astring.valueOf = valof; astring.valof()",
 	      "error",
 	      eval("var valof=String.prototype.valueOf; astring=new Number(); astring.valueOf = valof; astring.valueOf()") );
 
 test();
--- a/js/src/tests/ecma_2/Exceptions/exception-010-n.js
+++ b/js/src/tests/ecma_2/Exceptions/exception-010-n.js
@@ -9,17 +9,16 @@ var VERSION = "ECMA_2";
 startTest();
 var TITLE   = "Don't Crash throwing null";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 print("Null throw test.");
 print("BUGNUMBER: 21799");
 
 DESCRIPTION = "throw null";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "throw null",     "error",    eval("throw null" ));
 
 test();
 
 print("FAILED!: Should have exited with uncaught exception.");
 
 
--- a/js/src/tests/ecma_2/Exceptions/exception-011-n.js
+++ b/js/src/tests/ecma_2/Exceptions/exception-011-n.js
@@ -9,17 +9,16 @@ var VERSION = "ECMA_2";
 startTest();
 var TITLE   = "Don't Crash throwing undefined";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 print("Undefined throw test.");
 
 DESCRIPTION = "throw undefined";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "throw undefined",  "error", eval("throw (void 0)") );
 
 test();
 
 print("FAILED!: Should have exited with uncaught exception.");
 
 
--- a/js/src/tests/ecma_2/FunctionObjects/apply-001-n.js
+++ b/js/src/tests/ecma_2/FunctionObjects/apply-001-n.js
@@ -15,15 +15,14 @@ function f ()
 var SECTION = "apply-001-n";
 var VERSION = "ECMA_1";
 startTest();
 var TITLE   = "f.apply(2,2) doesn't crash";
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 DESCRIPTION = "f.apply(2,2) doesn't crash";
-EXPECTED = "error";
 
 new TestCase( SECTION,  "f.apply(2,2) doesn't crash",     "error",    eval("f.apply(2,2)") );
 
 test();
 
 
--- a/js/src/tests/ecma_2/extensions/instanceof-003-n.js
+++ b/js/src/tests/ecma_2/extensions/instanceof-003-n.js
@@ -76,13 +76,12 @@ function GenB(value) {
   this.generation = "B";
   this.toString = new Function ( "return \"(instance of Gen\"+this.generation+\")\"" );
 }
 GenB.name = "B"
   GenB.prototype = void 0;
 
 // Identifier is not a function
 DESCRIPTION = "Identifier is not a function";
-EXPECTED = "error";
 
 InstanceOf( true, true, "error" );
 
 test();
--- a/js/src/tests/ecma_2/extensions/instanceof-004-n.js
+++ b/js/src/tests/ecma_2/extensions/instanceof-004-n.js
@@ -76,13 +76,12 @@ function GenB(value) {
   this.toString = new Function ( "return \"(instance of Gen\"+this.generation+\")\"" );
 }
 GenB.name = "B"
   GenB.prototype = void 0;
 
 // Identifier is not a function
 
 DESCRIPTION = "Identifier is not a function";
-EXPECTED = "error";
 
 InstanceOf( new Boolean(true), false, "error" );
 
 test();
--- a/js/src/tests/ecma_2/extensions/instanceof-005-n.js
+++ b/js/src/tests/ecma_2/extensions/instanceof-005-n.js
@@ -77,13 +77,12 @@ function GenB(value) {
 }
 GenB.name = "B"
   GenB.prototype = void 0;
 
 
 // Identifier is a function, prototype of Identifier is not an object
 
 DESCRIPTION = "Identifier is a function, prototype of Identifier is not an object";
-EXPECTED = "error";
 
 InstanceOf( new GenB(), GenB, "error" );
 
 test();
--- a/js/src/tests/ecma_3/FunExpr/fe-001-n.js
+++ b/js/src/tests/ecma_3/FunExpr/fe-001-n.js
@@ -1,16 +1,15 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 4 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 DESCRIPTION = "Previous statement should have thrown a ReferenceError";
-EXPECTED = "error";
 
 test();
 
 function test()
 {
   enterFunc ("test");
   printStatus ("Function Expression test.");
 
--- a/js/src/tests/ecma_3/Unicode/uc-002-n.js
+++ b/js/src/tests/ecma_3/Unicode/uc-002-n.js
@@ -1,16 +1,15 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 4 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 DESCRIPTION = "Non-character escapes in identifiers negative test.";
-EXPECTED = "error";
 
 enterFunc ("test");
 
 printStatus ("Non-character escapes in identifiers negative test.");
 printBugNumber (23607);
 
 eval("\u0020 = 5");
 reportCompare('PASS', 'FAIL', "Previous statement should have thrown an error.");
--- a/js/src/tests/js1_4/Regress/function-004-n.js
+++ b/js/src/tests/js1_4/Regress/function-004-n.js
@@ -21,17 +21,16 @@ var BUGNUMBER="310502";
 startTest();
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var o  = {};
 o.call = Function.prototype.call;
 
 DESCRIPTION = "var o = {}; o.call = Function.prototype.call; o.call()";
-EXPECTED = "error";
 
 new TestCase(
   SECTION,
   "var o = {}; o.call = Function.prototype.call; o.call()",
   "error",
   o.call() );
 
 test();
--- a/js/src/tests/js1_4/Regress/toString-001-n.js
+++ b/js/src/tests/js1_4/Regress/toString-001-n.js
@@ -21,17 +21,16 @@ var BUGNUMBER="310514";
 startTest();
 
 writeHeaderToLog( SECTION + " "+ TITLE);
 
 var o = {};
 o.toString = Function.prototype.toString;
 
 DESCRIPTION = "var o = {}; o.toString = Function.prototype.toString; o.toString();";
-EXPECTED = "error";
 
 new TestCase(
   SECTION,
   "var o = {}; o.toString = Function.prototype.toString; o.toString();",
   "error",
   o.toString() );
 
 test();
--- a/js/src/tests/js1_5/Exceptions/catchguard-002-n.js
+++ b/js/src/tests/js1_5/Exceptions/catchguard-002-n.js
@@ -1,16 +1,15 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 4 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 DESCRIPTION = "var in catch clause should have caused an error.";
-EXPECTED = "error";
 
 var expect;
 var actual;
 
 test();
 
 function test()
 {
--- a/js/src/tests/js1_5/Exceptions/catchguard-003-n.js
+++ b/js/src/tests/js1_5/Exceptions/catchguard-003-n.js
@@ -1,16 +1,15 @@
 /* -*- indent-tabs-mode: nil; js-indent-level: 4 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 DESCRIPTION = "Illegally constructed catchguard should have thrown an exception.";
-EXPECTED = "error";
 
 var expect;
 var actual;
 
 test();
 
 function test()
 {
--- a/js/src/tests/js1_5/Regress/regress-3649-n.js
+++ b/js/src/tests/js1_5/Regress/regress-3649-n.js
@@ -7,17 +7,16 @@
 //-----------------------------------------------------------------------------
 // testcase from bug 2235 mff@research.att.com
 var BUGNUMBER = 3649;
 var summary = 'gc-checking branch callback.';
 var actual = 'error';
 var expect = 'error';
 
 DESCRIPTION = summary;
-EXPECTED = expect;
 
 printBugNumber(BUGNUMBER);
 printStatus (summary);
  
 expectExitCode(0);
 expectExitCode(3);
 expectExitCode(5);
 
--- a/js/src/tests/js1_5/extensions/catchguard-001-n.js
+++ b/js/src/tests/js1_5/extensions/catchguard-001-n.js
@@ -1,16 +1,15 @@
 /* -*- tab-width: 8; indent-tabs-mode: nil; js-indent-level: 4 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 
 DESCRIPTION = " the non-guarded catch should HAVE to appear last";
-EXPECTED = "error";
 
 test();
 
 function test()
 {
   enterFunc ("test");
 
   var EXCEPTION_DATA = "String exception";