Fix busted tests to use reportCompare. no_r=orange.
authorJason Orendorff <jorendorff@mozilla.com>
Mon, 29 Mar 2010 14:57:43 -0500
changeset 40396 b945df30de33aae2cafff0209b6fe80f3a936f57
parent 40395 b3719e1315f46a672383fa4e1ce7a19a1e14f1a2
child 40397 27ce44df7c0a0c925ee530df0030f07ddfacda5e
push id12610
push userrsayre@mozilla.com
push dateMon, 05 Apr 2010 17:26:41 +0000
treeherdermozilla-central@1942c0b4e101 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a3pre
Fix busted tests to use reportCompare. no_r=orange.
js/src/tests/js1_8_5/regress/jstests.list
js/src/tests/js1_8_5/regress/regress-500528.js
js/src/tests/js1_8_5/regress/regress-541255-0.js
js/src/tests/js1_8_5/regress/regress-541255-1.js
js/src/tests/js1_8_5/regress/regress-541255-2.js
js/src/tests/js1_8_5/regress/regress-541255-3.js
js/src/tests/js1_8_5/regress/regress-541255-4.js
--- a/js/src/tests/js1_8_5/regress/jstests.list
+++ b/js/src/tests/js1_8_5/regress/jstests.list
@@ -1,9 +1,10 @@
 url-prefix ../../jsreftest.html?test=js1_8_5/regress/
+script regress-500528.js
 fails script regress-533876.js
 script regress-541255-0.js
 script regress-541255-1.js
 script regress-541255-2.js
 script regress-541255-3.js
 script regress-541255-4.js
 script regress-541455.js
 script regress-546615.js
--- a/js/src/tests/js1_8_5/regress/regress-500528.js
+++ b/js/src/tests/js1_8_5/regress/regress-500528.js
@@ -14,9 +14,9 @@ var a = {x: 'a'},
 
 b2.x = 'b';  // foreshadowing a.x
 
 var s = '';
 for each (var obj in [c1, c2])
     s += obj.x;
 assertEq(s, 'ab');
 
-print(" PASSED! Property cache soundness: objects with the same shape but different prototypes.");
+reportCompare(0, 0, "Property cache soundness: objects with the same shape but different prototypes.");
--- a/js/src/tests/js1_8_5/regress/regress-541255-0.js
+++ b/js/src/tests/js1_8_5/regress/regress-541255-0.js
@@ -6,9 +6,9 @@
 (function(e) {
   eval("\
     [(function() {\
       x.k = function(){}\
     })() \
     for (x in [0])]\
   ")
 })();
-print(" PASSED!");
+reportCompare(0, 0, "");
--- a/js/src/tests/js1_8_5/regress/regress-541255-1.js
+++ b/js/src/tests/js1_8_5/regress/regress-541255-1.js
@@ -15,9 +15,9 @@ function f(e) {
     })([], 0)) \
     for (window in this) \
     for each(x in [0, 0])\
     ]\
   ")
 }
 t = 1;
 f();
-print(" PASSED!");
+reportCompare(0, 0, "");
--- a/js/src/tests/js1_8_5/regress/regress-541255-2.js
+++ b/js/src/tests/js1_8_5/regress/regress-541255-2.js
@@ -3,9 +3,9 @@
  * http://creativecommons.org/licenses/publicdomain/
  * Contributors: Gary Kwong and Jason Orendorff
  */
 
 function f(e) {
     eval("[function () { w.r = 0 }() for (w in [0])]")
 }
 f(0);
-print(" PASSED!");
+reportCompare(0, 0, "");
--- a/js/src/tests/js1_8_5/regress/regress-541255-3.js
+++ b/js/src/tests/js1_8_5/regress/regress-541255-3.js
@@ -5,9 +5,9 @@
  */
 
 function f(y) {
     eval("let (z=2, w=y) { (function () { w.p = 7; })(); }");
 }
 var x = {};
 f(x);
 assertEq(x.p, 7);
-print(" PASSED!");
+reportCompare(0, 0, "");
--- a/js/src/tests/js1_8_5/regress/regress-541255-4.js
+++ b/js/src/tests/js1_8_5/regress/regress-541255-4.js
@@ -3,9 +3,9 @@
  * http://creativecommons.org/licenses/publicdomain/
  * Contributors: Gary Kwong and Jason Orendorff
  */
 
 function f(e) {
     eval("[function () { w.r = 0 }() for (w in [0,1,2,3,4,5,6,7,8,9])]")
 }
 f(0);
-print(" PASSED!");
+reportCompare(0, 0, "");