Commit 78d6d41c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml/tests: Improve tests exception handling.

parent 3e9d32ca
...@@ -23,10 +23,11 @@ function guard(f) { ...@@ -23,10 +23,11 @@ function guard(f) {
}catch(e) { }catch(e) {
var msg = "Got exception "; var msg = "Got exception ";
if(e && typeof(e) == "object" && "message") if(e && typeof(e) == "object" && "message")
msg += e.msg; msg += e.message;
else else
msg += e; msg += e;
ok(false, msg); ok(false, msg);
if("tests" in window) next_test();
} }
}; };
} }
......
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