Made exception type checking looser: window.onerror isn't spec'ed to give us the

exact error type, but we should get the '.message' property.
This commit is contained in:
David Fugate 2011-09-25 10:47:34 -07:00
parent cf22b0c733
commit d5bf95c628
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
//An exception is expected
if (testDescrip.negative !== undefined) {
testDescrip.negative = testDescrip.negative !== "" ? testDescrip.negative : ".";
//TODO - come up with a generic way of catching the error type from window.onerror
testDescrip.negative = testDescrip.negative === "NotEarlyError" ? testDescrip.negative : ".";
if (window.iframeError === undefined) { //no exception was thrown
testRun(testDescrip.id, testDescrip.path, testDescrip.description, testDescrip.code,
'fail',