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

This commit is contained in:
Andrew Drake 2010-08-12 00:08:30 -07:00
parent bc97d0240e
commit 20a9e349d1
2 changed files with 4 additions and 2 deletions

View File

@ -53,8 +53,9 @@ 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');

View File

@ -54,8 +54,9 @@ function test()
function c() { do{}while(0) }
if (typeof trap == 'function')
if (typeof trap == 'function' && typeof setDebug == 'function')
{
setDebug(true);
trap(c, 0, "");
}
c + '';