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
9adb62cf8b
commit
2eb40fab19
@ -21,7 +21,12 @@ function guard(f) {
|
|||||||
try {
|
try {
|
||||||
f();
|
f();
|
||||||
}catch(e) {
|
}catch(e) {
|
||||||
ok(false, "Got exception " + ("message" in e ? e.message : e));
|
var msg = "Got exception ";
|
||||||
|
if(e && typeof(e) == "object" && "message")
|
||||||
|
msg += e.msg;
|
||||||
|
else
|
||||||
|
msg += e;
|
||||||
|
ok(false, msg);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user