JavaScript Tests - correct test typos, bug 433999
authorBob Clary <bclary@bclary.com>
Wed, 25 Jun 2008 10:47:21 -0400
changeset 15529 ec02b60c2a0b19f021ab1e67facefcea436b3ba4
parent 15528 0817b336d9c6e8909b5bc953c73caabe3eb611f9
child 15530 4aeb5932fc5ac4deab932926fb50fa22f58681f3
child 15533 5f932c24feea20b7aa52d9a00ceeae64bb9e6775
child 15636 87e90c513b243f2f0b617ddabc4d6329301a18d7
push id289
push userbclary@mozilla.com
push dateWed, 25 Jun 2008 14:49:52 +0000
treeherdermozilla-central@ec02b60c2a0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs433999
milestone1.9.1a1pre
JavaScript Tests - correct test typos, bug 433999
js/tests/e4x/QName/regress-373595-03.js
js/tests/ecma_3/RegExp/regress-375715-01-n.js
js/tests/js1_5/GC/regress-338653.js
js/tests/js1_5/Object/regress-382503.js
js/tests/js1_5/Regress/regress-246964.js
js/tests/js1_5/Regress/regress-398085-01.js
js/tests/js1_5/extensions/regress-365869.js
js/tests/js1_7/extensions/regress-387955-02.js
js/tests/js1_7/extensions/regress-392308.js
js/tests/js1_7/geniter/regress-392310.js
js/tests/js1_7/regress/regress-385133-02.js
js/tests/js1_8/extensions/regress-385393-11.js
--- a/js/tests/e4x/QName/regress-373595-03.js
+++ b/js/tests/e4x/QName/regress-373595-03.js
@@ -31,17 +31,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-gTestfile = 'regress-373595-02.js';
+gTestfile = 'regress-373595-03.js';
 
 var summary = '13.3 QName Objects - Do not assert: op == JSOP_ADD';
 var BUGNUMBER = 373595;
 var actual = 'No Crash';
 var expect = 'No Crash';
 
 printBugNumber(BUGNUMBER);
 START(summary);
--- a/js/tests/ecma_3/RegExp/regress-375715-01-n.js
+++ b/js/tests/ecma_3/RegExp/regress-375715-01-n.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress-375715-01.js';
+var gTestfile = 'regress-375715-01-n.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 375715;
 var summary = 'Do not assert: (c2 <= cs->length) && (c1 <= c2)';
 var actual = '';
 var expect = '';
 
 //-----------------------------------------------------------------------------
 test();
--- a/js/tests/js1_5/GC/regress-338653.js
+++ b/js/tests/js1_5/GC/regress-338653.js
@@ -33,17 +33,17 @@
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 var gTestfile = 'regress-338653.js';
 //-----------------------------------------------------------------------------
