[JAEGER] Fix even more tests regressed by debug mode. r=dvander

This commit is contained in:
Andrew Drake 2010-08-12 00:53:40 -07:00
parent 87b879b80c
commit 100405bf57
4 changed files with 8 additions and 4 deletions

View File

@ -54,8 +54,9 @@ function test()
function f() { return a(); } function f() { return a(); }
if (typeof trap == 'function') if (typeof trap == 'function' && typeof setDebug == 'function')
{ {
setDebug(true);
trap(f, 0, "print('trap')"); trap(f, 0, "print('trap')");
} }
f + ''; f + '';

View File

@ -52,8 +52,9 @@ function test()
printStatus (summary); printStatus (summary);
function f() { for(; 1; ) { } } function f() { for(; 1; ) { } }
if (typeof trap == 'function') if (typeof trap == 'function' && typeof setDebug == 'function')
{ {
setDebug(true);
trap(f, 0, ""); trap(f, 0, "");
} }
f + ''; f + '';

View File

@ -56,8 +56,9 @@ function test()
for ( var a in [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]) { } for ( var a in [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]) { }
} }
if (typeof trap == 'function') if (typeof trap == 'function' && typeof setDebug == 'function')
{ {
setDebug(true);
"" + f; "" + f;
trap(f, 0, ""); trap(f, 0, "");
"" + f; "" + f;

View File

@ -58,8 +58,9 @@ function test()
actual = f + ''; actual = f + '';
compareSource(expect, actual, summary + ': before trap'); compareSource(expect, actual, summary + ': before trap');
if (typeof trap == 'function') if (typeof trap == 'function' && typeof setDebug == 'function')
{ {
setDebug(true);
trap(f, 0, ""); trap(f, 0, "");
actual = f + ''; actual = f + '';