* @author konigsberg@google.com (Robert Konigsberg)
*/
var jstestdriver = {
- jquery : jQuery
+ jQuery : jQuery
};
var jstd = {
emptyFunction.prototype.setUp = function() { };
emptyFunction.prototype.tearDown = function() { };
emptyFunction.prototype.runTest = function(name) {
- this.setUp();
- var fn = this[name];
- fn.apply(this, []);
- this.tearDown();
+ try {
+ this.setUp();
+ var fn = this[name];
+ fn.apply(this, []);
+ this.tearDown();
+ } catch (e) {
+ console.log(e.stack);
+ }
};
return emptyFunction;
};