Commit 2eb40fab authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml/tests: Improve tests exception handling.

parent 9adb62cf
......@@ -21,7 +21,12 @@ function guard(f) {
try {
f();
}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);
}
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment