Issue 23 in google-js-test: Assertions thrown with goog.asserts don't provide a stack trace.

3 views
Skip to first unread message

google-...@googlecode.com

unread,
May 8, 2012, 2:20:51 PM5/8/12
to google-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 23 by rowi...@google.com: Assertions thrown with goog.asserts
don't provide a stack trace.
http://code.google.com/p/google-js-test/issues/detail?id=23

What steps will reproduce the problem?
1. Run the following test.

goog.require('goog.asserts');
function deepFunction() {
goog.asserts.assert(false);
}
function assertFunction() {
deepFunction();
}
function AssertTest() {}
registerTestSuite(AssertTest);

UserInfoTest.prototype.testAssert = function() {
assertFunction();
};

What is the expected output? What do you see instead?
A stack trace with where the assert was thrown.

What version of the product are you using? On what operating system?
asserts.js:61
AssertionError: Assertion failed

Reply all
Reply to author
Forward
0 new messages