(function() { if (! jasmine) { throw new Exception("jasmine library does not exist in global namespace!"); } /** * Basic reporter that outputs spec results to the browser console. * Useful if you need to test an html page and don't want the TrivialReporter * markup mucking things up. * * Usage: * * jasmine.getEnv().addReporter(new jasmine.ConsoleReporter()); * jasmine.getEnv().execute(); */ var ConsoleReporter = function() { this.started = false; this.finished = false; }; ConsoleReporter.prototype = { reportRunnerResults: function(runner) { if (this.hasGroupedConsole()) { var suites = runner.suites(); startGroup(runner.results(), 'tests'); for (var i=0; i