mshtml/tests: Improve tests exception handling.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-06-04 17:29:19 +02:00 committed by Alexandre Julliard
parent 3e9d32ca43
commit 78d6d41c4c
1 changed files with 2 additions and 1 deletions

View File

@ -23,10 +23,11 @@ function guard(f) {
}catch(e) {
var msg = "Got exception ";
if(e && typeof(e) == "object" && "message")
msg += e.msg;
msg += e.message;
else
msg += e;
ok(false, msg);
if("tests" in window) next_test();
}
};
}