+ testCase.prototype.runAllTests = function() {
+ // what's better than for ... in for non-array objects?
+ var tests = {};
+ for (var name in this) {
+ if (name.indexOf('test') == 0 && typeof(this[name]) == 'function') {
+ console.log("Running " + name);
+ var result = this.runTest(name);
+ tests[name] = result;
+ }
+ }
+ console.log(prettyPrintEntity_(tests));
+ };
+ return testCase;