* Also catch javascript errors

This commit is contained in:
Michaël Van Canneyt 2025-02-03 11:13:56 +01:00
parent 296638644a
commit 37b7f89a39

View File

@ -570,14 +570,16 @@ begin
try try
protect(ATestCase, Self); protect(ATestCase, Self);
except except
on E: EIgnoredTest do on EI: EIgnoredTest do
AddFailure(ATestCase, E, FIgnoredTests{, ExceptAddr}); AddFailure(ATestCase, EI, FIgnoredTests{, ExceptAddr});
on E: EAssertionFailedError do on EF: EAssertionFailedError do
AddFailure(ATestCase, E, FFailures{, ExceptAddr}); AddFailure(ATestCase, EF, FFailures{, ExceptAddr});
on E: Exception do on EE: Exception do
begin begin
AddError(ATestCase, E{, ExceptAddr}); AddError(ATestCase, EE{, ExceptAddr});
end; end;
on EJ: TJSError do
AddError(ATestCase, EJSException.Create(EJ){, ExceptAddr});
end; end;
end; end;