mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Fix tests regressed by debug mode. r=dvander
This commit is contained in:
parent
bc97d0240e
commit
20a9e349d1
@ -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');
|
||||
|
@ -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 + '';
|
||||
|
Loading…
Reference in New Issue
Block a user