Bug 620376 - follow up to fix the test to correctly report when timeout function is not available
authorIgor Bukanov <igor@mir2.org>
Tue, 21 Dec 2010 16:03:01 +0100
changeset 59906 c166bfc18951b6c99f37e469f8f4d310ea96bbef
parent 59905 28ce3b08ea8fe7a7fd826ca16f60bfb532ea1f06
child 59907 51a93d6feb0161c0195208119008435490700354
push id17820
push usercleary@mozilla.com
push dateTue, 04 Jan 2011 21:40:57 +0000
treeherdermozilla-central@969691cfe40e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs620376
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 620376 - follow up to fix the test to correctly report when timeout function is not available
js/src/tests/js1_8_5/regress/regress-620376-1.js
--- a/js/src/tests/js1_8_5/regress/regress-620376-1.js
+++ b/js/src/tests/js1_8_5/regress/regress-620376-1.js
@@ -1,21 +1,23 @@
 /*
  * Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/licenses/publicdomain/
  * Contributors: Igor Bukanov
  */
 
+// Test that we can terminate looping array enumeration
 function test() {
     if (typeof timeout != "function")
 	return;
 
     var p = Proxy.create({ enumerate: function() { return Array(1e9); }});
 
     expectExitCode(6);
     timeout(0.001);
 
     var n = 0;
     for (i in p) { ++n;}
     return n;
 }
 
 test();
+reportCompare(0, 0, "ok");