mshtml/tests: Improve tests exception handling.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3e9d32ca43
commit
78d6d41c4c
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue