[JAEGER] Fix tests regressed by debug mode. r=dvander
authorAndrew Drake <drakedevel@gmail.com>
Thu, 12 Aug 2010 00:08:30 -0700
changeset 53392 747dc82677eac62a14023c8ef8d0f1f731dac578
parent 53391 c644d72c8f0916cbc61335c6f01cb47d98c9acb4
child 53393 4f23f05d935d38dfe299e247074e915a1b9b76d9
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
milestone2.0b4pre
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
[JAEGER] Fix tests regressed by debug mode. r=dvander
js/src/tests/e4x/decompilation/regress-429249.js
js/src/tests/ecma_3/extensions/regress-429248.js
--- a/js/src/tests/e4x/decompilation/regress-429249.js
+++ b/js/src/tests/e4x/decompilation/regress-429249.js
@@ -48,16 +48,17 @@ START(summary);
 function g() {
     return <x/>;
 }
 
 expect = 'function g() { return <x/>; }';
 actual = g + '';
 compareSource(expect, actual, summary + ' : before trap');
 
-if (typeof trap == 'function')
+if (typeof trap == 'function' && typeof setDebug == 'function')
 {
+    setDebug(true);
     trap(g, 0, "");
     actual = g + '';
     compareSource(expect, actual, summary + ' : after trap');
 }
 
 END();
--- a/js/src/tests/ecma_3/extensions/regress-429248.js
+++ b/js/src/tests/ecma_3/extensions/regress-429248.js
@@ -49,18 +49,19 @@ test();
 function test()
 {
   enterFunc ('test');
   printBugNumber(BUGNUMBER);
   printStatus (summary);
  
   function c() { do{}while(0) }
 
-  if (typeof trap == 'function')
+  if (typeof trap == 'function' && typeof setDebug == 'function')
   {
+    setDebug(true);
     trap(c, 0, "");
   }
   c + '';
 
   reportCompare(expect, actual, summary);
 
   exitFunc ('test');
 }