Disable "Assertion.includeStack is false" test in IE.

This only manifested in IE 10; IE 9 was fine since it didn't have the `stack` property.
This commit is contained in:
Domenic Denicola 2012-06-26 12:35:41 -04:00
parent 79c3654691
commit 61db4e05c6

View file

@ -27,7 +27,12 @@ suite('configuration', function () {
fooThrows();
assert.ok(false, 'should not get here because error thrown');
} catch (err) {
assert.ok(!err.stack || err.stack.indexOf('at fooThrows') === -1, 'should not have stack trace in error message');
// IE 10 supports err.stack in Chrome format, but without
// `Error.captureStackTrace` support that allows tuning of the error
// message.
if (typeof Error.captureStackTrace !== 'undefined') {
assert.ok(!err.stack || err.stack.indexOf('at fooThrows') === -1, 'should not have stack trace in error message');
}
}
});