-var BUGNUMBER = 338652;
+var BUGNUMBER = 338653;
 var summary = 'Force GC when JSRuntime.gcMallocBytes hits ' +
   'JSRuntime.gcMaxMallocBytes';
 var actual = 'No Crash';
 var expect = 'No Crash';
 
 printBugNumber(BUGNUMBER);
 printStatus (summary);
 print('This test should never fail explicitly. ' +
--- a/js/tests/js1_5/Object/regress-382503.js
+++ b/js/tests/js1_5/Object/regress-382503.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress-383503.js';
+var gTestfile = 'regress-382503.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 382503;
 var summary = 'Do not assert: with prototype=regexp';
 var actual = '';
 var expect = '';
 
 printBugNumber(BUGNUMBER);
 printStatus (summary);
--- a/js/tests/js1_5/Regress/regress-246964.js
+++ b/js/tests/js1_5/Regress/regress-246964.js
@@ -44,17 +44,22 @@ var BUGNUMBER = 246964;
 // see also bug 248549, bug 253150, bug 259935
 var summary = 'undetectable document.all';
 var actual = '';
 var expect = '';
 
 printBugNumber(BUGNUMBER);
 printStatus (summary);
 
-if (typeof document != 'undefined')
+if (typeof document == 'undefined')
+{
+  expect = actual = 'Test requires browser: skipped';
+  reportCompare(expect, actual, summary);
+}
+else
 {
   status = summary + ' ' + inSection(1) + ' if (document.all) ';
   expect = false;
   actual = false;
   if (document.all)
   {
     actual = true;
   }
--- a/js/tests/js1_5/Regress/regress-398085-01.js
+++ b/js/tests/js1_5/Regress/regress-398085-01.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress-398095-01.js';
+var gTestfile = 'regress-398085-01.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 398095;
 var summary = 'Do not crash with large switch statement';
 var actual = '';
 var expect = 'PASSED';
 
 
 //-----------------------------------------------------------------------------
--- a/js/tests/js1_5/extensions/regress-365869.js
+++ b/js/tests/js1_5/extensions/regress-365869.js
@@ -72,27 +72,44 @@ function test()
   catch(ex)
   {
     actual = ex + '';
     print(ex);
   }
  
   reportCompare(expect, actual, summary);
 
-  print('test crash from bug 371292');
+  print('test crash from bug 371292 Comment 3');
 
   try
   {
     expect = 'TypeError: redeclaration of property 1';
     var o1 = {1:1, 1:2};
     // syntax warning, need to eval to catch
     actual = 'No warning';
   }
   catch(ex)
   {
     actual = ex + '';
     print(ex);
   }
  
   reportCompare(expect, actual, summary);
 
+
+  print('test crash from bug 371292 Comment 9');
+
+  try
+  {
+    expect = 'TypeError: redeclaration of const 5';
+    "012345".__defineSetter__(5, function(){});
+  }
+  catch(ex)
+  {
+    actual = ex + '';
+    print(ex);
+  }
+
+  reportCompare(expect, actual, summary);
+
+
   exitFunc ('test');
 }
--- a/js/tests/js1_7/extensions/regress-387955-02.js
+++ b/js/tests/js1_7/extensions/regress-387955-02.js
@@ -31,17 +31,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress-387955.js';
+var gTestfile = 'regress-387955-02.js';
 
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 387955;
 var summary = 'Do not Crash [@ JS_CallTracer]';
 var actual = 'No Crash';
 var expect = 'No Crash';
 
 //-----------------------------------------------------------------------------
--- a/js/tests/js1_7/extensions/regress-392308.js
+++ b/js/tests/js1_7/extensions/regress-392308.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress--392308.js';
+var gTestfile = 'regress-392308.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 392308;
 var summary = 'StopIteration should be catchable';
 var actual = '';
 var expect = '';
 
 
 //-----------------------------------------------------------------------------
--- a/js/tests/js1_7/geniter/regress-392310.js
+++ b/js/tests/js1_7/geniter/regress-392310.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress--392310.js';
+var gTestfile = 'regress-392310.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 392310;
 var summary = 'send on newborn generator';
 var actual = '';
 var expect = '';
 
 
 //-----------------------------------------------------------------------------
--- a/js/tests/js1_7/regress/regress-385133-02.js
+++ b/js/tests/js1_7/regress/regress-385133-02.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress-385133-01.js';
+var gTestfile = 'regress-385133-02.js';
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 385133;
 var summary = 'Do not crash due to recursion with watch, setter, delete, generator';
 var actual = 'No Crash';
 var expect = 'No Crash';
 
 
 //-----------------------------------------------------------------------------
--- a/js/tests/js1_8/extensions/regress-385393-11.js
+++ b/js/tests/js1_8/extensions/regress-385393-11.js
@@ -30,17 +30,17 @@
  * use your version of this file under the terms of the MPL, indicate your
  * decision by deleting the provisions above and replace them with the notice
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
-var gTestfile = 'regress-385393-10.js';
+var gTestfile = 'regress-385393-11.js';
 
 //-----------------------------------------------------------------------------
 var BUGNUMBER = 385393;
 var summary = 'Regression test for bug 385393';
 var actual = 'No Crash';
 var expect = 'No Crash';
 
 //-----------------------------------------------------------------------------