mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Fix even more tests regressed by debug mode. r=dvander
This commit is contained in:
parent
87b879b80c
commit
100405bf57
@ -54,8 +54,9 @@ function test()
|
||||
|
||||
function f() { return a(); }
|
||||
|
||||
if (typeof trap == 'function')
|
||||
if (typeof trap == 'function' && typeof setDebug == 'function')
|
||||
{
|
||||
setDebug(true);
|
||||
trap(f, 0, "print('trap')");
|
||||
}
|
||||
f + '';
|
||||
|
@ -52,8 +52,9 @@ function test()
|
||||
printStatus (summary);
|
||||
|
||||
function f() { for(; 1; ) { } }
|
||||
if (typeof trap == 'function')
|
||||
if (typeof trap == 'function' && typeof setDebug == 'function')
|
||||
{
|
||||
setDebug(true);
|
||||
trap(f, 0, "");
|
||||
}
|
||||
f + '';
|
||||
|
@ -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]) { }
|
||||
}
|
||||
|
||||
if (typeof trap == 'function')
|
||||
if (typeof trap == 'function' && typeof setDebug == 'function')
|
||||
{
|
||||
setDebug(true);
|
||||
"" + f;
|
||||
trap(f, 0, "");
|
||||
"" + f;
|
||||
|
@ -58,8 +58,9 @@ function test()
|
||||
actual = f + '';
|
||||
compareSource(expect, actual, summary + ': before trap');
|
||||
|
||||
if (typeof trap == 'function')
|
||||
if (typeof trap == 'function' && typeof setDebug == 'function')
|
||||
{
|
||||
setDebug(true);
|
||||
trap(f, 0, "");
|
||||
|
||||
actual = f + '';
|
||||
|
Loading…
Reference in New Issue
Block a user